Hey, how can I make this marker going up/down with animation?
Just put a variable in the LOOP.
For example:
CreateThread(function()
local rotation = 0.0
while true do
-- draw every frame
Wait(0)
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, 255, 128, 0, 50, false, true, false, nil, nil, false)
end
end)
this will make the marker spin.
DrawMarker has a ‘bobUpAndDown’ parameter, set it to true
2 Likes
No. Just no.
Please read the documentation and check the different booleans that you can choose. You’ll find a boolean rotate
as well as a boolean bobUpAndDown
which do what you want. Yes, it might not let you define the speed of the rotation or bobbing.
2 Likes