local movInventory = Interfaces.int_inventory
function openInventory()
if getTime() > 510 then
Interfaces["int_inventory"].Visible = true
startObjectTween(movInventory, VInterfaceOffset, movInventory:getPoint(VInterfaceOffset), {x = 230, y = 0}, 500, easeBackInOut)
getTime({flags=1, reset=true})
end
end
function closeInventory()
if getTime() > 510 then
startObjectTween(movInventory, VInterfaceOffset, movInventory:getPoint(VInterfaceOffset), {x = 230, y = -710}, 500, easeBackInOut)
setDelay(510, function() Interfaces["int_inventory"].Visible = false end )
getTime({flags=1, reset=true})
end
end