Squirrel/Server/Functions/Cheats/GetFlyingCars

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Example)
Line 12: Line 12:
 
== Example ==
 
== Example ==
  
{{Squirrel/NeedsExample}}
 
 
<code lang="squirrel">
 
<code lang="squirrel">
 
function onPlayerCommand( player, command, text )
 
function onPlayerCommand( player, command, text )

Revision as of 02:28, 7 January 2010

This function returns whether the flying cars cheat code (chittychittybb in GTA III / comeflywithme in GTA:VC) has been activated.

Syntax

  1. bool GetFlyingCars()

Arguments

  • none

Example

  1.  
  2. function onPlayerCommand( player, command, text )
  3. {
  4. if ( command == "flyingcars" ) MessagePlayer( "Flying vehicles are currently set to " + GetFlyingCars(), player );
  5. }
  6.  

Notes

This function returns a simple true/false value.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox