trigger

Client Server

Trigger a specific event using it's name.

event.trigger(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