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?
DarkRP/gamemode/addentities.lua?
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] [url]http://wiki.garrysmod.com/?title=DarkRP:Jobs[/url]
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>)
[url]http://wiki.garrysmod.com/?title=DarkRP:Vehicles[/url]
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] [url]http://wiki.garrysmod.com/?title=DarkRP:Shipments[/url]
[QUOTE=brandonj4;34031035]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] [url]http://wiki.garrysmod.com/?title=DarkRP:Jobs[/url]
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>)
[url]http://wiki.garrysmod.com/?title=DarkRP:Vehicles[/url]
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] [url]http://wiki.garrysmod.com/?title=DarkRP:Shipments[/url][/QUOTE]
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.
[QUOTE=hellsgate700;34039122]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.[/QUOTE]
[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.
Sorry, you need to Log In to post a reply to this thread.