Weapon::requestWeaponAsset: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
Nearly every instance of p1 I found was 31. Nearly every instance of p2 I found was 0.<br><br>REQUEST_WEAPON_ASSET(iLocal_1888, 31, 26);
Nearly every instance of p1 I found was 31. Nearly every instance of p2 I found was 0.<br><br>REQUEST_WEAPON_ASSET(iLocal_1888, 31, 26);
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">weapon.requestWeaponAsset(weaponHash, p1, p2);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.weapon.requestWeaponAsset(weaponHash, p1, p2);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''weaponHash:''' Model hash or name
*'''weaponHash:''' Model hash or name
Line 10: Line 10:
==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]]

Latest revision as of 21:35, 6 May 2017

Nearly every instance of p1 I found was 31. Nearly every instance of p2 I found was 0.

REQUEST_WEAPON_ASSET(iLocal_1888, 31, 26);

Syntax

mp.game.weapon.requestWeaponAsset(weaponHash, p1, p2);

Required Arguments

  • weaponHash: Model hash or name
  • p1: int
  • p2: int

Return value

  • Undefined

Example

// todo

See also