ivehicle class

This commit is contained in:
hydrant
2021-04-06 20:33:26 +02:00
parent a09690b58c
commit a95ed206cf
2 changed files with 8 additions and 0 deletions

View File

@@ -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;
}
}