JSPM

@infernus/mapandreas

0.3.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q39077F
  • License MIT

A wrapper of the popular SA-MP MapAndreas plugin for samp-node.

Package Exports

  • @infernus/mapandreas

Readme

@infernus/mapandreas

npm npm npm bundle size

A wrapper of the popular SA-MP MapAndreas plugin for samp-node.

Getting started

pnpm add @infernus/core @infernus/mapandreas

Example

import { GameMode } from "@infernus/core";
import { MapAndreas, MapAndreasMode } from "@infernus/mapandreas";

GameMode.onInit(({ next }) => {
  MapAndreas.init(MapAndreasMode.Full, "scriptfiles/SAFull.hmap");

  let pos = MapAndreas.findAverageZ(20.001, 25.006);

  if (pos) {
    // Found position - position saved in 'pos'
  }
  return next();
});