i try to make timecycle but this code i made was did not work :
Citizen.CreateThread(function()
while true do
setClockTime(“12, 0, 0”)
setTimecycleModifier(“MIDDAY”)
SetClockTimeNow(“12, 0, 0”)
SetOverrideClockTime(“12, 0, 0”)
Citizen.Wait(1)
end
end)
and pause clocktime but this code i made was did not work :
Citizen.CreateThread(function()
while true do
setTimecycleModifier(“hud_def_Trevor”, p0)
Citizen.Wait(1)
end
end)
and also i try this code by server default code fom false to true also did not work :
AddEventHandler(‘onClientMapStart’, function()
Citizen.Trace(“ocms fivem\n”)
exports.spawnmanager:setAutoSpawn(true)
exports.spawnmanager:forceRespawn()
SetClockTime(24, 0, 0)
PauseClock(true)
Citizen.Trace("ocms fivem end\n")
end)
can sombody help me pls
thanks