Struct WeaponAsset
Namespace: GTA
Assembly: ScriptHookVDotNet3.dll
Syntax
public struct WeaponAsset : IEquatable<WeaponAsset>, INativeValue
Constructors
|
Improve this Doc
View Source
WeaponAsset(WeaponHash)
Declaration
public WeaponAsset(WeaponHash hash)
Parameters
|
Improve this Doc
View Source
WeaponAsset(Int32)
Declaration
public WeaponAsset(int hash)
Parameters
Type |
Name |
Description |
Int32 |
hash |
|
|
Improve this Doc
View Source
WeaponAsset(UInt32)
Declaration
public WeaponAsset(uint hash)
Parameters
Type |
Name |
Description |
UInt32 |
hash |
|
Properties
|
Improve this Doc
View Source
DisplayName
Declaration
public readonly string DisplayName { get; }
Property Value
|
Improve this Doc
View Source
Hash
Declaration
public int Hash { readonly get; }
Property Value
|
Improve this Doc
View Source
IsLoaded
Gets a value indicating whether this WeaponAsset is loaded so it can be spawned.
Declaration
public readonly bool IsLoaded { get; }
Property Value
|
Improve this Doc
View Source
IsValid
Gets a value indicating whether this WeaponAsset is valid as a weapon or a ammo hash.
Declaration
public readonly bool IsValid { get; }
Property Value
|
Improve this Doc
View Source
IsValidAsWeaponHash
Gets a value indicating whether this WeaponAsset is valid as a weapon hash.
Declaration
public readonly bool IsValidAsWeaponHash { get; }
Property Value
|
Improve this Doc
View Source
LocalizedName
Declaration
public readonly string LocalizedName { get; }
Property Value
|
Improve this Doc
View Source
NativeValue
Declaration
public ulong NativeValue { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Equals(WeaponAsset)
Declaration
public bool Equals(WeaponAsset weaponAsset)
Parameters
Returns
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Improve this Doc
View Source
MarkAsNoLongerNeeded()
Tells the game we have finished using this WeaponAsset and it can be freed from memory.
Declaration
public void MarkAsNoLongerNeeded()
|
Improve this Doc
View Source
Request()
Declaration
|
Improve this Doc
View Source
Request(Int32)
Attempts to load this WeaponAsset into memory for a given period of time.
Declaration
public bool Request(int timeout)
Parameters
Type |
Name |
Description |
Int32 |
timeout |
The time (in milliseconds) before giving up trying to load this WeaponAsset.
|
Returns
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
|
Improve this Doc
View Source
Equality(WeaponAsset, WeaponAsset)
Declaration
public static bool operator ==(WeaponAsset left, WeaponAsset right)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static implicit operator InputArgument(WeaponAsset value)
Parameters
Returns
|
Improve this Doc
View Source
Implicit(WeaponHash to WeaponAsset)
Declaration
public static implicit operator WeaponAsset(WeaponHash hash)
Parameters
Returns
|
Improve this Doc
View Source
Implicit(Int32 to WeaponAsset)
Declaration
public static implicit operator WeaponAsset(int hash)
Parameters
Type |
Name |
Description |
Int32 |
hash |
|
Returns
|
Improve this Doc
View Source
Implicit(UInt32 to WeaponAsset)
Declaration
public static implicit operator WeaponAsset(uint hash)
Parameters
Type |
Name |
Description |
UInt32 |
hash |
|
Returns
|
Improve this Doc
View Source
Inequality(WeaponAsset, WeaponAsset)
Declaration
public static bool operator !=(WeaponAsset left, WeaponAsset right)
Parameters
Returns
Implements