Skip to content

Api > LuaEvents > InvokeForMaster()


LuaEvents.InvokeForMaster(string eventName, [optionalArguments] optional_arguments)⚓︎

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

Parameters:⚓︎

Name Type Description
eventName string The 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:InvokeForMaster(eventName, optional_arguments)