Vehicle::isThisModelACar: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
To check if the model is an amphibious car, see gtaforums.com/topic/717612-v-scriptnative-documentation-and-research/page-33#entry1069317363 (for build 944 and above only!)
To check if the model is an amphibious car, see gtaforums.com/topic/717612-v-scriptnative-documentation-and-research/page-33#entry1069317363 (for build 944 and above only!)
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">vehicle.isThisModelACar(model);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.vehicle.isThisModelACar(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

To check if the model is an amphibious car, see gtaforums.com/topic/717612-v-scriptnative-documentation-and-research/page-33#entry1069317363 (for build 944 and above only!)

Syntax

mp.game.vehicle.isThisModelACar(model);

Required Arguments

  • model: Model hash or name

Return value

  • Boolean

Example

// todo

See also