This plugin was EXTREMELY DIFFICULT to make, and I couldn't do it alone. A HUGE thanks for the assistance to @Grandpa Rexand @Natixco
My Discord: https://discord.gg/GmNua4ZY9K
Open Source: https://github.com/gggdunlix/FivePD-Set-Extras-in-Vehicles.json
HOW TO USE:
1. The DLL file must be put in your plugins folder
2. Your FivePD resource folder name must be exactly "fivepd" (without quotes)
3. Configure you vehicles.json
- It should look something like this:
-
{ "vehicle": "BCSO1", "name": "Charger (18)", "isAvailableForEveryone": false, "useRanks": false, "availableForDepartments": ["2"], "extras": [3, 5, 7, 8, 10] },
- This makes it so the vehicle "bcso1" appears in duty menu with name "Charger (18)", isn't available for anyone, doesn't use ranks, is available for only department 2, and it uses extras 3, 5, 7, 8, and 10.
- You also have the ability to set it as
-
"extras": "all"
- and
-
"extras": "none"
-
to force all/no extras enabled.
Make sure that there are no JSON errors. for example, I made sure there is a comma after"availableForDepartments": ["2"],
Examples:
{ "vehicle": "BCSO1", "name": "Charger (18)", "isAvailableForEveryone": false, "useRanks": false, "availableForDepartments": ["2"], "extras": [3, 5, 7, 8, 10] },
The BCSO1 has extras 3, 5, 7, 8, and 10 activated in **vehicles.json**. (These are lights, cameras, and roof items, etc) so they are activated by default in-game when spawned with duty menu.
{ "name": "Fire Truck", "vehicle": "firetruk", "isAvailableForEveryone": false, "useRanks": false, "availableForDepartments": ["6"], "extras": "none" },
The fire truck is set to have no extras, so the ram and it's other extras are default disabled when spawned with duty menu
{ "name": "UM Cruiser", "vehicle": "police4", "isAvailableForEveryone": false, "useRanks": false, "availableForDepartments": ["2", "5", "4"], "extras": "all" },
The Unmarked Cruiser is set to have all extras enabled, so the Push bar and spotlights are enabled by default.
Edited by GGGDunlix
Add Discord & Source
A HUGE Thanks to @Grandpa Rexand @Natixco. They have helped me with several projects by this one was by far the most difficult.
Plugin code written by @Grandpa Rex, @Natixco, and @GGGDunlix.
Plugin idea given by @Grandpa Rex.
2018 Charger used in screenshots made by @PolarHusky99.
Instructions on how to use are in the regular desciption.
You can use this in your own server without crediting me, but you can't steal this file and upload it as your own.
You can use this in your own server without crediting me, but you can't steal this file and upload it as your own.
Recommended Comments
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.