0.0.2 • Published 5 months ago

@infernus/weapon-config v0.0.2

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

@infernus/weapon-config

npm npm npm bundle size

A wrapper of the popular SA-MP weapon-config library for samp-node.

Notice

  • Mandatory use raknet and streamer
  • Removed SKY

Getting started

pnpm add @infernus/core @infernus/raknet @infernus/weapon-config

Example

// if you using nex-ac, import it before weapon-config

import { GameMode } from "@infernus/core";
import {
  defineWeaponConfig,
  setVehiclePassengerDamage,
  setKnifeSync,
} from "@infernus/weapon-config";

// other imports and code

defineWeaponConfig(() => {
  return {
    DEBUG: true,
  };
});

GameMode.onInit(({ next }) => {
  setVehiclePassengerDamage(true);
  setKnifeSync(true);
  return next();
});
0.0.2

5 months ago

0.0.1

6 months ago