A wrapper of the popular SA-MP MapAndreas plugin for samp-node.
npm install @infernus/mapandreas !npm !npm bundle size
A wrapper of the popular SA-MP MapAndreas plugin for samp-node.
``sh`
pnpm add @infernus/core @infernus/mapandreas
`ts
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();
});
``