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