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

Function

getObjectProperty

ServerObjectsIdentical to MTA:SA

Returns a physical property stored with setObjectProperty; "all" returns a table of all of them.

Syntax

any getObjectProperty(object theObject, string property)

Arguments

theObjectobject
The object.
propertystring
Property name, or "all".

Returns

The value, or false when not set.

Example

local obj = createObject(1225, 0, 0, 3)
for k, v in pairs(getObjectProperty(obj, "all")) do outputDebugString(k .. "=" .. tostring(v)) end

See also