ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getElementDataSubscribers

Function

getElementDataSubscribers

ServerElementsTrilogy Hub only

Returns the players subscribed to an element data value.

Syntax

table getElementDataSubscribers(element theElement, string key)

Arguments

theElementelement
The element.
keystring
The key.

Returns

A table of players.

Example

for _, p in ipairs(getElementDataSubscribers(vehicle, "fuel")) do
    outputChatBox("Widzisz paliwo tego auta.", p)
end