It stores when the player will be released, for example /jail [iD of Player] [Number of Hours]
Should log 1 hour later from the current time if I put 1 hour as the "Number of Hours" then the script checks every 5 mins if the time to be released has passed.
At least thats what it is supposed to do..
setElementFrozen(value, false)
mysql:query_free("UPDATE characters SET jail='0' WHERE id = " .. dbid)
mysql:query_free("UPDATE characters SET jailtime=NULL WHERE id = " .. dbid)
outputChatBox("You are no longer in Jail!", value, 0, 255, 0)