Squirrel/Server/Functions/Cheats/GetFlyingCars
From Liberty Unleashed Wiki
(Difference between revisions)
(→Example) |
|||
Line 12: | Line 12: | ||
== Example == | == Example == | ||
− | |||
<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
bool GetFlyingCars()
Arguments
- none
Example
function onPlayerCommand( player, command, text ) { if ( command == "flyingcars" ) MessagePlayer( "Flying vehicles are currently set to " + GetFlyingCars(), player ); }
Notes
This function returns a simple true/false value.
Related Functions
- GetFlyingCars
- GetHandlingCheat
- SetFlyingCars
- SetHandlingCheat