UNPKG

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) 749 B
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; } setCoords(xPos, yPos, zPos, xAxis, yAxis, zAxis, clearArea) { this.mpEntity.setCoords(xPos, yPos, zPos, xAxis, yAxis, zAxis, clearArea); } }