ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. getElementBoundingBox

Function

getElementBoundingBox

ClientElementsIdentical to MTA:SA

Returns the box surrounding the element's model, relative to its centre.

Syntax

float getElementBoundingBox(element theElement)

Arguments

theElementelement
The element.

Returns

minX, minY, minZ, maxX, maxY, maxZ.

Example

local x0, y0, z0, x1, y1, z1 = getElementBoundingBox(vehicle)
outputChatBox(("Długość auta: %.1f m"):format(y1 - y0))