function triggerClientEvent (server-side)
Sends payload arguments to a client custom event. The server is the sender; options.sourceId is script metadata.
Declaration
boolean triggerClientEvent(number|table|nil recipients, string name, table|nil options, any... ...)
Parameters
number|table|nilrecipients: Player id, array of player ids, or nil for all players.stringname: Remote-enabled client event name.table|niloptions: Metadata {sourceId = positive integer}; pass nil for no metadata.any......: Serializable payload arguments, including nil.
Returns boolean
Whether the event was sent.