Weapon::getWeapontypeModel: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
Line 1: Line 1:
Returns the model of any weapon.<br><br>Can also take an ammo hash?<br>sub_6663a(&amp;l_115B, WEAPON::GET_WEAPONTYPE_MODEL(${ammo_rpg}));
Returns the model of any weapon.<br><br>Can also take an ammo hash?<br>sub_6663a(&amp;l_115B, WEAPON::GET_WEAPONTYPE_MODEL(${ammo_rpg}));
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">weapon.getWeapontypeModel(weaponHash);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.weapon.getWeapontypeModel(weaponHash);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''weaponHash:''' Model hash or name
*'''weaponHash:''' Model hash or name
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Weapon_function_c}}
{{Weapon_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 21:35, 6 May 2017

Returns the model of any weapon.

Can also take an ammo hash?
sub_6663a(&l_115B, WEAPON::GET_WEAPONTYPE_MODEL(${ammo_rpg}));

Syntax

mp.game.weapon.getWeapontypeModel(weaponHash);

Required Arguments

  • weaponHash: Model hash or name

Return value

  • Model hash or name

Example

// todo

See also