0.2.1 • Published 12 months ago

@infernus/mapandreas v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

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

12 months ago

0.2.0

1 year ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago