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

Error config/vehicles.json


Go to solution Solved by Conway,
Reason for Locking
Solved

By Conway, on 01/02/21 11:42 PM.

Question

I was attempting to add the ability for the add on vehicles to have spike strips, I thought I did it correctly but now I am getting the error in the console that says error config/vehicles.json

 

I am unsure what I did wrong with this. This is how it looks:

 

{
    "police": [
        {
            "name": "Police",
            "vehicle": "police",
            "isAvailableForEveryone": true
                                                      "isSpikeStripAvailable": true
        },
                                    {
            "name": "fhpchgr",
            "vehicle": "police",
            "isAvailableForEveryone": true
                                                      "isSpikeStripAvailable": true
        },
                                    {
            "name": "HP3",
            "vehicle": "police",
            "isAvailableForEveryone": true
                                                      "isSpikeStripAvailable": true
        },
                                    {
            "name": "fpiu2",
            "vehicle": "police",
            "isAvailableForEveryone": true
                                                      "isSpikeStripAvailable": true
        },
                                    {
            "name": "hoe",
            "vehicle": "police",
            "isAvailableForEveryone": true
                                                      "isSpikeStripAvailable": true
        },
                                    {
            "name": "tau",
            "vehicle": "police",
            "isAvailableForEveryone": true
                                                      "isSpikeStripAvailable": true
        },
                                    {
            "name": "18charger",
            "vehicle": "police",
            "isAvailableForEveryone": true
                                                      "isSpikeStripAvailable": true
        },
                                    {
            "name": "FHP1",
            "vehicle": "police",
            "isAvailableForEveryone": true
                                                      "isSpikeStripAvailable": true
        },
                                    {
            "name": "ssexplorer",
            "vehicle": "police",
            "isAvailableForEveryone": true
                                                      "isSpikeStripAvailable": true
        },
                                    {
            "name": "chargnforce",
            "vehicle": "police",
            "isAvailableForEveryone": true
                                                      "isSpikeStripAvailable": true
        },
                                    {
            "name": "20tahoe",
            "vehicle": "police",
            "isAvailableForEveryone": true
                                                      "isSpikeStripAvailable": true
        },
                                    {
            "name": "2018taurusrb",
            "vehicle": "police",
            "isAvailableForEveryone": true
                                                      "isSpikeStripAvailable": true
        },
                                    {
            "name": "NSCharg",
            "vehicle": "police",
            "isAvailableForEveryone": true
                                                      "isSpikeStripAvailable": 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"]
}

Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0
5 minutes ago, TheCipher01 said:

Run your vehicles.json through https://jsonformatter.org This will make sure your file is formatted correctly.

I am not understanding how I am supposed to fix it though... With that website... This si what it says:

 

Parse error on line 6:
...                    "isSpikeStripAvailab...
-----------------------^
Expecting 'EOF', '}', ',', ']', got 'STRING'

Edited by Lawenforcementjoker
Link to post
Share on other sites
  • 0
4 minutes ago, TheCipher01 said:

It will tell you if you have an error in your json formatting and where the error is.

I was able to fix that but now in the console I am getting:

"SCRIPT ERROR in reference call: System.NullReferenceException: Object reference not set to an insrance of an object.

>void luHgxGT56 (@fivepd/FivePD_client.net.dll)

 

Link to post
Share on other sites
  • 0

content_locked.png

This content has been locked by the Community Team. If you feel this was a mistake, please report this reply with a valid reason.

 

ConwayGPMSign.png.8a9a61b7cedbc03f7d754c44caebceec.png.aaf727522d2fdc595cec8148ec873e57.png

Community Team and Administrative Support

gpm_animated.gif

 

Link to post
Share on other sites
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

Important Information

Please view the site: Terms of Use, Privacy Policy, and Guidelines. // IMPORTANT: We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.