Need Help Pause Time and set time cycle [resource] server

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 :frowning:
thanks

I use [Release] Additional Server Synchronization and ACL [1.0.6] it has a sync time and weather feature

thanks how about timecycle modifier do u have link i can visit ?