Skip to main content

LuaEvents.InvokeForAll(string evnetName, [optionalArguments] optional_arguments)

Invokes the event which is specified in eventName for all players in the session joined to the world including the sender.

Parameters:

NameTypeDescription
evnetNamestringThe name of the event to invoke.
optional_arguments[optionalArguments]You can pass any amount, type of arguments.

Usage

---@type string
local evnetName;

---@type [optionalArguments]
local optional_arguments;


LuaEvents:InvokeForAll(evnetName, optional_arguments)