Skip to content

Purchaseable Vehicles

If you have a faction already created, you have to edit the database to add new vehicles.

Here's how to do that.

Step 1.

Open MongoDB Compass

Connect to the Database

Go to the Factions Collection

Step 2.

Select a Faction

Expand Settings

Step 3.

Create an Array in Settings

Click the + to add a new field. It's next to settings.

Step 4.

Name the new field key vehicles.

Change the type to Array.

Step 5.

Append a new object to the vehicles array.

It should contain a model and a price.

Add as many of these as you want.

TIP

Remember to hit update and restart your server when done.

Created by Stuyk | Est. 2020