give this a try
local t = {
minPlayers = 3,
storage = 45600,
pos = {x= ,y= ,z= }, -- where they get teleported to
tpPos = {x= ,y= ,z= }, -- where the tp is
tp = 1387,
}
function onStepIn(cid, item, position, fromPosition)
if getGlobalStorageValue(cid, t.storage) < 0 then...