getGameTime24
ps.getGameTime24()
Returns the current game time in 24-hour format.
Returns:
string
: Time formatted as "HH:MM" (e.g., "14:30", "09:05")
Example:
local time24 = ps.getGameTime24()
print("Current time (24h):", time24) -- Output: "14:30"
-- Use in UI elements
SendNUIMessage({
type = "updateTime",
time = time24,
format = "24h"
})
Last updated