From Multi Theft Auto: Wiki
Revision as of 14:17, 25 October 2020 by StrixG (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function returns whether a player is subscribed to specific element data. This function is used together with setElementData in "subscribe" mode.


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

OOP Syntax Help! I don't understand this!

Method: element:hasDataSubscriber(...)

Required Arguments

  • theElement: The element you wish to check whether the player is subscribed to.
  • key: The key you wish to check whether the player is subscribed to.
  • thePlayer: The player you wish to check.


Returns true if the player is subscribed, false otherwise.


Click to collapse [-]


Minimum supported server 1.5.7-9.20477
Minimum supported client n/a

Note: Using this function/event requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version server="1.5.7-9.20477" />

See Also