Vehicle::isModel: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
No edit summary
 
Line 1: Line 1:
{{ClientsideJsFunction}}
{{JSContainer|
Checks whether vehicle is a given model or not, returns true if it is, false if not.


==Syntax==
<syntaxhighlight lang="javascript">vehicle.isModel(model);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''model:''' Model hash or name
*'''modelHash:''' {{RageType|number}}
 
===Return value===
===Return value===
*'''Boolean'''
*''' {{RageType|boolean}} '''
 
==Syntax==
<syntaxhighlight lang="javascript">
vehicle.isModel(modelHash);
</syntaxhighlight>
 
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
// todo
</syntaxhighlight>
</syntaxhighlight>
}}
==See also==
==See also==
{{Vehicle_function_c}}
{{Vehicle_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 17:52, 28 May 2024

Client-Side
Function

 JavaScript



JavaScript Syntax


Checks whether vehicle is a given model or not, returns true if it is, false if not.

Required Arguments

  • modelHash: number

Return value

  • boolean

Syntax

vehicle.isModel(modelHash);

Example

// todo


See also