maybe less confusing callback info

This commit is contained in:
Linden committed 2022-12-11 13:39:45 +11:00
1 parent afdd908331
commit 75698216e0
2 files changed
+8 -4

No files matched your search

+4 -2
View File
@@ -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)
```