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

Function

getAllElementData

Server and clientMiscellaneousIdentical to MTA:SA

Returns all of an element's data set with setElementData as a key -> value table.

Syntax

table getAllElementData(element theElement)

Arguments

theElementelement
The element.

Returns

A data table or false.

Example

for key, value in pairs(getAllElementData(player)) do
    outputServerLog(key .. " = " .. tostring(value))
end

See also