addEvent

From GTA Connected
(Redirected from AddEvent)
Jump to: navigation, search

Function Server and Client All Games Online and Offline

Server 1.0.0, Client 1.0.0

void addEvent(string eventName, int minRequiredArgCount)

Description

The addEvent function is used to add an event type.

Parameters

Type Name Presence Default Value Description
string eventName required n/a The name of the event, case-insensitive.
int minRequiredArgCount required n/a The minimum amount of required arguments.

Returns

Success Returns

Type Description
void This function doesn't return any values on success.

Failure Returns

Type Value
void n/a

Notes

Examples

There aren't any examples for this function.

Compatibility

There isn't any compatibility information for this function.

Related

Server Related

addEvent
addEventHandler
bindEventHandler
removeEventHandler
triggerEvent
unbindEventHandler

event.isDefaultPrevented
event.preventDefault


Client Related

addEvent
addEventHandler
bindEventHandler
removeEventHandler
triggerEvent
unbindEventHandler

event.isDefaultPrevented
event.preventDefault