ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. setObjectScale

Function

setObjectScale

Server and clientObjectsIdentical to MTA:SA

Changes an object's size (1 = normal, 2 = twice as big). The game applies one scale to all axes - the first number counts.

Syntax

bool setObjectScale(object theObject, float scale [, float scaleY = scale, float scaleZ = scale])

Arguments

theObjectobject
The object.
scalefloat
Scale.
scaleYfloat, optional = scale
Y scale (compatibility with existing scripts).
scaleZfloat, optional = scale
Z scale (compatibility with existing scripts).

Returns

true on success.

Example

local giantBin = createObject(1337, 2495, -1660, 13)
setObjectScale(giantBin, 4)

See also