----------------------------------------------------------------------------------------------------------------------------------------- -- VRP ----------------------------------------------------------------------------------------------------------------------------------------- local Tunnel = module("vrp","lib/Tunnel") local Proxy = module("vrp","lib/Proxy") vRP = Proxy.getInterface("vRP") ----------------------------------------------------------------------------------------------------------------------------------------- -- CONNECTION ----------------------------------------------------------------------------------------------------------------------------------------- vKEYBOARD = Tunnel.getInterface("keyboard") ----------------------------------------------------------------------------------------------------------------------------------------- -- GLOBALSTATE ----------------------------------------------------------------------------------------------------------------------------------------- GlobalState["Work"] = 0 GlobalState["Hours"] = 10 GlobalState["Players"] = 0 GlobalState["Minutes"] = 0 GlobalState["Weather"] = "EXTRASUNNY" ----------------------------------------------------------------------------------------------------------------------------------------- -- THREADSYNC ----------------------------------------------------------------------------------------------------------------------------------------- CreateThread(function() while true do GlobalState["Work"] = GlobalState["Work"] + 1 -- GlobalState["Minutes"] = GlobalState["Minutes"] + 1 -- if GlobalState["Minutes"] >= 60 then -- GlobalState["Hours"] = GlobalState["Hours"] + 1 -- GlobalState["Minutes"] = 0 -- if GlobalState["Hours"] >= 24 then -- GlobalState["Hours"] = 0 -- end -- end Wait(10000) end end)