Client events
Listen for the local inventory opening and closing.
Event reference
2 eventsClient events
Respond to changes in the local inventory interface.
avp_inv:onInventoryOpenTriggered when the player opens their inventory.
None
avp_inv:onInventoryCloseTriggered when the player closes their inventory.
None
Configuration
Inventory lifecycle
Handle the local inventory opening and closing.
AddEventHandler("avp_inv:onInventoryOpen", function()
-- Inventory opened
end)
AddEventHandler("avp_inv:onInventoryClose", function()
-- Inventory closed
end)