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

Function

isObjectRespawnable

ServerObjectsIdentical to MTA:SA

Returns whether the object's respawn was enabled with toggleObjectRespawn.

Syntax

bool isObjectRespawnable(object theObject)

Arguments

theObjectobject
The object.

Returns

true when enabled.

Example

local obj = createObject(1225, 0, 0, 3)
outputDebugString(tostring(isObjectRespawnable(obj)))

See also