Перейти к содержанию

HasPlayerGotWeaponComponent

Материал из RAGE MP Wiki Archive
Версия от 13:31, 27 ноября 2019; imported>Muphy (Created page with "==Syntax== <syntaxhighlight lang="C#" >bool NAPI.Player.HasPlayerWeaponComponent(Client player, WeaponHash weapon, WeaponComponent component);</syntaxhighlight> '''Required A...")
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Syntax

<syntaxhighlight lang="C#" >bool NAPI.Player.HasPlayerWeaponComponent(Client player, WeaponHash weapon, WeaponComponent component);</syntaxhighlight>

Required Arguments

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

NOTE: This function returns data in bool type.

Usage example(s)

Example Description <syntaxhighlight lang="C#" >NAPI.Player.HasPlayerWeaponComponent(player, weapon, component);</syntaxhighlight>