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

Function

getObjectScale

Server and clientObjectsIdentical to MTA:SA

Returns an object's scale on three axes (1, 1, 1 by default).

Syntax

float, float, float getObjectScale(object theObject)

Arguments

theObjectobject
The object.

Returns

sx, sy, sz.

Example

local obj = createObject(1337, 0, 0, 3)
local sx = getObjectScale(obj)

See also