- Documentation
- Client functions
- getElementBoundingBox
Function
getElementBoundingBox
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))