SetHandlingCheat
From Liberty Unleashed Wiki
This function enables or disables the improved handling cheat code (cornerslikemad in GTA III / gripiseverything in GTA:VC) for an individual player or the server globally.
Syntax
bool SetHandlingCheat( bool enabled )
bool SetHandlingCheat( Player plr, bool enabled )
Arguments
- enabled - A boolean to either enable (true) or disable (false) this cheat code
- plr - The player to enable/disable this cheat code for. Without this argument the function will change the global status
Example
This example enables the handling cheat globally if someone types '/handlinghax'.
function onPlayerCommand( player, command, text ) { if ( command == "handlinghax" ) SetHandlingCheat( true ); return 1; }
Notes
The event onPlayerCommand was used in in this example. More info about it in the corresponding page.
Related Functions
- GetFlyingCars
- GetHandlingCheat
- SetFlyingCars
- SetHandlingCheat