Squirrel/Server/Functions/Cheats/SetHandlingCheat

From Liberty Unleashed Wiki
Revision as of 17:48, 7 January 2010 by Juppi (Talk | contribs)

Jump to: navigation, search

This function enables or disables the improved handling cheat code (cornerslikemad in GTA III / gripiseverything in GTA:VC).

Syntax

  1. bool SetHandlingCheat( bool enabled )

Arguments

  • enabled - A boolean to either enable (true) or disable (false) this cheat code

Example

This example enables the handling cheat if someone types '/handlinghax'.

  1.  
  2. function onPlayerCommand( player, command, text )
  3. {
  4. if ( command == "handlinghax" ) SetHandlingCheat( true );
  5. }
  6.  

Notes

The event onPlayerCommand was used in in this example. More info about it in the corresponding page.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox