Squirrel/Server/Functions/Cheats/SetHandlingCheat

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(New page: __NOTOC__ This function enables or disables the improved handling cheat code (''cornerslikemad'' in GTA III / ''gripiseverything'' in GTA:VC). == Syntax == <code>bool SetHandlingCheat( b...)
 
(Example)
Line 12: Line 12:
 
== Example ==
 
== Example ==
  
{{Squirrel/NeedsExample}}
 
 
<code lang="squirrel">
 
<code lang="squirrel">
-- todo
+
function onPlayerCommand( player, command, text )
 +
{
 +
if ( command == "handlinghax" ) SetHandlingCheat( true );
 +
}
 
</code>
 
</code>
  
 
=== Notes ===
 
=== Notes ===
  
-- Example notes here
+
This function is used to enable/disable perfect handling.
  
 
== Related Functions ==
 
== Related Functions ==
  
 
{{Squirrel/Server/Functions/Cheats}}
 
{{Squirrel/Server/Functions/Cheats}}

Revision as of 02:32, 7 January 2010

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

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

Notes

This function is used to enable/disable perfect handling.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox