Vehicle::isThisModelAnEmergencyBoat: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
Checks if model is a boat, then checks an additional flag.<br><br>Returns true for these models:<br>PREDATOR<br>SEASHARK2<br>SPEEDER
Checks if model is a boat, then checks an additional flag.<br><br>Returns true for these models:<br>PREDATOR<br>SEASHARK2<br>SPEEDER
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">vehicle.isThisModelAnEmergencyBoat(model);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.vehicle.isThisModelAnEmergencyBoat(model);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''model:''' Model hash or name
*'''model:''' Model hash or name
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Vehicle_function_c}}
{{Vehicle_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:34, 6 May 2017

Checks if model is a boat, then checks an additional flag.

Returns true for these models:
PREDATOR
SEASHARK2
SPEEDER

Syntax

mp.game.vehicle.isThisModelAnEmergencyBoat(model);

Required Arguments

  • model: Model hash or name

Return value

  • Boolean

Example

// todo

See also