mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 22:21:48 +00:00
maybe less confusing callback info
This commit is contained in:
1 parent
afdd908331
commit
75698216e0
2 files changed
+8
-4
No files matched your search
@@ -1,4 +1,4 @@
|
||||
## Client -> Server callback
|
||||
## Trigger Server Callback
|
||||
|
||||
### lib.callback
|
||||
|
||||
@@ -36,10 +36,12 @@ local count = lib.callback.await('ox_inventory:getItemCount', false, 'water', {t
|
||||
print(count)
|
||||
```
|
||||
|
||||
## Server -> Client callback
|
||||
## Register Client Callback
|
||||
|
||||
### lib.callback.register
|
||||
|
||||
Register an event handler for responding to server requests.
|
||||
|
||||
```lua
|
||||
lib.callback.register(name, cb)
|
||||
```
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
## Server -> Client callback
|
||||
## Trigger Client Callback
|
||||
|
||||
### lib.callback
|
||||
|
||||
@@ -41,10 +41,12 @@ for i = 1, #vehicles do
|
||||
end
|
||||
```
|
||||
|
||||
## Client -> Server callback
|
||||
## Register Server Callback
|
||||
|
||||
### lib.callback.register
|
||||
|
||||
Register an event handler for responding to client requests.
|
||||
|
||||
```lua
|
||||
lib.callback.register(name, cb)
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user