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

Function

getObjectMass

ServerObjectsIdentical to MTA:SA

Returns the object mass stored with setObjectMass (1 by default).

Syntax

float getObjectMass(object theObject)

Arguments

theObjectobject
The object.

Returns

The mass.

Example

local obj = createObject(1225, 0, 0, 3)
outputDebugString(getObjectMass(obj))

See also