Salut ,je voudrais que quelqu un me montre comment creer le fabricant de weed et de meth svp
Maamsou.93
Geek suprême
Messages
347
Score réaction
17
Points
115
il faut deja que tu est l'addons puis voila les codes a mettre dans jobs.lua
TEAM_FABRICANTWEED = DarkRP.createJob("Fabricant de weed", { color = Color(0, 87, 18, 255), model = {"models/player/hostage/hostage_03.mdl"}, description = [[Vous pouvez vendre de la drogue mais seulement dans votre boutique.]], weapons = {"weapon_physgun", "weapon_physcannon", "keys", "pocket", "gmod_tool", "weapon_fists", "gmod_camera", "weapon_arc_atmcard"}, command = "fabricantweed", max = 2, salary = 0, admin = 0, vote = false, hasLicense = false, candemote = true, PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) if killer:IsPlayer() then DarkRP.notifyAll(0, 4, "Un fabricant de weed a été tué et est rétrogradé à cet effet.") else DarkRP.notifyAll(0, 4, "Un fabricant de weed est mort et est rétrogradé à cet effet.") end end })
a mettre dans entities.lua
DarkRP.createEntity( "Battery", { ent = "adrug_battery", model = "models/items/car_battery01.mdl", price = 600, max = 10, cmd = "battery", allowed = {TEAM_FABRICANTWEED}, }) DarkRP.createEntity( "Fuel", { ent = "adrug_fuel", model = "models/props_junk/gascan001a.mdl", price = 250, max = 8, cmd = "fuel", allowed = {TEAM_FABRICANTWEED}, }) DarkRP.createEntity( "Generator", { ent = "adrug_generator", model = "models/props_vehicles/generatortrailer01.mdl", price = 1000, max = 5, cmd = "generator", allowed = {TEAM_FABRICANTWEED}, }) DarkRP.createEntity( "Lampe", { ent = "adrug_heat_lamp", model = "models/props_c17/light_floodlight02_off.mdl", price = 300, max = 12, cmd = "lampe", allowed = {TEAM_FABRICANTWEED}, }) DarkRP.createEntity( "Water", { ent = "adrug_water", model = "models/props_junk/garbage_plasticbottle003a.mdl", price = 75, max = 15, cmd = "waterweed", allowed = {TEAM_FABRICANTWEED}, }) DarkRP.createEntity( "Weed Pot", { ent = "adrug_weed_plant", model = "models/props_junk/terracotta01.mdl", price = 100, max = 15, cmd ="weedpot", allowed = {TEAM_FABRICANTWEED}, }) DarkRP.createEntity( "Graine", { ent = "adrug_weed_seed", model = "models/props/de_inferno/crate_fruit_break_gib2.mdl", price = 70, max = 15, cmd = "Graine", allowed = {TEAM_FABRICANTWEED}, })
Maamsou.93
Geek suprême
Messages
347
Score réaction
17
Points
115
A mettre dans entities.lua
DarkRP.createEntity( "Iodine", { ent = "eml_iodine", model = "models/props_lab/jar01b.mdl", price = 250, max = 15, cmd = "iodine", allowed = {TEAM_FABRICANTMETH}, }) DarkRP.createEntity( "Jar", { ent = "eml_jar", model = "models/props_lab/jar01a.mdl", price = 500, max = 5, cmd = "jar", allowed = {TEAM_FABRICANTMETH}, }) DarkRP.createEntity( "Muriatic Acid", { ent = "eml_macid", model = "models/props_junk/garbage_plasticbottle001a.mdl", price = 500, max = 15, cmd = "muriaticacid", allowed = {TEAM_FABRICANTMETH}, }) DarkRP.createEntity( "Pot", { ent = "eml_pot", model = "models/props_c17/metalPot001a.mdl", price = 200, max = 5, cmd = "pot", allowed = {TEAM_FABRICANTMETH}, }) DarkRP.createEntity( "Pot Special", { ent = "eml_spot", model = "models/props_c17/metalPot001a.mdl", price = 300, max = 5, cmd = "potspecial", allowed = {TEAM_FABRICANTMETH}, }) DarkRP.createEntity( "Plaque de cuisson", { ent = "eml_stove", model = "models/props_c17/furnitureStove001a.mdl", price = 3000, max = 10, cmd = "plaquedecuisson", allowed = {TEAM_FABRICANTMETH}, }) DarkRP.createEntity( "Sulfur", { ent = "eml_sulfur", model = "models/props_lab/jar01b.mdl", price = 250, max = 15, cmd = "sulfur", allowed = {TEAM_FABRICANTMETH}, }) DarkRP.createEntity( "Water", { ent = "eml_water", model = "models/props_junk/garbage_plasticbottle003a.mdl", price = 75, max = 15, cmd = "water", allowed = {TEAM_FABRICANTMETH}, })
a mettre dans jobs.lua
TEAM_FABRICANTMETH = DarkRP.createJob("[VIP] Fabricant de meth", { color = Color(255, 127, 127, 255), model = {"models/player/hostage/hostage_04.mdl"}, description = [[Vous pouvez vendre de la drogue mais seulement dans votre boutique.]], weapons = {"weapon_physgun", "weapon_physcannon", "keys", "pocket", "gmod_tool", "weapon_fists", "gmod_camera", "weapon_arc_atmcard"}, command = "fabricantmeth", max = 2, salary = 0, admin = 0, vote = false, hasLicense = false, candemote = true, customCheck = function(ply) return CLIENT or ply:GetNWString("usergroup") == "VIP" or ply:GetNWString("usergroup") == "VIP Or" or ply:GetNWString("usergroup") == "superadmin" or ply:GetNWString("usergroup") == "admin" or ply:GetNWString("usergroup") == "helper" end, CustomCheckFailMsg = "Le job est réservé aux joueurs VIP.", PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) if killer:IsPlayer() then DarkRP.notifyAll(0, 4, "Un fabricant de meth a été tué et est rétrogradé à cet effet.") else DarkRP.notifyAll(0, 4, "Un fabricant de meth est mort et est rétrogradé à cet effet.") end end })
Initiateur de la discussion
spooky123
Bambi
Messages
27
Score réaction
0
Points
40
Merci a toi tu peux m envoyer les addons stp ?
Maamsou.93
Geek suprême
Messages
347
Score réaction
17
Points
115
Vien PV
Initiateur de la discussion
spooky123
Bambi
Messages
27
Score réaction
0
Points
40
C est bon j ai fais une conv
xLomble77
Psychopathe
Messages
2 191
Score réaction
348
Points
290
Bonsoir,
Si toute est fais veuillez passer le sujet en résolu.