Weapon::giveWeaponComponentToWeaponObject: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
addonHash:<br>(use WEAPON::GET_WEAPON_COMPONENT_TYPE_MODEL() to get hash value)<br>${component_at_ar_flsh}, ${component_at_ar_supp}, ${component_at_pi_flsh}, ${component_at_scope_large}, ${component_at_ar_supp_02}
addonHash:<br>(use WEAPON::GET_WEAPON_COMPONENT_TYPE_MODEL() to get hash value)<br>${component_at_ar_flsh}, ${component_at_ar_supp}, ${component_at_pi_flsh}, ${component_at_scope_large}, ${component_at_ar_supp_02}
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">weapon.giveWeaponComponentToWeaponObject(weaponObject, addonHash);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.weapon.giveWeaponComponentToWeaponObject(weaponObject, addonHash);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''weaponObject:''' Object handle or object
*'''weaponObject:''' Object handle or object
Line 9: Line 9:
==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

addonHash:
(use WEAPON::GET_WEAPON_COMPONENT_TYPE_MODEL() to get hash value)
${component_at_ar_flsh}, ${component_at_ar_supp}, ${component_at_pi_flsh}, ${component_at_scope_large}, ${component_at_ar_supp_02}

Syntax

mp.game.weapon.giveWeaponComponentToWeaponObject(weaponObject, addonHash);

Required Arguments

  • weaponObject: Object handle or object
  • addonHash: Model hash or name

Return value

  • Undefined

Example

// todo

See also