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

Function

dxDrawWiredSphere

ClientDrawing (dx)Identical to MTA:SA

Draws a wire sphere in the world (for debugging, e.g. a zone range). It is drawn on the screen, so it shows through walls.

Syntax

bool dxDrawWiredSphere(float x, y, z, float radius [, int color = tocolor(255, 0, 0, 64), float lineWidth = 1, int iterations = 1])

Arguments

x, y, zfloat
Centre.
radiusfloat
Radius in metres.
colorint, optional = tocolor(255, 0, 0, 64)
Colour.
lineWidthfloat, optional = 1
Line thickness.
iterationsint, optional = 1
Mesh density 1-4.

Returns

true.

Example

addEventHandler("onClientRender", root, function()
    dxDrawWiredSphere(2495, -1687, 13.5, 30, tocolor(0, 255, 0, 120), 1, 2)
end)

See also