• Help with DarkRP
    2 replies, posted
Hi, I have a server running dark rp, and I want to add a drugdealer class, that can buy drug shipments and stuff, how would i the class? I want him to be the guerilla model from css also. So if anyone could help me by telling me what to put into the shared lua file, that would be great. Thank you. I'm using [url]http://www.garrysmod.org/downloads/?a=view&id=62093[/url] that drug mod
In Addentitys.lua (or wherever you add shipments): [code]-- Drugz AddCustomShipment("Bottle of Aspirin", "models/jaanus/aspbtl.mdl", "durgz_aspirin", 30, 1, true, 30, true, {TEAM_DRUGZ, TEAM_MEDIC}) AddCustomShipment("Aspirin", "models/jaanus/aspbtl.mdl", "durgz_aspirin", 300, 12, false, 300, false, {TEAM_DRUGZ, TEAM_MEDIC}) AddCustomShipment("Can of Beer", "models/drug_mod/alcohol_can.mdl", "durgz_alcohol", 50, 1, true, 50, true, {TEAM_DRUGZ, TEAM_BAR}) AddCustomShipment("Beer", "models/drug_mod/alcohol_can.mdl", "durgz_alcohol", 500, 12, false, 500, false, {TEAM_DRUGZ, TEAM_BAR}) AddCustomShipment("Bag of Weed", "models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl", "durgz_weed", 200, 1, true, 200, true, {TEAM_DRUGZ}) AddCustomShipment("Weed", "models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl", "durgz_weed", 2000, 12, false, 2000, false, {TEAM_DRUGZ}) AddCustomShipment("Cigarette", "models/boxopencigshib.mdl", "durgz_cigarette", 30, 1, true, 30, true, {TEAM_DRUGZ}) AddCustomShipment("Cigarettes", "models/boxopencigshib.mdl", "durgz_cigarette", 300, 12, false, 300, false, {TEAM_DRUGZ}) AddCustomShipment("Cocaine", "models/cocn.mdl", "durgz_cocaine", 300, 1, true, 300, true, {TEAM_DRUGZ}) AddCustomShipment("Cocaine", "models/cocn.mdl", "durgz_cocaine", 3000, 12, false, 3000, false, {TEAM_DRUGZ}) AddCustomShipment("Heroine", "models/katharsmodels/syringe_out/syringe_out.mdl", "durgz_heroine", 100, 1, true, 100, true, {TEAM_DRUGZ}) AddCustomShipment("Heroine", "models/katharsmodels/syringe_out/syringe_out.mdl", "durgz_heroine", 1000, 12, false, 1000, false, {TEAM_DRUGZ}) AddCustomShipment("LSD strip", "models/smile/smile.mdl", "durgz_lsd", 250, 1, true, 250, true, {TEAM_DRUGZ}) AddCustomShipment("LSD", "models/smile/smile.mdl", "durgz_lsd", 2500, 12, false, 2500, false, {TEAM_DRUGZ}) AddCustomShipment("Some Shrooms", "models/ipha/mushroom_small.mdl", "durgz_mushroom", 240, 1, true, 240, true, {TEAM_DRUGZ}) AddCustomShipment("Shrooms", "models/ipha/mushroom_small.mdl", "durgz_mushroom", 2400, 12, false, 2400, false, {TEAM_DRUGZ}) AddCustomShipment("Water", "models/drug_mod/the_bottle_of_water.mdl", "durgz_water", 30, 1, true, 30, true, {TEAM_DRUGZ, TEAM_COOK}) AddCustomShipment("Water", "models/drug_mod/the_bottle_of_water.mdl", "durgz_water", 300, 12, false, 30, false, {TEAM_DRUGZ, TEAM_COOK}) [/code] In shared: [code]TEAM_DRUGZ = AddExtraTeam("Drug Dealer", Color(75, 75, 75, 255), "THE CSS PLAYER MODEL HERE", [[Sell Illegal Drugs but dont get caught! (use /bugdruglab or /buyshipment [drug]) Drugs: Beer, Aspirin, Cigarettes, Cocaine, Heroine, Lsd, Mushrooms, and Weed ]], {}, "subdealer", 2, 45, 0, false)[/code] (Don't forget to set the player model)
Thank you very much
Sorry, you need to Log In to post a reply to this thread.