GangV
Not enough ratings
GangV Modding Guide
By Frodo Swaggins and 2 collaborators
This guide will help any one desiring to mod GangV.
   
Award
Favorite
Favorited
Unfavorite
Introduction
Welcome to the GangV's Modding guide !

Here you will get all the information you need to create your own content for GangV !
Knowing how to program is optional !

The modding system uses Unity (Game Engine) to provide all the tools you need to create easily your mods. We recommend to follow the official Unity Tutorial[learn.unity.com] to get familiar with it before starting modding.
Requirements
To start modding GangV, all you need is Unity installed with the exact same version as GangV.

As of 22th July 2022, it is 2021.3.5f1.

If you build mods with a different version it won't work.
Getting started
To start modding, there's two options available :
  • Use one of our templates
  • Creating a new Unity project from scratch

Using a template
In GangV's installation folder, there is a zip file containing a few Unity projects ready to use and export if you want to try. You can easily access this folder like this :



You can open it and see how modding content is made. You're completely free to use and edit it as you wish.
You can mouse-over the fields in the scripts attached to modded content to reveal a tooltip explaining what it does and how to configure it.

Creating a new project
If you already made mods, you may want to create a clean Unity project. To do so, simply create an empty project and import GangV Mod Tools.unitypackage file also found in GangV's installation folder.
Scripting API
The modding system uses the same language as Unity : C#.

Restrictions
There's a few restrictions for security purposes, doing so will prevent your mod to be exported or loaded. You can't use System.IO and System.Reflection in your scripts.
Exporting your mod
Once your mod is ready for the testing phase you'll need to export it.
To do so, go in Tool > ModTool > Export Mod



It will open a small window :



  • Mod Name Used to name the folder containing your mod
  • Author Informative only, your Steam ID will be used when uploading the mod onto the Workshop
  • Version Informative only
  • Description Informative only, description can be edited in Workshop

  • Platforms Use window only
  • Content Indicates what should be exported.
  • Log level How much detail the log will contain
  • Output directory Destination of your mod

About content dropdown list
Make sure to tick every option your mod need to work.

Avoid to mix different types of mod. If you want to create a new gun and add something new to the map, it's better to create two separate mod for them. Like this if someone is only interested in the weapon, he won't have his map modified. It's not mandatory, you're free to mod the way you want to.
Testing your mod
Mods folder
Once your mod is successfully exported, you can test it before uploading it in the Workshop. Simply put it in the Mods folder present in GangV's installation folder.
By default it should be in C:\Program Files (x86)\Steam\steamapps\common\GangV

Testing your mod in game
From the game, click on the Mods tab in the main menu.

Click on Test mod then Test Local Mod, it will create a private match where you can test your mods.

You don't need to restart the game every time you edit your mod, you can simply clic on Test local mod once more. Mods are dynamically found and loaded.
Uploading your mod
Not yet available.
Debug commands
To help you build your mods, here's a list of chat commands you can use.
Commands are not case sensitive.

Player
/repair
Fully repair you car, heal yourself and set your armor to 100.
/run [float:speed]
Set you running speed.
/jump [float:force]
Set you jumping force.
/tp [float:xCoordinate] [float:yCoordinate] [float:zCoordinate]
Teleport your character to the desired coordinates.
/godmode
Make you nearly unkillable.

Vehicles
/vroom
Spawn a Veterane and put you in it.
/car [int:id] [bool]
Spawn the car corresponding to this id and put you in it if bool is set to true.
/car [string:name] [bool]
Spawn the car corresponding to this name and put you in it if bool is set to true.

Weapons
/gun
Give you a M4 with a lot of ammos
/weapon[int:id] [int:scopeId(optional)]
Give you the weapon corresponding to this id and attach a scope. With lots of ammos.
/weapon[string:name] [string:scopeName(optional)]
Spawn the car corresponding to this name and put you in it if bool is set to true. With lots of ammos.
Note that you can name for weapon and id for scope at the same time and vice-versa.

Police
/police [int:level]
Set your wanted level.
/nopolice
Prevent you from getting wanted level when committing crimes.

General debug
/getposition
This command will write your current position and rotation in the chat.
/mod
Load your mods and give you the last added weapon.

Weapon debug
/showhits [bool:on/off]
Enable / disable debug bullet impacts
/showhits [float:duration]
Defines how long debug bullet impacts will be displayed
/showbulletsrays [bool:on/off]
Enable / disable debug bullet rays
/showbulletsrays [float:duration/off]
Defines how long debug bullet rays will be displayed







Contact
You can join our Discord Server[discord.gg] to find more about mods, get help or suggest features!
Don't hesitate to comment if the guide is unclear or not up to date.
5 Comments
HuRRiK41N 28 Dec, 2022 @ 5:13pm 
== this game is the nicest :)
Baconshaker 25 Oct, 2021 @ 10:40pm 
someone better Mod an open world story mode and co-op/multiplayer
MCPVR 26 Aug, 2021 @ 11:37am 
someone please make an rp mode
John Lunny 22 Aug, 2021 @ 7:40am 
7ayz5
FOOD STAMP PHONE 20 Aug, 2021 @ 11:30pm 
this is cool