Squirrel/Server/Functions/Cheats/SetFlyingCars
From Liberty Unleashed Wiki
(Difference between revisions)
(New page: __NOTOC__ This function enables or disables the flying cars cheat code (''chittychittybb'' in GTA III / ''comeflywithme'' in GTA:VC). == Syntax == <code>bool SetFlyingCars( bool enabled ...) |
(→Example) |
||
Line 12: | Line 12: | ||
== Example == | == Example == | ||
− | |||
<code lang="squirrel"> | <code lang="squirrel"> | ||
− | + | function onPlayerCommand( player, command, text ) | |
+ | { | ||
+ | if ( command == "flycars" )SetFlyingCars( true ); | ||
+ | } | ||
</code> | </code> | ||
=== Notes === | === Notes === | ||
− | + | This function is used to enable/disable flying cars. | |
== Related Functions == | == Related Functions == | ||
{{Squirrel/Server/Functions/Cheats}} | {{Squirrel/Server/Functions/Cheats}} |
Revision as of 02:31, 7 January 2010
This function enables or disables the flying cars cheat code (chittychittybb in GTA III / comeflywithme in GTA:VC).
Syntax
bool SetFlyingCars( bool enabled )
Arguments
- enabled - A boolean to either enable (true) or disable (false) this cheat code
Example
function onPlayerCommand( player, command, text ) { if ( command == "flycars" )SetFlyingCars( true ); }
Notes
This function is used to enable/disable flying cars.
Related Functions
- GetFlyingCars
- GetHandlingCheat
- SetFlyingCars
- SetHandlingCheat