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.VehicleDoor Class Reference

Public Member Functions

void Open (bool loose=false, bool instantly=false)
 
void Close (bool instantly=false)
 
void Break (bool stayInTheWorld=true)
 

Public Attributes

bool IsOpen => AngleRatio > 0
 
bool IsFullyOpen => Function.Call<bool>(Hash.IS_VEHICLE_DOOR_FULLY_OPEN, Vehicle.Handle, Index)
 
bool IsBroken => Function.Call<bool>(Hash.IS_VEHICLE_DOOR_DAMAGED, Vehicle.Handle, Index)
 

Properties

Vehicle Vehicle [get]
 
VehicleDoorIndex Index [get]
 
bool CanBeBroken [set]
 
float AngleRatio [get, set]
 

Member Function Documentation

◆ Break()

void GTA.VehicleDoor.Break ( bool  stayInTheWorld = true)

◆ Close()

void GTA.VehicleDoor.Close ( bool  instantly = false)

◆ Open()

void GTA.VehicleDoor.Open ( bool  loose = false,
bool  instantly = false 
)

Member Data Documentation

◆ IsBroken

bool GTA.VehicleDoor.IsBroken => Function.Call<bool>(Hash.IS_VEHICLE_DOOR_DAMAGED, Vehicle.Handle, Index)

◆ IsFullyOpen

bool GTA.VehicleDoor.IsFullyOpen => Function.Call<bool>(Hash.IS_VEHICLE_DOOR_FULLY_OPEN, Vehicle.Handle, Index)

◆ IsOpen

bool GTA.VehicleDoor.IsOpen => AngleRatio > 0

Property Documentation

◆ AngleRatio

float GTA.VehicleDoor.AngleRatio
getset

◆ CanBeBroken

bool GTA.VehicleDoor.CanBeBroken
set

◆ Index

VehicleDoorIndex GTA.VehicleDoor.Index
get

◆ Vehicle

Vehicle GTA.VehicleDoor.Vehicle
get

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