Files

31 lines
682 B
Plaintext

import { Callout } from 'nextra/components';
# Server
This is not a comprehensive list of events and is missing events intended for internal use only.
## Handlers
<Callout type="warning">
These events **should not** be triggered by any other scripts.
</Callout>
### 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:closedInventory
Triggered after an inventory is closed by a player.
```lua
AddEventHandler('ox_inventory:closedInventory', function(playerId, inventoryId) end)
```