mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 22:22:46 +00:00
refactor: Add h1 headers to all pages missing it (#137)
* refactor: Add h1 headers to all pages missing it * refactor: missed example h3 * change hooks example heading to bold text --------- Co-authored-by: Luke <[email protected]>
This commit is contained in:
1 parent
74227cc262
commit
1d2c490b26
95 files changed
+2167
-2289
No files matched your search
@@ -1,10 +1,14 @@
|
||||
# Client events
|
||||
import { Callout } from 'nextra/components';
|
||||
|
||||
# Client
|
||||
|
||||
This is not a comprehensive list of events and is missing events intended for internal use only.
|
||||
|
||||
## Triggers
|
||||
## Event Triggers
|
||||
|
||||
These events are safe to trigger and handle in other scripts.
|
||||
<Callout type="info">
|
||||
These events **are safe** to trigger and handle in other scripts.
|
||||
</Callout>
|
||||
|
||||
### ox_inventory:disarm
|
||||
|
||||
@@ -14,14 +18,20 @@ Can be triggered to force the player to disarm.
|
||||
TriggerClientEvent('ox_inventory:disarm', playerId, noAnim)
|
||||
```
|
||||
|
||||
## Handlers
|
||||
- playerId: `number`
|
||||
- noAnim: `boolean`
|
||||
- If `true`, disarm animation will be skipped
|
||||
|
||||
These events shouldn't be triggered by any other scripts.
|
||||
## Event Handlers
|
||||
|
||||
<Callout type="warning">
|
||||
These events **should not** be triggered by any other scripts.
|
||||
</Callout>
|
||||
|
||||
### ox_inventory:updateInventory
|
||||
|
||||
Triggered after inventory slots have been updated, included on load.
|
||||
Changes is a table containing all updated slot data indexed by slotId. Empty slots are "false".
|
||||
Changes is a table containing all updated slot data indexed by slotId. Empty slots are `false`.
|
||||
|
||||
```lua
|
||||
AddEventHandler('ox_inventory:updateInventory', function(changes) end)
|
||||
@@ -47,3 +57,6 @@ _Note: Not available for ESX, use esx:addInventoryItem or esx:removeInventoryIte
|
||||
```lua
|
||||
AddEventHandler('ox_inventory:itemCount', function(itemName, totalCount) end)
|
||||
```
|
||||
|
||||
- itemName: `string`
|
||||
- totalCount: `number`
|
||||
@@ -1,10 +1,14 @@
|
||||
# Server events
|
||||
import { Callout } from 'nextra/components';
|
||||
|
||||
# Server
|
||||
|
||||
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.
|
||||
<Callout type="warning">
|
||||
These events **should not** be triggered by any other scripts.
|
||||
</Callout>
|
||||
|
||||
### ox_inventory:openedInventory
|
||||
|
||||
@@ -22,5 +26,5 @@ AddEventHandler('ox_inventory:openedInventory', function(playerId, inventoryId)
|
||||
Triggered after an inventory is closed by a player.
|
||||
|
||||
```lua
|
||||
AddEventHandler('ox_inventory:closeInventory', function(playerId, inventoryId) end)
|
||||
AddEventHandler('ox_inventory:closeInventory', function() end)
|
||||
```
|
||||
Reference in new issue
Block a user