Skip to content

renderScriptImportantArea

Client-side

Draw GTA's original red pulsing mission-area marker at a position: three cylinders automatically aligned with the ground.

Syntax

bool renderScriptImportantArea(Vector3 center, float radiusX, float radiusY [, int localId])

Arguments

centerVector3

Finite center position.

radiusXfloat

Positive X radius.

radiusYfloat

Positive Y radius.

localIdintoptional

Optional caller-local identity mixed with the resource identity.

Returns

true after a valid frame submission; false for invalid dimensions, missing resource context, or unavailable marker service.

Ownership and lifecycle

The important-area primitive only draws for one frame. Call it from onClientPreRender for as long as it should stay visible.

Important behavior
  • This is visual only and creates no collision shape.

Example

addEventHandler("onClientPreRender", root, function()
renderScriptImportantArea(Vector3(2100.48, -1649.14, 12.47), 4, 4, 1)
end)

Where this comes from

RELATED SA:O APIS

Continue exploring

Read the system guide →