Skip to main content

LuaEvents.InvokeForMasterOnly(string eventName, [optionalArguments] optional_arguments)

Invokes the event which is specified in eventName for master client , excluding the sender.

Parameters:

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

Usage

---@type string
local eventName;

---@type [optionalArguments]
local optional_arguments;


LuaEvents:InvokeForMasterOnly(eventName, optional_arguments)