We will be generating a Glock shipment for this guide.
Note: To add custom shipments to your DarkRP server, you must have DarkRP installed as well as darkrpmodification which can be found here.
Base Configuration
The Base Configuration is everything required to create the actual shipment.
The Name input is the display name of the Shipment and will be seen in the F4 menu and on the shipment itself.
Entity Class Name is the entity attached to the shipment; make sure this is a weapon that is spawnable in the [Q] menu.
The Model is the model that will float above the shipment and be used in the F4 menu. You can help find models for different weapons by searching in the props area for the weapon name and selecting one of your likings!
Finally, the Category setting is the most intuitive. A category in the F4 menu will have the shipment under.
Economy Configuration
The Economy Configuration is one of the most important settings when generating a shipment.
To begin with, the Type is one of 3 options that will generate the shipment, the first option is Shipment (which generates a shipment), the second being Single (which generates a single weapon), and the last one being Both (which generates both a shipment and single). For example purposes, we will generate both!
Secondly, the Shipment Price is the shipment price for the job that can buy it. Shipments contain multiple guns!
The following prompt is Shipment Single Price, the total price of buying one single weapon.
Finally, the Amount is the number of weapons that come in the shipment.
Team Configuration
The team configuration contains one option, Allowed, which is the teams that can buy the shipment and weapons. Use the TEAM_ID here!
Custom Check Configuration
While Custom Checks are NOT necessary to make a shipment, they are helpful for donator perks. Leave it unchecked unless you choose to use it!
Our first setting is Visibility, which toggles whether or not players who don't have access to the can see it in the F4 menu.
The Custom Check Method contains 3 options. The first is Jobs, which restricts access to players playing a different job. The next is Groups, limiting jobs to certain ranks within an admin system. Finally, SteamIDs is the last option that allows shipments to be restricted to certain players, valid for custom shipments that only one or 2 people should have access to.
The final option is CustcomCheckFailMsg, which is the failure message if someone who doesn't have the proper permissions tries to buy a shipment.
Generating the Shipment
Generating the shipment is super easy. Once you have everything configured to your liking, click Generate Code. Once your shipment has been generated, you can click the Copy Code button to quickly get it on your clipboard.
Finishing it Up
After pressing the Copy Code button above to quickly copy the shipment to your clipboard
Navigate to the shipments.lua file, which can be found in the darkrpmodification folder. The directory for this from the folder is addons/darkrpmodification-master/Lua/darkrp_customthings/shipments.lua.
Paste the code into the file and save it! Rinse and repeat this process for every custom shipment you need to make!
You're done. Now go enjoy the new custom shipments and let your economy thrive!