HasElementDataSubscriber

From Multi Theft Auto: Wiki
Revision as of 21:49, 2 July 2020 by Zangomangu (talk | contribs) (Created page with "{{Server function}} __NOTOC__ {{New items|5.0157|1.5.7-9.20477|This function returns whether a player is subscribed to specific element data. This function is used to...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ADDED/UPDATED IN VERSION 1.5.7-9.20477 :
This function returns whether a player is subscribed to specific element data.

This function is used together with setElementData in "subscribe" mode.

Syntax

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

Returns true if the player is subscribed, false otherwise.

Example

Click to collapse [-]
Server
TODO

See Also