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.WeaponCollection Class Reference

Public Member Functions

bool HasWeapon (WeaponHash weaponHash)
 
bool IsWeaponValid (WeaponHash hash)
 
bool Select (Weapon weapon)
 
bool Select (WeaponHash weaponHash)
 
bool Select (WeaponHash weaponHash, bool equipNow)
 
Weapon Give (WeaponHash weaponHash, int ammoCount, bool equipNow, bool isAmmoLoaded)
 
Weapon Give (string name, int ammoCount, bool equipNow, bool isAmmoLoaded)
 
void Drop ()
 
void Remove (Weapon weapon)
 
void Remove (WeaponHash weaponHash)
 
void RemoveAll ()
 

Properties

Weapon this[WeaponHash hash] [get]
 
Weapon Current [get]
 
Weapon BestWeapon [get]
 
Prop CurrentWeaponObject [get]
 

Member Function Documentation

◆ Drop()

void GTA.WeaponCollection.Drop ( )

◆ Give() [1/2]

Weapon GTA.WeaponCollection.Give ( string  name,
int  ammoCount,
bool  equipNow,
bool  isAmmoLoaded 
)

◆ Give() [2/2]

Weapon GTA.WeaponCollection.Give ( WeaponHash  weaponHash,
int  ammoCount,
bool  equipNow,
bool  isAmmoLoaded 
)

◆ HasWeapon()

bool GTA.WeaponCollection.HasWeapon ( WeaponHash  weaponHash)

◆ IsWeaponValid()

bool GTA.WeaponCollection.IsWeaponValid ( WeaponHash  hash)

◆ Remove() [1/2]

void GTA.WeaponCollection.Remove ( Weapon  weapon)

◆ Remove() [2/2]

void GTA.WeaponCollection.Remove ( WeaponHash  weaponHash)

◆ RemoveAll()

void GTA.WeaponCollection.RemoveAll ( )

◆ Select() [1/3]

bool GTA.WeaponCollection.Select ( Weapon  weapon)

◆ Select() [2/3]

bool GTA.WeaponCollection.Select ( WeaponHash  weaponHash)

◆ Select() [3/3]

bool GTA.WeaponCollection.Select ( WeaponHash  weaponHash,
bool  equipNow 
)

Property Documentation

◆ BestWeapon

Weapon GTA.WeaponCollection.BestWeapon
get

◆ Current

Weapon GTA.WeaponCollection.Current
get

◆ CurrentWeaponObject

Prop GTA.WeaponCollection.CurrentWeaponObject
get

◆ this[WeaponHash hash]

Weapon GTA.WeaponCollection.this[WeaponHash hash]
get

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