getObjectScale | Multi Theft Auto: Wiki Skip to content

getObjectScale

Client-side
Server-side
Shared

Pair: setObjectScale

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function returns the visible size of an object.

Syntax

getObjectScale ( )

Code Examples

server

This example adds a command namedgetscalewhich creates an object and prints out the scale of it.

addCommandHandler("getscale",
function()
local theObject = createObject(1337, getElementPosition(localPlayer))
local x, y, z = getObjectScale(theObject)
outputChatBox("Object scale: X: "..x..", Y: "..y.." Z: "..z.."")
end
)