Please do not ask when mod authors will update their mods to 3.9.X
Bothering mod authors will lead to warnings and repeat offenses will lead to eventual bans.
Bothering mod authors will lead to warnings and repeat offenses will lead to eventual bans.
-
Version 1.0.3
- Echo55
- 2.1k Downloads
Updated to SPT 3.9.1
-
Version 1.0.2
- Echo55
- 1.1k Downloads
Updated to work with 3.6.1
-
Version 1.0.1
- Echo55
- 1.6k Downloads
Updated to SPT 3.4.1
-
Version 1.0.0
- Echo55
- 796 Downloads
Seiri
on 14.9.6 31073 working.
edit mod.ts
import { IPostDBLoadMod } from "@spt-aki/models/external/IPostDBLoadMod";
import { LogTextColor } from "@spt-aki/models/spt/logging/LogTextColor";
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
import { DependencyContainer } from "tsyringe";
class HolsterAnyGun implements IPostDBLoadMod {
modName = "HolsterAnyGun";
public postDBLoad(container: DependencyContainer): void {
const logger = container.resolve<ILogger>("WinstonLogger");
logger.logWithColor(`${this.modName} - Holster any gun enabled`, LogTextColor.CYAN)
const DB = container.resolve<DatabaseServer>("DatabaseServer").getTables();
const items = DB.templates.items;
const inventory = items["55d7217a4bdc2d86028b456d"]
const holster = inventory._props.Slots[2]
holster._props.filters[0].Filter.push("5422acb9af1c889c16000029");
}
}
module.exports = { mod: new HolsterAnyGun() }
TO
import { DependencyContainer } from "tsyringe";
import { IPostDBLoadMod } from "@spt-aki/models/external/IPostDBLoadMod";
import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
class HolsterAnyGun implements IPostDBLoadMod
{
modName = "HolsterAnyGun";
public postDBLoad(container: DependencyContainer): void
{
const logger = container.resolve<ILogger>("WinstonLogger");
logger.log(`${this.modName} - Holster any gun enabled`, "yellow");
const DB = container.resolve<DatabaseServer>("DatabaseServer").getTables();
const items = DB.templates.items;
const inventory = items["55d7217a4bdc2d86028b456d"]
const holster = inventory._props.Slots[2]
holster._props.filters[0].Filter.push("5422acb9af1c889c16000029");
}
}
module.exports = { mod: new HolsterAnyGun() }
AND mod.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const LogTextColor_1 = require("C:/snapshot/project/obj/models/spt/logging/LogTextColor");
class HolsterAnyGun {
constructor() {
this.modName = "HolsterAnyGun";
}
postDBLoad(container) {
const logger = container.resolve("WinstonLogger");
logger.logWithColor(`${this.modName} - Holster any gun enabled`, LogTextColor_1.LogTextColor.CYAN);
const DB = container.resolve("DatabaseServer").getTables();
const items = DB.templates.items;
const inventory = items["55d7217a4bdc2d86028b456d"];
const holster = inventory._props.Slots[2];
holster._props.filters[0].Filter.push("5422acb9af1c889c16000029");
}
}
module.exports = { mod: new HolsterAnyGun() };
TO
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class HolsterAnyGun {
modName = "HolsterAnyGun";
postDBLoad(container) {
const logger = container.resolve("WinstonLogger");
logger.log(`${this.modName} - Holster any gun enabled`, "yellow");
const DB = container.resolve("DatabaseServer").getTables();
const items = DB.templates.items;
const inventory = items["55d7217a4bdc2d86028b456d"];
const holster = inventory._props.Slots[2];
holster._props.filters[0].Filter.push("5422acb9af1c889c16000029");
}
}
module.exports = { mod: new HolsterAnyGun() };
//# sourceMappingURL=mod.js.map
Error is gone
zerotool
It is currently working
PPSh-41
with 3.8.0 not working. obviously
zerotool
work ))))
Sharpie_93
It works, you just have to go into the json file and change the AKI number to 3.8 and the server will load the mod properly.
colin
Just to report, we have confirmed that it works with 3.7.1👍
ZaBanOff
Наконец то. 3 пулемёта = 300 патронов. Нахрен перезарядку
NiKeh
well, i checked it works in 3.5.8 version, so I thought it would work in 3.6.1 version, and that was correct.
shit, what the hell did you made? D:
anyway, i'll enjoy with it.
BadwolfV
hope we get a updated version to 3.5.0
HubertMeyer
Still workin at 3.5.0
BadwolfV
it crashed in mine ill try again thank you for the reply
RogueTech67
I just confirmed it is working perfectly still in game version 0.13.0.3.22173 (07 Mar 2023) *** add SPT-AKI 3.5.3
JohnyBoy24
Will this work with 3.4.0 pls?
JohnyBoy24
It does.
As the author stated, it should work with any version ,unless osme big changes to gun wielding happen.
I use it on 3.4.0.
About to instal it on 3.4.1 too
crispy chicken
yay now i can put a kedr on my leg
N3r0Alpha
Added some extra to be able to put guns in my scabbard. Now I can rambo like I've always wanted!! Thanks!
Faerun
link or code screenshot pls
N3r0Alpha
Absolutely! Open the mod.ts with something like VSCodium.
1. UNDER const holster = inventory._props.Slots[2]...
ADD const scabbard = inventory._props.Slots[3]
Should look like this...
const holster = inventory._props.Slots[2]
const scabbard = inventory._props.Slots[3]
2. UNDER holster._props.filters[0].Filter.push("5422acb9af1c889c16000029");
ADD scabbard._props.filters[0].Filter.push("5422acb9af1c889c16000029");
Should look like this...
holster._props.filters[0].Filter.push("5422acb9af1c889c16000029");
scabbard._props.filters[0].Filter.push("5422acb9af1c889c16000029");
Simple addition using our savior Echo's code as a template. Works like a charm. Have fun!
Faerun
you too are a savior. i see now with the way you broke it down, that the "holster." code is a variable/stand-in for a certain slot and not the actual code/name needed to make the tweaks. thank you so much, this stuff is hard for me to piece on my own. the scabbard is called a sheath in game 🖤
Jhon Doe
thank you so much for this i always wanted that part of Traps AIO that let you put smg's in the 1 slot
now with this i can thank
Faerun
me cosplaying as lvl 100 mafia scav boss with three ARs on my person. maybe now i can stand a chance against the AI snipers pinning me inside a fucking house
CozyRat
Finally I can whip out a KS-23 and quick draw Tagilla faster than Marty Robbins himself