Update callback.md

This commit is contained in:
FelixGaming authored and GitHub committed 2022-04-28 03:49:52 +02:00
1 parent 18a2e906a2
commit dd6fd446b0
1 file changed
+1 -1
+1 -1
View File
@@ -22,6 +22,6 @@ The current coroutine is yielded until a response is received.
-- delay: number or false
lib.callback.await(name, delay, ...)
local count = lib.callback('ox_inventory:getItemCount', false, 'water', {type = 'fresh'})
local count = lib.callback.await('ox_inventory:getItemCount', false, 'water', {type = 'fresh'})
print(count)
```