mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 14:38:50 +00:00
WIP ox_lib documentation
This commit is contained in:
1 parent
f9aa5347e3
commit
86fa21d64a
8 files changed
+75
-2
No files matched your search
@@ -0,0 +1,16 @@
|
||||
---
|
||||
title: lib.callback
|
||||
---
|
||||
|
||||
```lua
|
||||
-- name: string
|
||||
-- delay: number or false
|
||||
-- cb: function
|
||||
lib.callback(name, delay, cb, ...)
|
||||
```
|
||||
|
||||
```lua
|
||||
lib.callback('ox_inventory:getItemCount', false, function(count)
|
||||
print(count)
|
||||
end, 'water', {type = 'fresh'})
|
||||
```
|
||||
Reference in new issue
Block a user