M MY Multiplayer: Wiki
Side
Kind

getAllElementData

Shared

Reads all of an element's data at once.

table|false getAllElementData(element element)

Parameters

NameTypeDescription
elementelementThe element to read.

Returns

A table with each key and its value. false if a value did not fit on the Lua stack, with an error in the log.

Example

for key, value in pairs(getAllElementData(localPlayer)) do
    outputDebugString(key .. " = " .. tostring(value))
end

See also