trigger_on_client
Server
Trigger a specific event registered on the client from the server.
You can only trigger events registered in your own LUA scripts/resources, internal events starting with "core:" cannot be called from script.
You can pass optional parameters, and later use them in function handler(s).
The second parameter is always the client id you want to send the event, if passed -1 it will be trigger on every clients.
Currently only data of type integer, number, boolean and string can be passed as parameters. If you want to pass more complexe data (like a table), it's recommended passing data as a JSON string.
Last updated