diff --git a/ReallifeGamemode.Client/core/rage-mp/entities.ts b/ReallifeGamemode.Client/core/rage-mp/entities.ts index 537c765e..9073acc4 100644 --- a/ReallifeGamemode.Client/core/rage-mp/entities.ts +++ b/ReallifeGamemode.Client/core/rage-mp/entities.ts @@ -249,6 +249,13 @@ class RageVehicle extends RageEntity implements IVehicle { this.vehicle.setDoorShut(door, instantly); } + + get class(): number { + if (mp.vehicles.exists(this.vehicle)) { + return this.vehicle.getClass(); + } + return -1; + } } diff --git a/ReallifeGamemode.Client/game.ts b/ReallifeGamemode.Client/game.ts index 84d9f67c..db02729b 100644 --- a/ReallifeGamemode.Client/game.ts +++ b/ReallifeGamemode.Client/game.ts @@ -69,6 +69,7 @@ interface IVehicle extends IEntity { setDoorsLocked(state: boolean); setDoorShut(door: number, instantly: boolean); setDoorOpen(door: number, loose: boolean, instantly: boolean); + class: number; } interface IEntityPool {