trigger_on_server

Client

Trigger a specific event registered on the server from the client.

event.trigger_on_server(name --[[ string ]], ...)

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).

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