GetPlayerWeaponComponents

From RAGE Multiplayer Wiki
Revision as of 13:28, 27 November 2019 by Muphy (talk | contribs) (Created page with "Get all components from a weapon. ==Syntax== <syntaxhighlight lang="C#" >WeaponComponent[] NAPI.Player.GetPlayerWeaponComponents(Client player, WeaponHash weapon);</syntaxhig...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Get all components from a weapon.

Syntax

WeaponComponent[] NAPI.Player.GetPlayerWeaponComponents(Client player, WeaponHash weapon);

Required Arguments

  • player: parameter input should be in Client type.
  • weapon: parameter input should be in WeaponHash type.

NOTE: This function returns data in WeaponComponent[] type.

Usage example(s)

Example Description

NAPI.Player.GetPlayerWeaponComponents(player, weapon);