[Help] Freeze Current Time script no work

I write a script for freeze current time…
Need your help to get it work…
Thanks first…

Citizen.CreateThread(function()
    while true do
		Citizen.Wait(0)
		if IsControlJustReleased(1, 167) then
			NetworkOverrideClockTime(GetClockHours(), 00, 00)
			drawNotification("~g~Freeze Current Time!")
		end
    end
end)