AddElementDataSubscriber

From Multi Theft Auto: Wiki
Revision as of 21:16, 2 July 2020 by Zangomangu (talk | contribs) (Created page with "{{Server function}} __NOTOC__ {{New items|5.0154|1.5.8|This function subscribes a player to specific element data. This function is used together with setElementDat...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ADDED/UPDATED IN VERSION 1.5.8 :
This function subscribes a player to specific element data.

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

Syntax

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

OOP Syntax Help! I don't understand this!

Method: element:addDataSubscriber(...)
Counterpart: removeElementDataSubscriber


Required Arguments

  • theElement: The element you wish to subscribe the player to.
  • key: The key you wish to subscribe the player to.
  • thePlayer: The player you wish to subscribe.

Returns

Returns true if the player was subscribed, false otherwise.

Example

Click to collapse [-]
Server
TODO

See Also