ConsoleWeapons - Console commands to equip weapons and attachments

Description

Equip weapons and their attachments through console commands. All weapons that get loaded can be equipped. Any weapons in singleplayer or coop bundles that are loaded will also be available.

Usage

This mod registers 3 console commands:

consoleweapons.equip <weapon/gadget> [weaponSlot] [attachment] [attachment]...

Equip a weapon/gadget in a weaponSlot (0 - 9) with attachments. Defaults to current slot.

consoleweapons.list [weapons|gadgets]

List all available weapons, gadgets or everything.

consoleweapons.listAttachments <weapon>

List available attachments for a weapon.

Download

The latest version can be found here:

ConsoleWeapons.zip (4.6 KB)

You can also find it on Github:

7 Likes

I seem to be having some trouble spawning weapons with the attachments I want. The M4A1 for example will spawn with empty rails. But this gives me a usage error:
consoleweapons.equip M4A1 [1] [eotech]
What am I doing wrong?

Can you add a Machete knife? Utilized by Dimitri Mayakovsky in Singleplayer :smiley: (google translate)

You can use the machete if you run this mod also: SPBundles.zip (3.9 KB)

You need to open the mod script and edit the values for the machete. They are written as a comment in the same script. I can’t edit it now because I am on my phone

Thank you for your reply, look forward to your modification XD

can i equip a default M9 knife?

hi! can i spawn Sp vehiclels from your script? Like Osprey or Police Car? And how i can get it? plz help