GetHandlingCheat
From Liberty Unleashed Wiki
This function returns whether the improved handling cheat code (cornerslikemad in GTA III / gripiseverything in GTA:VC) has been activated for a certain player or the server. This function returns a simple true/false value.
Syntax
bool GetHandlingCheat( [ Player plr ] )
Arguments
- plr - With this optional argument you can check the cheat status for an individual player. Without it the function will return the global server status
Example
This example will return whether the handling cheat has been activated globally when someone types '/handling'.
function onPlayerCommand( player, command, text ) { if ( command == "handling" ) MessagePlayer( "Perfect Handling is currently set to " + GetHandlingCheat(), player ); return 1; }
Notes
The function MessagePlayer and event onPlayerCommand were used in this example. More info about them in the corresponding pages.
Related Functions
- GetFlyingCars
- GetHandlingCheat
- SetFlyingCars
- SetHandlingCheat