0.0.2 • Published 5 months ago
@infernus/weapon-config v0.0.2
@infernus/weapon-config
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-configExample
// 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();
});