• DarkRP Custom Drug Dealer Question
    5 replies, posted
I have recently made a GMod DarkRP server and would like to install a drug dealer into the system, I have made the job and the job code is TEAM_DRUG, but all I need now is to know how to make my drugs (I'm using a meth system) only for the drug dealer, meaning only the drug dealer can buy the items. :)
[CODE]AddEntity("Microwave(NAME OF ITEM IN SHOP)", "microwave(ENTITY NAME)", "models/props/cs_office/microwave.mdl(MODEL)", 400, 1, "/buyPUTWHATEVERHERE", TEAM_DRUG)[/CODE] And by the way, Welcome to Facepunch!
You should have added a darkrpmodification-master into your addons, and in that, go to lua/darkrp_customthings. Then open shipments.lua and use this format: [CODE] DarkRP.createShipment("SHIPMENT NAME", { model = "MODEL", -- The model of the item that hovers above the shipment entity = "ENT NAME", -- the entity that comes out of the shipment price = ###, -- the price of one shipment amount = ###, -- how many of the item go in one purchased shipment separate = false, -- whether the item is sold separately (usually used for guns) pricesep = ####, -- the price of a separately sold item noship = false, -- whether this item has a shipment allowed = {TEAM_DRUG}, -- OPTIONAL, which teams are allowed to buy this shipment/separate gun }) [/CODE] Darkrp modification master [URL="https://github.com/FPtje/darkrpmodification"]https://github.com/FPtje/darkrpmodification[/URL]
That works for the drugs mod, but i'm using a meth system. So I want to make it only for TEAM_DRUG here is the code for the stove. [QUOTE]AddEntity("Stove", { ent = "meth_stove", model = "models/props_c17/furnitureStove001a.mdl", price = 1750, max = 4, cmd = "buyamethstove", }) [/QUOTE] [editline]1st November 2014[/editline] Also how do I make it so the code is in that black box?
add this [CODE]allowed = {TEAM_DEALER}--or whatever the job name is[/CODE]
Thank you soooo much Bazoogle, and everyone else who tried to help.
Sorry, you need to Log In to post a reply to this thread.