Files
overextended.github.io/pages/ox_lib/Modules/DisableControls/Client.mdx
T
JagandLuke 1d2c490b26 refactor: Add h1 headers to all pages missing it (#137)
* refactor: Add h1 headers to all pages missing it

* refactor: missed example h3

* change hooks example heading to bold text

---------

Co-authored-by: Luke <[email protected]>
2023-07-08 11:08:43 +02:00

47 lines
959 B
Plaintext

# Client
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