ivehicle class
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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<TEntity> {
|
||||
|
||||
Reference in New Issue
Block a user