This simple script allows server owners to publish their uptime to the FiveM server list every 60
seconds.
No configuration or changes to scripts are needed. Enjoy!
Latest Release: Saturday, February 25, 2023 9:20 PM
[Standalone] Get the Script
This simple script allows server owners to publish their uptime to the FiveM server list every 60
seconds.
No configuration or changes to scripts are needed. Enjoy!
Latest Release: Saturday, February 25, 2023 9:20 PM
[Standalone] Get the Script
Preview or screenshot of what it looks like in Server list pls
Done! Thanks.
https://i.imgur.com/IfZ2eBJ.png why are you triggering events that don’t exist?
the events exist
Or you do it like this:
local start = os.time()
CreateThread(function()
while true do
Wait(1000 * 60)
local uptime = os.difftime(os.time(), start)
local hrs = math.floor(uptime / 3600)
local mins = math.floor((uptime - (hrs * 3600)) / 60)
local uptimeString = ""
if hrs > 0 then
uptimeString = string.format("%d:%02d", hrs, mins)
else
uptimeString = string.format("%d minutes", mins)
end
SetConvarServerInfo('Uptime', uptimeString)
end
end)
look in your dc dm`s