Learn what events are and what they offer on Zyntex.
web
, only the dashboard can invoke the event. If set to roblox
, only Roblox servers can invoke the event. If set to none
, both the dashboard and Roblox server can invoke the event.
This allows you to structure your events in a way that makes sense for your game.
Zyntex:GetEvent
method. This method takes the event’s name as an argument and returns an event object.
Event
, you can use the Event:Connect
method. This method takes a callback function as an argument, which will be called whenever the event is invoked.
The callback function receives an Invocation
object, which contains all of the invocation’s data, such as the invocation ID, payload, and sender.
Invocation
object is only a data structure and does not have any methods. It is used to access the data of the invocation.Event:Invoke
method. This method takes a table of key-value pairs as an argument, which will be sent as the event’s payload.