- Documentation
- Shared functions
- getElementRadius
Function
getElementRadius
Returns the element's bounding radius (the default for its type when not set).
Syntax
float getElementRadius(element theElement)Arguments
theElementelement- The element.
Differences from MTA:SA
- In MTA:SA this function is client-side only.
In MTA:SA
getElementRadius(element theElement)Returns
Radius in metres.
Example
outputServerLog(("Promień auta: %.1f m"):format(getElementRadius(vehicle)))