Skip to main content
The Deno 2 Release Candidate is here
Learn more
method CustomItemService.prototype.addCustomWeaponToPMCs
import { CustomItemService } from "https://deno.land/x/sptaki@1.2.0/services/mod.ts";

Add a custom weapon to PMCs loadout

Parameters

weaponTpl: string

Custom weapon tpl to add to PMCs

weaponWeight: number

The weighting for the weapon to be picked vs other weapons

weaponSlot: string

The slot the weapon should be added to (e.g. FirstPrimaryWeapon/SecondPrimaryWeapon/Holster)