Weapon::giveWeaponComponentToWeaponObject

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

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