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

Function

removeElementDataSubscriber

ServerElementsIdentical to MTA:SA

Unsubscribes a player from an element data value.

Syntax

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

Arguments

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

Returns

true on success.

Example

addEventHandler("onVehicleExit", root, function(player)
    removeElementDataSubscriber(source, "fuel", player)
end)

See also