I’m quite new to lua and C# and I am only capable of writing some simple scripts. I am wondering if anyone knows how to make a countdown that can be displayed on screen (Basically, like the countdown in GTA: Online death matches). I would like to be able to trigger this countdown through a chat command. I know how to trigger code from a chat command. However, I am not sure how to code a count down nor do I know how to display it on screen.
Best way to recreate GTA Online looking countdowns would probably be using scaleforms, for that checkout this page:
It also provides a few examples (some are also posted in the replies)
As far as the countdown something like this would work fine:
Citizen.CreateThread(function()
local seconds = 5
for i = 1,seconds do
-- your scaleform display function call should be made here.
Citizen.Wait(1000)
end
end)