mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-03 14:38:49 +00:00
Update Hooks.md
This commit is contained in:
1 parent
debe130fe1
commit
4ad3365470
1 file changed
+2
-2
@@ -1,9 +1,9 @@
|
|||||||
# Event Hooks
|
# Event Hooks
|
||||||
|
|
||||||
## registerHook
|
|
||||||
|
|
||||||
Event hooks allow 3rd party resources to define new behaviour without modifying the inventory code directly.
|
Event hooks allow 3rd party resources to define new behaviour without modifying the inventory code directly.
|
||||||
|
|
||||||
|
## registerHook
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
exports.ox_inventory:registerHook(eventName, function(payload) end, options)
|
exports.ox_inventory:registerHook(eventName, function(payload) end, options)
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in new issue
Block a user