rock-mod
Version:
Rock-Mod is a powerful framework designed for creating and managing mods for Grand Theft Auto (GTA) games.
21 lines (20 loc) • 579 B
JavaScript
import { RageWorldObject } from "../worldObject/RageWorldObject";
import { Vector3D } from "../../../../shared/common/utils";
export class RageEntity extends RageWorldObject {
get model() {
return this.mpEntity.model;
}
get rotation() {
const { x, y, z } = this.mpEntity.rotation;
return new Vector3D(x, y, z);
}
constructor(options) {
super(options);
}
setModel(value) {
this.mpEntity.model = mp.game.joaat(value);
}
setRotation(value) {
this.mpEntity.rotation = new mp.Vector3(value);
}
}