Skip to content
This repository was archived by the owner on Jul 14, 2021. It is now read-only.

How to convert maps to use other weapon packs

Alig96 edited this page Apr 16, 2014 · 1 revision

Step 1) Find your config text file

Navigate to your garrysmod folder. From there go into: garrysmod/data/nz/ and open the one you want to convert.

Step 2) Copy & Paste into the JSON editor

Press CTRL + A to select the whole text file, and while its highlighted copy it.

Go to this website (or any other JSON editor)

Then delete everything in the left hand column, and paste what you copied from the text file.

Step 3) Modification

On the right hand side you will see some dropdown icons. Feel free to edit any other information, but we'll edit just the wall guns.

Click on the wallbuys dropdown, and you will see incrementing numbers. Open number 1, and you will see 4 fields.

Example:

angle : {0.0938 538.8438 0} pos : [2203.9688 -532.6563 -205.9688] price : 1200 wep : weapon_sim_trenchgun

Change the price to whatever you like, and change the wep to the weapon you want to replace it with. E.g fas2_ak47

Once you finished modifying it click save file to disk.

Step 4) Replace the old config with the modified config

When you've saved/downloaded the new config, you will notice its now a .json file. Open this json file in a text editor and copy everything (CTRL+A then CTRL+C) and then paste it into the old config, replacing the old config.

Step 5) Reload the config & Verify

Reload the config by reloading the map.

Congratulations, you successfully converted / modified your config.