ToggleAllControls
Jump to navigation
Jump to search
Enables or disables the use of a all gta controls for a specified player.
Syntax
bool toggleAllControls ( player thePlayer, bool enabled )
Required Arguments
- thePlayer: The player you wish to toggle the control ability of.
- enable: A boolean value representing whether or not the controls will be usable or not.
Example
This function will disable the use of all controls for 5seconds, for a freeze function.
function freezeThisDude ( player, time ) toggleAllControls ( player, false ) setTimer ( "toggleAllControls", time, 1, player, true ) end
See Also
- addCommandHandler
- bindKey
- executeCommandHandler
- getCommandHandlers
- getFunctionsBoundToKey
- getKeyBoundToFunction
- isControlEnabled
- removeCommandHandler
- toggleAllControls
- toggleControl
- unbindKey