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) • 594 B
JavaScript
import { RageBaseObject } from "../baseObject/RageBaseObject";
import { Vector3D } from "../../../../shared/common/utils/math/Vectors";
export class RageWorldObject extends RageBaseObject {
get position() {
const { x, y, z } = this.mpEntity.position;
return new Vector3D(x, y, z);
}
get dimension() {
return this.mpEntity.dimension;
}
constructor(options) {
super(options);
}
setPosition(value) {
this.mpEntity.position = new mp.Vector3(value);
}
setDimension(value) {
this.mpEntity.dimension = value;
}
}