mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 06:28:54 +00:00
chore: oxmysql and ox_lib clean-up (#134)
* oxmysql and some lib interface fixes - Various fixes throughout oxmysql - started ox_lib audit * chore: More clean up - Reword some confusing descriptions - Add some descriptions - Type fixes - Spelling and grammar fixes - Swapping in `-` where `*` used to be for bullet point consistency ox_lib - Interface, ACL through GetClosestVehicle audited * chore: Finishing up ox_lib
This commit is contained in:
39 files changed
+533
-247
No files matched your search
@@ -6,9 +6,10 @@
|
||||
triggerServerCallback(eventName, delay, ...args)
|
||||
```
|
||||
|
||||
* eventName: `string`
|
||||
* delay: `number` or `null`
|
||||
* ..args: `any`
|
||||
- eventName: `string`
|
||||
- delay: `number` or `null`
|
||||
- Amount of time until this callback can be triggered again
|
||||
- ..args: `any`
|
||||
|
||||
## Register Client Callback
|
||||
|
||||
@@ -18,8 +19,8 @@ triggerServerCallback(eventName, delay, ...args)
|
||||
onServerCallback(eventName, cb)
|
||||
```
|
||||
|
||||
* eventName: `string`
|
||||
* cb: `function`(...args: `any`)
|
||||
- eventName: `string`
|
||||
- cb: `function`(...args: `any`)
|
||||
|
||||
## Usage Example
|
||||
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
triggerClientCallback(eventName, playerId, ...args)
|
||||
```
|
||||
|
||||
* eventName: `string`
|
||||
* playerId: `number`
|
||||
* ...args: `any`
|
||||
- eventName: `string`
|
||||
- playerId: `number`
|
||||
- ...args: `any`
|
||||
|
||||
## Register Client Callback
|
||||
## Register Server Callback
|
||||
|
||||
### onClientCallback
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ lib.callback(name, delay, cb, ...)
|
||||
|
||||
- name: `string`
|
||||
- delay: `number` or `false`
|
||||
- Amount of time until this callback can be triggered again
|
||||
- cb: `function`
|
||||
- ...: `any`
|
||||
|
||||
@@ -29,6 +30,7 @@ lib.callback.await(name, delay, ...)
|
||||
|
||||
- name: `string`
|
||||
- delay: `number` or `false`
|
||||
- Amount of time until this callback can be triggered again
|
||||
- ...: `any`
|
||||
|
||||
```lua
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
The response is handled in a separate coroutine.
|
||||
|
||||
```lua
|
||||
lib.callback(name, source, cb, ...)
|
||||
lib.callback(name, playerId, cb, ...)
|
||||
```
|
||||
|
||||
- name: `string`
|
||||
- source: `number`
|
||||
- playerId: `number`
|
||||
- cb: `function`
|
||||
- ...: `any`
|
||||
|
||||
@@ -26,11 +26,11 @@ end, args.radius)
|
||||
The current coroutine is yielded until a response is received.
|
||||
|
||||
```lua
|
||||
lib.callback.await(name, source, ...)
|
||||
lib.callback.await(name, playerId, ...)
|
||||
```
|
||||
|
||||
- name: `string`
|
||||
- source: `number`
|
||||
- playerId: `number`
|
||||
- ...: `any`
|
||||
|
||||
```lua
|
||||
|
||||
Reference in new issue
Block a user