Hi guys, how to use DrawRect and others things with Draw that will show up on the screen?
you need to call it every tick
And how can i call it every tick? I’m not good at lua (bcs I’m new in lua)
1 Like
Citizen.CreateThread(function() --we use a different thread to not block the main one
while true do --anything in this function will loop.
--draw here
Citizen.Wait(0) --necessary wait inside the loop, otherwise it will crash. Time in ms.
end
end)
1 Like
where’d that Wait(1) come from
1 Like