Skip to main content

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

Invokes the event which is specified in eventName for all players in the session joined to the world excluding 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:InvokeForOthers(evnetName, optional_arguments)