server clean

This commit is contained in:
Cooldude2606
2017-10-15 20:00:57 +01:00
parent c1145342fe
commit 61a8d79e33
2 changed files with 56 additions and 41 deletions

View File

@@ -34,6 +34,12 @@ end
function tick_to_min (tick)
return math.floor(tick/(3600*game.speed))
end
--used to make uuids but may be useful else where
function string.tohex(str)
return (str:gsub('.', function (c)
return string.format('%02X', string.byte(c))
end))
end
--I stole this from somewhere a long time ago but this and the other two functions convert a table into a string
function table.val_to_str ( v )
if "string" == type( v ) then