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 | |
Model (int hash) | |
Model (string name) | |
Model (PedHash hash) | |
Model (WeaponHash hash) | |
Model (VehicleHash hash) | |
void | Request () |
Attempts to load this Model into memory. More... | |
bool | Request (int timeout) |
Attempts to load this Model into memory for a given period of time. More... | |
void | RequestCollision () |
Attempts to load this Model's collision into memory. More... | |
bool | RequestCollision (int timeout) |
Attempts to load this Model's collision into memory for a given period of time. More... | |
void | MarkAsNoLongerNeeded () |
Tells the game we have finished using this Model and it can be freed from memory. More... | |
bool | Equals (Model model) |
override bool | Equals (object obj) |
override int | GetHashCode () |
override string | ToString () |
Static Public Member Functions | |
static bool | operator== (Model left, Model right) |
static bool | operator!= (Model left, Model right) |
static implicit | operator int (Model source) |
static implicit | operator PedHash (Model source) |
static implicit | operator WeaponHash (Model source) |
static implicit | operator VehicleHash (Model source) |
static implicit | operator Model (int source) |
static implicit | operator Model (string source) |
static implicit | operator Model (PedHash source) |
static implicit | operator Model (WeaponHash source) |
static implicit | operator Model (VehicleHash source) |
static implicit | operator InputArgument (Model value) |
Public Attributes | |
bool | IsValid => Function.Call<bool>(Native.Hash.IS_MODEL_VALID, Hash) |
Gets if this Model is valid. More... | |
bool | IsInCdImage => Function.Call<bool>(Native.Hash.IS_MODEL_IN_CDIMAGE, Hash) |
Gets a value indicating whether this Model is in the CD image. More... | |
bool | IsLoaded => Function.Call<bool>(Native.Hash.HAS_MODEL_LOADED, Hash) |
Gets a value indicating whether this Model is loaded so it can be spawned. More... | |
bool | IsCollisionLoaded => Function.Call<bool>(Native.Hash.HAS_COLLISION_FOR_MODEL_LOADED, Hash) |
Gets a value indicating whether the collision for this Model is loaded. More... | |
bool | IsAmphibiousCar => Game.Version >= GameVersion.v1_0_944_2_Steam && Function.Call<bool>(Native.Hash._IS_THIS_MODEL_AN_AMPHIBIOUS_CAR, Hash) |
Gets a value indicating whether this Model is an amphibious car. More... | |
bool | IsAmphibiousQuadBike => Game.Version >= GameVersion.v1_0_944_2_Steam && Function.Call<bool>(Native.Hash._IS_THIS_MODEL_AN_AMPHIBIOUS_QUADBIKE, Hash) |
Gets a value indicating whether this Model is an amphibious quad bike. More... | |
bool | IsAmphibiousVehicle => IsAmphibiousCar || IsAmphibiousQuadBike |
Gets a value indicating whether this Model is an amphibious vehicle. More... | |
bool | IsBicycle => Function.Call<bool>(Native.Hash.IS_THIS_MODEL_A_BICYCLE, Hash) |
Gets a value indicating whether this Model is a bicycle. More... | |
bool | IsBike => Function.Call<bool>(Native.Hash.IS_THIS_MODEL_A_BIKE, Hash) |
Gets a value indicating whether this Model is a motorbike. More... | |
bool | IsBlimp => SHVDN.NativeMemory.IsModelABlimp(Hash) |
Gets a value indicating whether this Model is a blimp. More... | |
bool | IsBoat => Function.Call<bool>(Native.Hash.IS_THIS_MODEL_A_BOAT, Hash) |
Gets a value indicating whether this Model is a boat. More... | |
bool | IsCar => Function.Call<bool>(Native.Hash.IS_THIS_MODEL_A_CAR, Hash) |
Gets a value indicating whether this Model is a car. More... | |
bool | IsCargobob => (VehicleHash)Hash == VehicleHash.Cargobob || (VehicleHash)Hash == VehicleHash.Cargobob2 || (VehicleHash)Hash == VehicleHash.Cargobob3 || (VehicleHash)Hash == VehicleHash.Cargobob4 |
Gets a value indicating whether this Model is a cargobob. More... | |
bool | IsHelicopter => Function.Call<bool>(Native.Hash.IS_THIS_MODEL_A_HELI, Hash) |
Gets a value indicating whether this Model is a helicopter. More... | |
bool | IsJetSki => Function.Call<bool>(Native.Hash.IS_THIS_MODEL_A_JETSKI, Hash) |
Gets a value indicating whether this Model is a jet ski. More... | |
bool | IsPed => SHVDN.NativeMemory.IsModelAPed(Hash) |
Gets a value indicating whether this Model is a pedestrian. More... | |
bool | IsPlane => Function.Call<bool>(Native.Hash.IS_THIS_MODEL_A_PLANE, Hash) |
Gets a value indicating whether this Model is a plane. More... | |
bool | IsProp => IsValid && !IsPed && !IsVehicle |
Gets a value indicating whether this Model is a prop. More... | |
bool | IsQuadBike => Function.Call<bool>(Native.Hash.IS_THIS_MODEL_A_QUADBIKE, Hash) |
Gets a value indicating whether this Model is a quad bike. More... | |
bool | IsTrain => Function.Call<bool>(Native.Hash.IS_THIS_MODEL_A_TRAIN, Hash) |
Gets a value indicating whether this Model is a train. More... | |
bool | IsTrailer => SHVDN.NativeMemory.IsModelATrailer(Hash) |
Gets a value indicating whether this Model is a trailer. More... | |
bool | IsVehicle => Function.Call<bool>(Native.Hash.IS_MODEL_A_VEHICLE, Hash) |
Gets a value indicating whether this Model is a vehicle. More... | |
Vector3 | rearBottomLeft |
Gets the dimensions of this Model. More... | |
Properties | |
int | Hash [get] |
Gets the hash for this Model. More... | |
ulong | NativeValue [get, set] |
Gets the native representation of this Model. More... | |
Vector3 Vector3 frontTopRight | Dimensions [get] |
Properties inherited from GTA.Native.INativeValue | |
ulong | NativeValue [get, set] |
GTA.Model.Model | ( | int | hash | ) |
GTA.Model.Model | ( | string | name | ) |
GTA.Model.Model | ( | PedHash | hash | ) |
GTA.Model.Model | ( | WeaponHash | hash | ) |
GTA.Model.Model | ( | VehicleHash | hash | ) |
bool GTA.Model.Equals | ( | Model | model | ) |
override bool GTA.Model.Equals | ( | object | obj | ) |
override int GTA.Model.GetHashCode | ( | ) |
void GTA.Model.MarkAsNoLongerNeeded | ( | ) |
Tells the game we have finished using this Model and it can be freed from memory.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
void GTA.Model.Request | ( | ) |
Attempts to load this Model into memory.
bool GTA.Model.Request | ( | int | timeout | ) |
void GTA.Model.RequestCollision | ( | ) |
Attempts to load this Model's collision into memory.
bool GTA.Model.RequestCollision | ( | int | timeout | ) |
override string GTA.Model.ToString | ( | ) |
bool GTA.Model.IsAmphibiousCar => Game.Version >= GameVersion.v1_0_944_2_Steam && Function.Call<bool>(Native.Hash._IS_THIS_MODEL_AN_AMPHIBIOUS_CAR, Hash) |
bool GTA.Model.IsAmphibiousQuadBike => Game.Version >= GameVersion.v1_0_944_2_Steam && Function.Call<bool>(Native.Hash._IS_THIS_MODEL_AN_AMPHIBIOUS_QUADBIKE, Hash) |
bool GTA.Model.IsAmphibiousVehicle => IsAmphibiousCar || IsAmphibiousQuadBike |
bool GTA.Model.IsBicycle => Function.Call<bool>(Native.Hash.IS_THIS_MODEL_A_BICYCLE, Hash) |
bool GTA.Model.IsBike => Function.Call<bool>(Native.Hash.IS_THIS_MODEL_A_BIKE, Hash) |
bool GTA.Model.IsBlimp => SHVDN.NativeMemory.IsModelABlimp(Hash) |
bool GTA.Model.IsBoat => Function.Call<bool>(Native.Hash.IS_THIS_MODEL_A_BOAT, Hash) |
bool GTA.Model.IsCar => Function.Call<bool>(Native.Hash.IS_THIS_MODEL_A_CAR, Hash) |
bool GTA.Model.IsCargobob => (VehicleHash)Hash == VehicleHash.Cargobob || (VehicleHash)Hash == VehicleHash.Cargobob2 || (VehicleHash)Hash == VehicleHash.Cargobob3 || (VehicleHash)Hash == VehicleHash.Cargobob4 |
bool GTA.Model.IsCollisionLoaded => Function.Call<bool>(Native.Hash.HAS_COLLISION_FOR_MODEL_LOADED, Hash) |
Gets a value indicating whether the collision for this Model is loaded.
true
if the collision is loaded; otherwise, false
.
bool GTA.Model.IsHelicopter => Function.Call<bool>(Native.Hash.IS_THIS_MODEL_A_HELI, Hash) |
bool GTA.Model.IsInCdImage => Function.Call<bool>(Native.Hash.IS_MODEL_IN_CDIMAGE, Hash) |
bool GTA.Model.IsJetSki => Function.Call<bool>(Native.Hash.IS_THIS_MODEL_A_JETSKI, Hash) |
bool GTA.Model.IsLoaded => Function.Call<bool>(Native.Hash.HAS_MODEL_LOADED, Hash) |
bool GTA.Model.IsPed => SHVDN.NativeMemory.IsModelAPed(Hash) |
bool GTA.Model.IsPlane => Function.Call<bool>(Native.Hash.IS_THIS_MODEL_A_PLANE, Hash) |
bool GTA.Model.IsQuadBike => Function.Call<bool>(Native.Hash.IS_THIS_MODEL_A_QUADBIKE, Hash) |
bool GTA.Model.IsTrailer => SHVDN.NativeMemory.IsModelATrailer(Hash) |
bool GTA.Model.IsTrain => Function.Call<bool>(Native.Hash.IS_THIS_MODEL_A_TRAIN, Hash) |
bool GTA.Model.IsValid => Function.Call<bool>(Native.Hash.IS_MODEL_VALID, Hash) |
bool GTA.Model.IsVehicle => Function.Call<bool>(Native.Hash.IS_MODEL_A_VEHICLE, Hash) |
Vector3 GTA.Model.rearBottomLeft |
Gets the dimensions of this Model.
|
get |
Gets the hash for this Model.
|
getset |
Gets the native representation of this Model.