UNPKG

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) 635 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AltVColshape = void 0; const AltVWorldObject_1 = require("../worldObject/AltVWorldObject"); class AltVColshape extends AltVWorldObject_1.AltVWorldObject { constructor(options) { super(options); } get key() { const value = this.getNetData("key"); return typeof value === "string" ? value : undefined; } getNetData(name) { return this.mpEntity.getSyncedMeta(name); } setNetData(name, value) { this.mpEntity.setSyncedMeta({ name, value }); } } exports.AltVColshape = AltVColshape;