- Documentation
- Server functions
- getElementDataSubscribers
Function
getElementDataSubscribers
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