|
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/
|
Static Public Member Functions | |
| static implicit | operator WeaponHash (Weapon weapon) |
| static string | GetDisplayNameFromHash (WeaponHash hash) |
Public Attributes | |
| string | DisplayName => GetDisplayNameFromHash(Hash) |
| string | LocalizedName => Game.GetLocalizedString(DisplayName) |
| bool | IsPresent => Hash == WeaponHash.Unarmed || Function.Call<bool>(Native.Hash.HAS_PED_GOT_WEAPON, owner.Handle, Hash) |
| Model | Model => new Model(Function.Call<int>(Native.Hash.GET_WEAPONTYPE_MODEL, Hash)) |
| WeaponGroup | Group => Function.Call<WeaponGroup>(Native.Hash.GET_WEAPONTYPE_GROUP, Hash) |
| int | DefaultClipSize => Function.Call<int>(Native.Hash.GET_WEAPON_CLIP_SIZE, Hash) |
| bool | CanUseOnParachute => Function.Call<bool>(Native.Hash.CAN_USE_WEAPON_ON_PARACHUTE, Hash) |
| WeaponComponentCollection | Components => components ?? (components = new WeaponComponentCollection(owner, this)) |
Properties | |
| WeaponHash | Hash [get] |
| WeaponTint | Tint [get, set] |
| int | Ammo [get, set] |
| int | AmmoInClip [get, set] |
| int | MaxAmmo [get] |
| int | MaxAmmoInClip [get] |
| bool | InfiniteAmmo [set] |
| bool | InfiniteAmmoClip [set] |
|
static |
|
static |
| bool GTA.Weapon.CanUseOnParachute => Function.Call<bool>(Native.Hash.CAN_USE_WEAPON_ON_PARACHUTE, Hash) |
| WeaponComponentCollection GTA.Weapon.Components => components ?? (components = new WeaponComponentCollection(owner, this)) |
| int GTA.Weapon.DefaultClipSize => Function.Call<int>(Native.Hash.GET_WEAPON_CLIP_SIZE, Hash) |
| string GTA.Weapon.DisplayName => GetDisplayNameFromHash(Hash) |
| WeaponGroup GTA.Weapon.Group => Function.Call<WeaponGroup>(Native.Hash.GET_WEAPONTYPE_GROUP, Hash) |
| bool GTA.Weapon.IsPresent => Hash == WeaponHash.Unarmed || Function.Call<bool>(Native.Hash.HAS_PED_GOT_WEAPON, owner.Handle, Hash) |
| string GTA.Weapon.LocalizedName => Game.GetLocalizedString(DisplayName) |
| Model GTA.Weapon.Model => new Model(Function.Call<int>(Native.Hash.GET_WEAPONTYPE_MODEL, Hash)) |
|
getset |
|
getset |
|
get |
|
set |
|
set |
|
get |
|
get |
|
getset |