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/
|
Public Member Functions | |
WeaponAsset (int hash) | |
WeaponAsset (uint hash) | |
WeaponAsset (WeaponHash hash) | |
void | Request () |
Attempts to load this WeaponAsset into memory. More... | |
bool | Request (int timeout) |
Attempts to load this WeaponAsset into memory for a given period of time. More... | |
void | MarkAsNoLongerNeeded () |
Tells the game we have finished using this WeaponAsset and it can be freed from memory. More... | |
bool | Equals (WeaponAsset weaponAsset) |
override bool | Equals (object obj) |
override int | GetHashCode () |
override string | ToString () |
Static Public Member Functions | |
static bool | operator== (WeaponAsset left, WeaponAsset right) |
static bool | operator!= (WeaponAsset left, WeaponAsset right) |
static implicit | operator WeaponAsset (int hash) |
static implicit | operator WeaponAsset (uint hash) |
static implicit | operator WeaponAsset (WeaponHash hash) |
static implicit | operator InputArgument (WeaponAsset value) |
Public Attributes | |
bool | IsValid => Function.Call<bool>(Native.Hash.IS_WEAPON_VALID, Hash) |
Gets if this WeaponAsset is valid. More... | |
bool | IsLoaded => Function.Call<bool>(Native.Hash.HAS_WEAPON_ASSET_LOADED, Hash) |
Gets a value indicating whether this WeaponAsset is loaded so it can be spawned. More... | |
string | DisplayName => Weapon.GetDisplayNameFromHash((WeaponHash)Hash) |
string | LocalizedName => Game.GetLocalizedString(Weapon.GetDisplayNameFromHash((WeaponHash)Hash)) |
Properties | |
int | Hash [get] |
Gets the hash for this WeaponAsset. More... | |
ulong | NativeValue [get, set] |
Gets the native representation of this WeaponAsset. More... | |
Properties inherited from GTA.Native.INativeValue | |
ulong | NativeValue [get, set] |
GTA.WeaponAsset.WeaponAsset | ( | int | hash | ) |
GTA.WeaponAsset.WeaponAsset | ( | uint | hash | ) |
GTA.WeaponAsset.WeaponAsset | ( | WeaponHash | hash | ) |
override bool GTA.WeaponAsset.Equals | ( | object | obj | ) |
bool GTA.WeaponAsset.Equals | ( | WeaponAsset | weaponAsset | ) |
override int GTA.WeaponAsset.GetHashCode | ( | ) |
void GTA.WeaponAsset.MarkAsNoLongerNeeded | ( | ) |
Tells the game we have finished using this WeaponAsset and it can be freed from memory.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
void GTA.WeaponAsset.Request | ( | ) |
Attempts to load this WeaponAsset into memory.
bool GTA.WeaponAsset.Request | ( | int | timeout | ) |
Attempts to load this WeaponAsset into memory for a given period of time.
timeout | The time (in milliseconds) before giving up trying to load this WeaponAsset. |
true
if this WeaponAsset is loaded; otherwise, false
.override string GTA.WeaponAsset.ToString | ( | ) |
string GTA.WeaponAsset.DisplayName => Weapon.GetDisplayNameFromHash((WeaponHash)Hash) |
bool GTA.WeaponAsset.IsLoaded => Function.Call<bool>(Native.Hash.HAS_WEAPON_ASSET_LOADED, Hash) |
Gets a value indicating whether this WeaponAsset is loaded so it can be spawned.
bool GTA.WeaponAsset.IsValid => Function.Call<bool>(Native.Hash.IS_WEAPON_VALID, Hash) |
Gets if this WeaponAsset is valid.
string GTA.WeaponAsset.LocalizedName => Game.GetLocalizedString(Weapon.GetDisplayNameFromHash((WeaponHash)Hash)) |
|
get |
Gets the hash for this WeaponAsset.
|
getset |
Gets the native representation of this WeaponAsset.