CallEvent: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 23: | Line 23: | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
* [[CallEvent]] | * [[CallEvent]] | ||
* [[AddEvent]] | |||
* [[CallRemoteEvent]] | * [[CallRemoteEvent]] | ||
* [[BroadcastRemoteEvent]] | |||
* [[AddRemoteEvent]] | * [[AddRemoteEvent]] |
Latest revision as of 17:07, 30 December 2020
Description
The event to call by name. Will call events in all packages.
Syntax
CallEvent(EventName [, UserArgs...])
Parameters
- EventName
The event name. - UserArgs (optional)
The passed user arguments to the function.
Return Value
- This function has no specific return value.
Example
function SetPlayerLoggedIn(player)
PlayerData[player].logged_in = true
SetPlayerRandomColor(player)
CallEvent("OnPlayerLoggedIn", player)
end