rock-mod
Version:
Rock-Mod is a powerful framework designed for creating and managing mods for Grand Theft Auto (GTA) games.
31 lines (30 loc) • 768 B
JavaScript
import { RageEntity } from "../entity/RageEntity";
export class RageVehicle extends RageEntity {
get bodyHealth() {
return this.mpEntity.getBodyHealth();
}
get engineHealth() {
return this.mpEntity.getEngineHealth();
}
get numberPlate() {
return this.mpEntity.getNumberPlateText();
}
get isDead() {
return this.mpEntity.isDead();
}
constructor(options) {
super(options);
}
setBodyHealth(value) {
this.mpEntity.setBodyHealth(value);
}
setEngineHealth(value) {
this.mpEntity.setEngineHealth(value);
}
setNumberPlate(value) {
this.mpEntity.setNumberPlateText(value);
}
explode() {
return this.mpEntity.explode(true, true);
}
}