addEvent: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
m (Mex moved page AddEvent to addEvent)
 
No edit summary
 
Line 1: Line 1:
{{ScriptItem
{{ScriptItem2
|endpoint = shared
|name = addEvent
|side = shared
|type = function
|type = function
|name = addEvent
|games = iii vc sa iv
|parameters = string eventName, int minRequiredArgCount
|desc = add an event type
|parameter1 = string eventName The name of the event, case-insensitive.
|arg1 = string eventName The name of the event, case-insensitive.
|parameter2 = int minRequiredArgCount The minimum amount of required arguments.
|arg2 = int minRequiredArgCount The minimum amount of required arguments.
|return1 = void
|return = void
|returnFail1 = void
|freturn = void
|usage = add an event type
|note = [[Server/Events|Server Events]]<br>
|notes = [[Server/Events|Server Events]]<br>
[[Client/Events|Client Events]]
[[Client/Events|Client Events]]
}}
}}

Latest revision as of 20:36, 19 November 2022

Function Server and Client icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline

Available since Server 1.0.0, Client 1.0.0

void addEvent(string eventName, int minRequiredArgCount)

The addEvent function is used to add an event type.

Parameters

1) string eventName The name of the event, case-insensitive.
2) int minRequiredArgCount The minimum amount of required arguments.

Return

void This function doesn't return a value.

Notes

Client Events.

Examples

There aren't any examples for this function.

Compatibility

There isn't any compatibility information for this function.

Related

Server Related

icon-iii.png icon-vc.png icon-sa.png icon-iv.png addEvent
icon-iii.png icon-vc.png icon-sa.png icon-iv.png addEventHandler
icon-iii.png icon-vc.png icon-sa.png icon-iv.png bindEventHandler
icon-iii.png icon-vc.png icon-sa.png icon-iv.png removeEventHandler
icon-iii.png icon-vc.png icon-sa.png icon-iv.png triggerEvent
icon-iii.png icon-vc.png icon-sa.png icon-iv.png triggerNetworkEvent
icon-iii.png icon-vc.png icon-sa.png icon-iv.png unbindEventHandler


Client Related

icon-iii.png icon-vc.png icon-sa.png icon-iv.png addEvent
icon-iii.png icon-vc.png icon-sa.png icon-iv.png addEventHandler
icon-iii.png icon-vc.png icon-sa.png icon-iv.png bindEventHandler
icon-iii.png icon-vc.png icon-sa.png icon-iv.png removeEventHandler
icon-iii.png icon-vc.png icon-sa.png icon-iv.png triggerEvent
icon-iii.png icon-vc.png icon-sa.png icon-iv.png triggerNetworkEvent
icon-iii.png icon-vc.png icon-sa.png icon-iv.png unbindEventHandler