Skip to main content
Inventory 4.0

Client events

Listen for the local inventory opening and closing.

Event reference

Client events

Respond to changes in the local inventory interface.

2 events
avp_inv:onInventoryOpen

Triggered when the player opens their inventory.

None
avp_inv:onInventoryClose

Triggered 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)