I’m trying to add a couple of guns (single-shot vehicle-mounted railguns) to one of my mods, but when it comes to the magazines, I’m getting this error, “Expected json array” on the item_restriction part.
“pocket_data”: [
{
“pocket_type”: “MAGAZINE”,
“item_restriction”: { “rebar_bolt”: 1 }
}
]
(note, it has a bunch of ammo types but I reduced it to 1 while fixing this error.)
As far as I can tell, it has one. I can’t see any syntax/punctuation errors, and the format is the same as
“pocket_data”: [
{
“pocket_type”: “MAGAZINE”,
“ammo_restriction”: { “454”: 5, “410shot”: 5, “45colt”: 5 },
“allowed_speedloaders”: [ “454_speedloader5” ]
}
]
and
“pocket_data”: [ { “pocket_type”: “MAGAZINE”, “rigid”: true, “ammo_restriction”: { “50”: 1 } } ]
both from the base game, which aren’t producing any errors.