GetPlayerWeaponComponents

From GTA Network Wiki
Jump to: navigation, search

GetPlayerWeaponComponents
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

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);

Changelog

Version Description
1.0 Release.

References