@infernus/mapandreas
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

@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();
});

Package Sidebar

Install

npm i @infernus/mapandreas

Weekly Downloads

2

Version

0.2.0

License

MIT

Unpacked Size

5.32 kB

Total Files

6

Last publish

Collaborators

  • dockfries