Listening Events¶
Listening local events
on("eventName", function(eventParam1, eventParam2)
-- Code here will be executed once the event is triggered.
end)
Listening client events
onClient("eventName", function(eventParam1, eventParam2)
-- Code here will be executed once the event is triggered.
end)
Listening server events
onServer("eventName", function(eventParam1, eventParam2)
-- Code here will be executed once the event is triggered.
end)