Jump to content
×
×
  • Create New...
  • 0

Vehicles.json error


MON5T3R
 Share

Reason for Locking
Answered

By TheCipher01, on 08/20/21 05:37 PM.

Question

7 answers to this question

Recommended Posts

  • 0
  • Community Administrator

You have multiple errors in your formatting at the end. It should look like this

 

Spoiler
{
	"police": [
		{
			"name": "Police",
			"vehicle": "police",
			"isAvailableForEveryone": true
		},
		{
			"name": "Police 2",
			"vehicle": "police2",
			"isAvailableForEveryone": false,
			"useRanks": true,
			"availableForRanks": ["Officer I", "Officer II"],
			"availableForDepartments": []
		},
		{
			"name": "Police 3",
			"vehicle": "police3",
			"isAvailableForEveryone": false,
			"useRanks": false,
			"availableForRanks": ["Detective I", "Detective II"],
			"availableForDepartments": [18]
		},
		{
			"name": "Police 4",
			"vehicle": "police4",
			"isAvailableForEveryone": false,
			"useRanks": false,
			"availableForDepartments": [19]
		},
		{
			"name": "sheriff2",
			"vehicle": "sheriff2",
			"isAvailableForEveryone": true
		}
	],
	"ambulance": ["ambulance"],
	"airAmbulance": ["polmav"],
	"firedept": ["firetruk"],
	"coroner": ["speedo", "utillitruck3"],
	"towtruck": ["flatbed"],
	"mechanic": ["utillitruck3"],
	"prisontransport": ["police"],
	"animalControl": ["bison"],
	"taxi": ["taxi"]
}

 

 

You can't change what's in the first set of quotes so "ambulance": has to be exactly that. You can change what's in the quotes in the brackets as long as you keep the brackets.

"ambulance": ["newAmbulance"],

Cipher2.png

 

Community Administrator

Link to post
Share on other sites

  • 0

share the whole file? but I am guessing you've removed:

```

"ambulance": ["ambulance"],

```

you need that so the ambulance service knows what vehicles it can dispatch

vehicles for the AI services are defined differently than for Police, refer to the PDFs 

  • Like 1
Link to post
Share on other sites

  • 0

 

{
    "police": [
        {
            "name": "Police Interceptor",
            "vehicle": "police3"
        },
        {
            "name": "Police Cruiser",
            "vehicle": "police"
        },
        {
            "name": "Police Cruiser (Unmarked)",
            "vehicle": "police4"
        },
        {
            "name": "Police Buffalo",
            "vehicle": "police2"
        },
        {
            "name": "Police Bike",
            "vehicle": "policeb"
        },
        {
            "name": "Police Transport",
            "vehicle": "policet"
        },
        {
            "name": "Riot Van",
            "vehicle": "riot"
        },
        {
            "name": "Riot RCV",
            "vehicle": "riot2"
        },
        {
            "name": "FIB Buffalo (Unmarked)",
            "vehicle": "fbi"
        },
        {
            "name": "FIB Granger (Unmarked)",
            "vehicle": "fbi2"
        },
        {
            "name": "Sheriff Cruiser",
            "vehicle": "sheriff"
        },
        {
            "name": "Sheriff Granger",
            "vehicle": "sheriff2"
        },
        {
            "name": "Park Ranger",
            "vehicle": "pranger"
        },
        {
            "name": "Prison Bus",
            "vehicle": "pbus"
        },
        {
            "name": "Police Maverick (Helicopter)",
            "vehicle": "polmav"
        },
        {
            "name": "Ambulance",
            "vehicle": "ambulance"
        },
        {
            "name": "Firetruck",
            "vehicle": "firetruk"
        },
        {
            "name": "FPIU (2016)",
            "vehicle": "dps1"
        },
        {
            "name": "Tahoe (2015)",
            "vehicle": "dps2"
        },
        {
            "name": "CVPI (20xx)",
            "vehicle": "dps3"
        },
        {
            "name": "Tahoe (2013)",
            "vehicle": "dps4"
        },
        {
            "name": "FPIU (2013)",
            "vehicle": "dps5"
        },
        {
            "name": "FPIU Unmarked (2016)",
            "vehicle": "udps1"
        },
        {
            "name": "Tahoe Unmarked (2015)",
            "vehicle": "udps2"
        },
        {
            "name": "CVPI Slicktop (20xx)",
            "vehicle": "udps3"
        },
        {
            "name": "CVPI Unmarked (20xx)",
            "vehicle": "u2dps3"
        },
        {
            "name": "Tahoe Unmarked (2015)",
            "vehicle": "udps4"
        },
        {
            "name": "FPIU Unmarked (2013)",
            "vehicle": "udps5"
        }
    ],
    "ems": "ambulance",
    "firedept": "firetruk",
    "coroner": "speedo",
    "towtruck": "flatbed",
    "prisontransport": "policet"
}

Edited by MON5T3R
Link to post
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Important Information

Thanks for visiting GPM. As a user of the GTAPoliceMods platform, we ask that you review the Terms of Use, Privacy Policy, and Guidelines. These principles allow us to continue fostering a great community. We have placed cookies on your device to help improve your experience. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.