ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. 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)))

See also