Squirrel/Server/Functions/Cheats/SetFlyingCars

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Example)
m (Example)
Line 15: Line 15:
 
function onPlayerCommand( player, command, text )
 
function onPlayerCommand( player, command, text )
 
{
 
{
if ( command == "flycars" )SetFlyingCars( true );
+
if ( command == "flycars" ) SetFlyingCars( true );
 
}
 
}
 
</code>
 
</code>

Revision as of 02:32, 7 January 2010

This function enables or disables the flying cars cheat code (chittychittybb in GTA III / comeflywithme in GTA:VC).

Syntax

  1. bool SetFlyingCars( 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 == "flycars" ) SetFlyingCars( true );
  5. }
  6.  

Notes

This function is used to enable/disable flying cars.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox