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:
Name | Type | Description |
---|---|---|
evnetName | string | The 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)