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

Function

hasElementDataSubscriber

ServerElementsIdentical to MTA:SA

Checks whether a player is subscribed to an element data value.

Syntax

bool hasElementDataSubscriber(element theElement, string key, player thePlayer)

Arguments

theElementelement
The element.
keystring
The key.
thePlayerplayer
The player.

Returns

true if subscribed.

Example

if not hasElementDataSubscriber(vehicle, "fuel", player) then
    addElementDataSubscriber(vehicle, "fuel", player)
end