Signals

getsignalwhitelist

Returns a new array table with the six static whitelist entries defined by the function: OnClientEvent/RemoteEvent, OnServerEvent/RemoteEvent, OnClientInvoke/RemoteFunction, OnServerInvoke/RemoteFunction, OnClientEventUnreliable/UnreliableRemoteEvent, and OnServerEventUnreliable/UnreliableRemoteEvent.

Syntax

getsignalwhitelist(): table

Returns

NameTypeDescription
signalstableArray table of static whitelist entries. Each entry has Event and Parent string fields.

Description

Returns a new array table with the six static whitelist entries defined by the function: OnClientEvent/RemoteEvent, OnServerEvent/RemoteEvent, OnClientInvoke/RemoteFunction, OnServerInvoke/RemoteFunction, OnClientEventUnreliable/UnreliableRemoteEvent, and OnServerEventUnreliable/UnreliableRemoteEvent. Each entry is a table with Event and Parent string fields. The function takes no arguments and does not inspect the current game state.

Call it without parameters. The function reads the needed context from the current runtime state.

It returns signals (table). Use the returns table to separate successful values from nil results and recoverable errors.

Example

Example call with placeholder values.

local result = getsignalwhitelist()
print(result)