What’s the name of the file that I can edit so I can add entites to certain jobs. For example, how can I make a car dealer dealer cars using f4 and going to entities/weapons, and there will be car models that he can spawn?
Jobs are inside of Shared.lua
[lua] }, “<chat command to become this class (WITHOUT THE “/” OR “VOTE”!)>”, <maximum amount of this team>, <the salary he gets>, 0/1/2 = public /admin only / superadmin only, <1/0/true/false Do you have to vote to become it>, true/false DOES THIS TEAM HAVE A GUN LICENSE?, TEAM: Which team you need to be to become this team) [/lua] http://wiki.garrysmod.com/?title=DarkRP:Jobs
To add vehicles its : [lua]AddCustomVehicle(<One of the vehicles from the rp_getvehicles list>, <Model of the vehicle>, <Price of the vehicle>, <OPTIONAL jobs that can buy the vehicle>)
To add custom shipments its :[lua]
AddCustomShipment("<Name of the shipment(no spaces)>"," <the model that the shipment spawns(should be the world model.[/lua] http://wiki.garrysmod.com/?title=DarkRP:Shipments
Thanks for all the help! But I got one more question. How do you make it so they only sell singles. For example: The drug dealer can sell single drugs instead of in shipments.
[lua]AddCustomShipment("<Name of the shipment(no spaces)>"," <the model that the shipment spawns(should be the world model…)>", “<the classname of the weapon>”, <the price of one shipment>, <how many guns there are in one shipment>, <OPTIONAL: true/false sold seperately>, <OPTIONAL: price when sold seperately>, < true/false OPTIONAL: /buy only = true> , OPTIONAL which classes can buy the shipment, OPTIONAL: the model of the shipment)[/lua] I cut out some of the code by accident basically set the first to true and set the price when sold separately.