mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 22:21:48 +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
@@ -1,6 +1,8 @@
|
||||
A centralized way to track and disable controls.
|
||||
|
||||
### lib.disableControls
|
||||
|
||||
Call on frame to disable all stored keys.
|
||||
Call on frame to disable all stored controls.
|
||||
|
||||
```lua
|
||||
lib.disableControls()
|
||||
@@ -8,24 +10,35 @@ lib.disableControls()
|
||||
|
||||
### lib.disableControls:Add
|
||||
|
||||
Adds the specified control(s) to the stored list.
|
||||
If the control is already being tracked, the stored counter will be incremented.
|
||||
|
||||
```lua
|
||||
lib.disableControls:Add(...)
|
||||
```
|
||||
|
||||
* vararg: `number`
|
||||
- vararg: `number` or `table`
|
||||
- Control(s) to add a stored count of
|
||||
|
||||
### lib.disableControls:Remove
|
||||
|
||||
Removes the specified control(s) from the stored list.
|
||||
If the stored counter for a given control is greater than one, the stored counter will be decremented.
|
||||
|
||||
```lua
|
||||
lib.disableControls:Remove(...)
|
||||
```
|
||||
|
||||
* vararg: `number`
|
||||
- vararg: `number` or `table`
|
||||
- Control(s) to remove a stored count of
|
||||
|
||||
### lib.disableControls:Clear
|
||||
|
||||
Clears the stored counter(s) for the specified control(s).
|
||||
|
||||
```lua
|
||||
lib.disableControls:Clear(...)
|
||||
```
|
||||
|
||||
* vararg: `number`
|
||||
- vararg: `number` or `table`
|
||||
- Control(s) to clear out from being tracked
|
||||
Reference in new issue
Block a user