I want to draw a this marker with an rotating animation
For a up/down animation use bobUpAndDown
parameter. DrawMarker - FiveM Natives @ Cfx.re Docs (common used)
For a rotation animation you can write some like this:
CreateThread(function()
local rotation = 0.0
while true do
Wait(1)
rotation = rotation + 1.0
DrawMarker(21, pos.x, pos.y, pos.z + 2, 0.0, 0.0, 0.0, 0.0, 0.0, rotation, 2.0, 2.0, 2.0, 250, 250, 0, 50, false, true, false, nil, nil, false)
end
end)