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.PedProp Class Reference
Inheritance diagram for GTA.PedProp:
GTA.IPedVariation

Public Member Functions

bool SetVariation (int index, int textureIndex=0)
 
bool IsVariationValid (int index, int textureIndex=0)
 
override string ToString ()
 

Public Attributes

string Name => Type.ToString()
 
int Count => Function.Call<int>(Hash.GET_NUMBER_OF_PED_PROP_DRAWABLE_VARIATIONS, _ped.Handle, Type) + 1
 
int TextureCount => Function.Call<int>(Hash.GET_NUMBER_OF_PED_PROP_TEXTURE_VARIATIONS, _ped.Handle, Type, Index - 1)
 
bool HasVariations => Count > 1
 
bool HasTextureVariations => Count > 1 && TextureCount > 1
 
bool HasAnyVariations => HasVariations
 

Properties

PedPropType Type [get]
 
int Index [get, set]
 
int? TextureIndex [get, set]
 
- Properties inherited from GTA.IPedVariation
int Count [get]
 
int Index [get, set]
 
int TextureCount [get]
 
int TextureIndex [get, set]
 
string Name [get]
 
bool HasVariations [get]
 
bool HasTextureVariations [get]
 
bool HasAnyVariations [get]
 

Member Function Documentation

◆ IsVariationValid()

bool GTA.PedProp.IsVariationValid ( int  index,
int  textureIndex = 0 
)

Implements GTA.IPedVariation.

◆ SetVariation()

bool GTA.PedProp.SetVariation ( int  index,
int  textureIndex = 0 
)

Implements GTA.IPedVariation.

◆ ToString()

override string GTA.PedProp.ToString ( )

Member Data Documentation

◆ Count

int GTA.PedProp.Count => Function.Call<int>(Hash.GET_NUMBER_OF_PED_PROP_DRAWABLE_VARIATIONS, _ped.Handle, Type) + 1

◆ HasAnyVariations

bool GTA.PedProp.HasAnyVariations => HasVariations

◆ HasTextureVariations

bool GTA.PedProp.HasTextureVariations => Count > 1 && TextureCount > 1

◆ HasVariations

bool GTA.PedProp.HasVariations => Count > 1

◆ Name

string GTA.PedProp.Name => Type.ToString()

◆ TextureCount

int GTA.PedProp.TextureCount => Function.Call<int>(Hash.GET_NUMBER_OF_PED_PROP_TEXTURE_VARIATIONS, _ped.Handle, Type, Index - 1)

Property Documentation

◆ Index

int GTA.PedProp.Index
getset

◆ TextureIndex

int? GTA.PedProp.TextureIndex
getset

◆ Type

PedPropType GTA.PedProp.Type
get

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