SHVDN  v3
An ASI plugin for Grand Theft Auto V, which allows running scripts written in any .NET language in-game. Developed by crosire https://github.com/crosire/scripthookvdotnet/
GTA.WeaponComponent Class Reference

Static Public Member Functions

static implicit operator WeaponComponentHash (WeaponComponent weaponComponent)
 

Public Attributes

string DisplayName => GetComponentDisplayNameFromHash(_weapon.Hash, ComponentHash)
 
string LocalizedName => Game.GetLocalizedString(DisplayName)
 
WeaponAttachmentPoint AttachmentPoint => GetAttachmentPoint(_weapon.Hash, ComponentHash)
 

Properties

bool? Active [get, set]
 
WeaponComponentHash ComponentHash [get]
 

Member Function Documentation

◆ operator WeaponComponentHash()

static implicit GTA.WeaponComponent.operator WeaponComponentHash ( WeaponComponent  weaponComponent)
static

Member Data Documentation

◆ AttachmentPoint

WeaponAttachmentPoint GTA.WeaponComponent.AttachmentPoint => GetAttachmentPoint(_weapon.Hash, ComponentHash)

◆ DisplayName

string GTA.WeaponComponent.DisplayName => GetComponentDisplayNameFromHash(_weapon.Hash, ComponentHash)

◆ LocalizedName

string GTA.WeaponComponent.LocalizedName => Game.GetLocalizedString(DisplayName)

Property Documentation

◆ Active

bool? GTA.WeaponComponent.Active
getset

◆ ComponentHash

WeaponComponentHash GTA.WeaponComponent.ComponentHash
get

The documentation for this class was generated from the following file: