Weapon::getWeapontypeGroup: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
Line 1: Line 1:
Retrieves the weapon group of the supplied weapon hash.
Retrieves the weapon group of the supplied weapon hash.


Weapon Groups
* '''melee''': 2685387236
* '''Handguns''': 416676503
* '''Submachine Gun''': 3337201093
* '''Shotgun''': 860033945
* '''Assault Rifle''': 970310034
* '''Light Machine Gun''': 1159398588
* '''Sniper''': 3082541095
* '''Heavy Weapon''': 2725924767
* '''Throwables''': 1548507267
* '''Misc''': 4257178988
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">mp.game.weapon.getWeapontypeGroup(weaponHash);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.weapon.getWeapontypeGroup(weaponHash);</syntaxhighlight>

Revision as of 09:47, 16 July 2018

Retrieves the weapon group of the supplied weapon hash.

Syntax

mp.game.weapon.getWeapontypeGroup(weaponHash);

Required Arguments

  • weaponHash: Model hash or name

Return value

  • Weapon Group Hash

Example

// todo

See also