triggerEvent

From GTA Connected
(Redirected from TriggerEvent)
Jump to navigation Jump to search

Function Server and Client All Games Online and Offline

Server 1.0.0, Client 1.0.0

void triggerEvent(string eventName, [ Element source, ... ])

Description

The triggerEvent function is used to trigger an event.

Parameters

Type Name Presence Default Value Description
string
eventName
required n/a The name of the event, case-insensitive.
Element
source
optional
null
The source element to trigger the event for.
mixed
vararg
optional
n/a
Arguments to be sent to scripting function that are bound to the event.

Returns

Success Returns

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

Failure Returns

Type Value
void
n/a

Notes

There aren't any notes for this function.

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