ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. removeElementData

Function

removeElementData

Removes an element data value under a key (for all players).

Syntax

bool removeElementData(element theElement, string key)

Arguments

theElementelement
The element.
keystring
The key.

Differences from MTA:SA

  • In MTA:SA this function is server-side only.

In MTA:SA

removeElementData(element theElement, string key)

Returns

true on success.

Example

addEventHandler("onPlayerLogout", root, function()
    removeElementData(source, "level")
end)

See also