ScriptsAboutBlogToolsKnowledge BaseReviewsFAQBasketDocsSupport
client

DrawMarker

FiveM client native documentation with a Lua example.

Summary

Draws a 3D marker (cylinder, arrow, ring, etc.) in the world. Must be called every frame. The standard way to show interaction points and zones.

Returns

void

Parameters

typenumberMarker type (1 = cylinder, common for zones).
x, y, zfloatWorld position.
...floatDirection, rotation, scale, and RGBA color components.

Example

CreateThread(function()
  while true do
    Wait(0)
    DrawMarker(1, x, y, z-1.0, 0,0,0, 0,0,0, 1.5,1.5,0.5, 116,217,59, 100, false, true, 2, false)
  end
end)

Common pitfalls

  • Must run every frame (Wait(0)) while visible — otherwise it flickers.
  • Only draw when the player is near the point; a permanent draw loop for far markers wastes performance.
  • Offset z downward slightly so the cylinder sits on the ground.

Related natives

Related guides

Need protected areas on your map?

Viper Safe-Zone draws polygon safe zones in-game — no hand-edited coordinates — with weapon, combat and vehicle-speed rules per zone.

See Viper Safe-Zone →