Files
overextended.github.io/pages/ox_lib/Modules/DisableControls/Client.mdx
T
Jag 74227cc262 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
2023-07-03 13:13:56 +10:00

45 lines
953 B
Plaintext

A centralized way to track and disable controls.
### lib.disableControls
Call on frame to disable all stored controls.
```lua
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` 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` 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` or `table`
- Control(s) to clear out from being tracked