local os = require 'os'
function toggleClock(state)
local bs = raknetNewBitStream()
raknetBitStreamWriteBool(bs, state)
raknetEmulRpcReceiveBitStream(30, bs)
raknetDeleteBitStream(bs)
end
function setTime(hour, minute)
local bs = raknetNewBitStream()
raknetBitStreamWriteInt8(bs, hour)
raknetBitStreamWriteInt8(bs, minute)
raknetEmulRpcReceiveBitStream(29, bs)
raknetDeleteBitStream(bs)
end
function main()
repeat wait(0) until isSampAvailable();
toggleClock(true)
local time = os.date("*t")
setTime(time.hour, time.min)
end