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

Function

setObjectMass

ServerObjectsIdentical to MTA:SA

Stores the object mass (it affects the reaction to hits).

Syntax

bool setObjectMass(object theObject, float mass)

Arguments

theObjectobject
The object.
massfloat
The mass.

Returns

true on success.

Example

local obj = createObject(1225, 0, 0, 3)
setObjectMass(obj, 500)

Notes

State for scripts. The object's physics in the game does not change.

See also