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) 828 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RageBlipsManager = void 0; const RageWorldObjectsManager_1 = require("../worldObject/RageWorldObjectsManager"); const RageBlip_1 = require("./RageBlip"); class RageBlipsManager extends RageWorldObjectsManager_1.RageWorldObjectsManager { constructor() { super({ baseObjectsType: "blip", }); } create(options) { const { sprite, position } = options; const mpEntity = mp.blips.new(sprite, new mp.Vector3(position), options); mpEntity.isExists = () => mp.blips.exists(mpEntity); const blip = new RageBlip_1.RageBlip({ mpEntity: mpEntity, }); this.registerBaseObject(blip); return blip; } } exports.RageBlipsManager = RageBlipsManager;