add ox_inventory events

Prob other stuff but ceebs right now
This commit is contained in:
Linden committed 2023-05-22 07:43:41 +10:00
1 parent 98494aa689
commit bb5e606877
2 files changed
+75

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
# Server events
This is not a comprehensive list of events and is missing events intended for internal use only.
## Handlers
These events shouldn't be triggered by any other scripts.
### ox_inventory:openedInventory
Triggered after an inventory is opened by a player.
```lua
AddEventHandler('ox_inventory:openedInventory', function(playerId, inventoryId) end)
```
- playerId: `number`
- inventoryId: `string`
### ox_inventory:closeInventory
Triggered after an inventory is closed by a player.
```lua
AddEventHandler('ox_inventory:closeInventory', function(playerId, inventoryId) end)
```