Bug Sur les codes

  • Initiateur de la discussion
M

Mataim

Geek
Messages
25
Score réaction
3
Points
75
Bonjour a tous .
Je debute actuellement dans la configuration / codage d'un serveur gmod.
Et donc j'ai fait des jobs etc.
Et quand je lance le serveur j'ai des probleme de gamemodes.
Mais je n'arrive pas a trouver d'où Vien l'erreur Pouvez-vous m'aider ? Merci D'avance
Je pense que cela vien sois des jobs , Shipment , ou même au catégorie se sont les seul fichiers dans le DarkRpModifcation que j'ai touché
Premier post pour moi je vous remercie a tous . :D

--[[---------------------------------------------------------------------------
DarkRP custom jobs
---------------------------------------------------------------------------
This file contains your custom jobs.
This file should also contain jobs from DarkRP that you edited.
Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
Once you've done that, copy and paste the job to this file and edit it.
The default jobs can be found here:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
Add jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_CITIZEN = DarkRP.createJob("Citoyen", {
color = Color(36, 229, 30, 255),
model = {
"models/bloocobalt/citizens/female_01_b.mdl",
"models/bloocobalt/citizens/female_02_b.mdl",
"models/bloocobalt/citizens/female_04.mdl",
"models/bloocobalt/citizens/female_06.mdl",
"models/bloocobalt/citizens/male_10.mdl",
"models/bloocobalt/citizens/male_07.mdl",
"models/player/slow/jknies/bloodz/slow_1.mdl",
"models/player/slow/jknies/bloodz/slow_3.mdl",
"models/bloocobalt/citizens/male_02.mdl",
"models/bloocobalt/citizens/male_01.mdl",
"models/fearless/mafia02.mdl",
"models/fearless/mafia06.mdl",
"models/fearless/mafia07.mdl",
"models/fearless/mafia09.mdl",
"models/player/slow/jknies/cripz/slow_1.mdl",
"models/player/slow/jknies/cripz/slow_3.mdl"
}
description = [[Vous été un citoyen rejoignez les malfrats ou faite parti de l'état.]],
weapons = {"weapon_arc_atmcard", "weapon_fists"},
command = "citoyen",
max = 0,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citoyen",
PlayerSpawn = function(ply)
ply:SetHealth(100)
end
})
TEAM_CGIGN = DarkRP.createJob("*VIP*Chef Du G.I.G.N", {
color = Color(43, 50, 178, 255),
model = {"weapon_arc_atmcard", "weapon_fists", "m9k_glock"},
description = [[Vous dirigez une équipe bous été présent que pour les grosses intervention .
Faites respecter l'ordre ne ville.]],
weapons = {"weapon_arc_atmcard", "weapon_fists", "m9k_famas", "m9k_m3"},
command = "cgign",
max = 1,
salary = 150,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
category = "Etat",
PlayerSpawn = function(ply)
ply:SetHealth(100)
ply:SetArmor(150)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "Le Chef Du GIGN Est Mort")
end,
customCheck = function(ply) return CLIENT or
table.HasValue({"superadmin", "admin", "ModerateurVIP", "Modo-TestVIP", "VIP"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Vous devez etre VIP.",
})
TEAM_GIGN = DarkRP.createJob("Agent du G.I.G.N", {
color = Color(43, 50, 178, 255),
model = {
"models/codmw2/codmw2h.mdl",
"models/codmw2/codmw2he.mdl",
"models/codmw2/codmw2hexe.mdl",
"models/codmw2/t_codm.mdl",
"models/codmw2/codmw2m.mdl",
"models/codmw2/t_codmw2.mdl",
},
description = [[Vous été présent que pour les grosses intervention .
Faites respecter l'ordre en ville.]],
weapons = {"weapon_arc_atmcard", "weapon_fists", "m9k_glock", "m9k_famas"},
command = "gign",
max = 4,
salary = 120,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
category = "Etat",
PlayerSpawn = function(ply)
ply:SetHealth(100)
ply:SetArmor(100)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "Un Agent Du GIGN Est Mort")
end
})
TEAM_CHIEF = DarkRP.createJob("Commisaire", {
color = Color(43, 50, 178, 255),
model = {
"models/player/uk_police/uk_police_01.mdl",
"models/player/uk_police/uk_police_02.mdl",
"models/player/uk_police/uk_police_03.mdl",
"models/player/uk_police/uk_police_04.mdl",
"models/player/uk_police/uk_police_06.mdl",
"models/player/uk_police/uk_police_05.mdl",
"models/player/uk_police/uk_police_07.mdl",
"models/player/uk_police/uk_police_08.mdl"
},
description = [[Dirigez votre équipe de policier.
Faites respecter l'ordre en ville.]],
weapons = {"weapon_arc_atmcard", "weapon_fists", "m9k_glock", "m9k_mossberg5903"},
command = "chief",
max = 1,
salary = 120,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
category = "Etat",
chief = true,
PlayerSpawn = function(ply)
ply:SetHealth(100)
ply:SetArmor(100)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "Le Commisaire Est Mort")
end
})
TEAM_POLICE = DarkRP.createJob("Policier", {
color = Color(43, 50, 178, 255),
model = {
"models/player/nypd/male_02.mdl",
"models/player/nypd/male_04.mdl",
"models/player/nypd/male_05.mdl",
"models/player/nypd/male_06.mdl",
"models/player/nypd/male_07.mdl",
"models/player/nypd/male_08.mdl",
"models/player/nypd/male_09.mdl"
},
description = [[Protégez les citoyen des malfrats.
Faites respecter l'ordre en ville.]],
weapons = {"weapon_arc_atmcard", "weapon_fists", "m9k_glock"},
command = "police",
max = 4,
salary = 100,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
category = "Etat",
PlayerSpawn = function(ply)
ply:SetHealth(100)
ply:SetArmor(70)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "Un Policier Est Mort")
end
})
TEAM_BAC = DarkRP.createJob("*VIP*Agent de la bac", {
color = Color(36, 229, 30, 255),
model = {
"models/bloocobalt/citizens/female_01_b.mdl",
"models/bloocobalt/citizens/female_02_b.mdl",
"models/bloocobalt/citizens/female_04.mdl",
"models/bloocobalt/citizens/female_06.mdl",
"models/bloocobalt/citizens/male_10.mdl",
"models/bloocobalt/citizens/male_07.mdl",
"models/player/slow/jknies/bloodz/slow_1.mdl",
"models/player/slow/jknies/bloodz/slow_3.mdl",
"models/bloocobalt/citizens/male_02.mdl",
"models/bloocobalt/citizens/male_01.mdl",
"models/fearless/mafia02.mdl",
"models/fearless/mafia06.mdl",
"models/fearless/mafia07.mdl",
"models/fearless/mafia09.mdl",
"models/player/slow/jknies/cripz/slow_1.mdl",
"models/player/slow/jknies/cripz/slow_3.mdl"
},
description = [[Vous étés de la bac , Infiltrer des gangs.]],
weapons = {"weapon_arc_atmcard", "weapon_fists", "m9k_glock"},
command = "BAC",
max = 4,
salary = 120,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
category = "Etat",
PlayerSpawn = function(ply)
ply:SetHealth(100)
ply:SetArmor(100)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "Un Agent De La Bac est Mort")
end,
customCheck = function(ply) return CLIENT or
table.HasValue({"superadmin", "admin", "ModerateurVIP", "Modo-TestVIP", "VIP"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Vous devez etre VIP.",
})
TEAM_MAYOR = DarkRP.createJob("Maire", {
color = Color(232, 19, 21, 255),
model = {"models/fearless/mayor1.mdl"},
description = [[Dirigez votre villes.
Faites respecter l'ordre en ville.
Commencez une dictature ou faite une démocratie.]],
weapons = {"weapon_arc_atmcard", "weapon_fists"},
command = "mayor",
max = 4,
salary = 200,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
category = "Etat",
mayor = true,
PlayerSpawn = function(ply)
ply:SetHealth(100)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "Le Maire Est Mort")
end
})
TEAM_MEDIC = DarkRP.createJob("Médecin", {
color = Color(36, 229, 30, 255),
model = {
"models/humans/group01/scrub2g.mdl",
"models/humans/group01/scrub1b.mdl",
"models/humans/group01/scrubfe2d.mdl",
"models/humans/group01/scrub2g.mdl",
"models/humans/group01/scrub1g.mdl",
"models/humans/group01/scrubfe1b.mdl"
},
description = [[Soignez des Gens;
Aidez Les gens pour les soigner]],
weapons = {"weapon_arc_atmcard", "weapon_fists"},
command = "Medic",
max = 3,
salary = 70,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Citoyen",
medic = true,
PlayerSpawn = function(ply)
ply:SetHealth(100)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "Un Médecin est Mort")
end
})
TEAM_BANK = DarkRP.createJob("Banquier", {
color = Color(36, 229, 30, 255),
model = {
"models/gmod/male02_master.mdl",
"models/gmod/male03_master.mdl",
"models/gmod/male04_master.mdl"
},
description = [[Vous été Un banquier occuper des printer des personne .
Et protégez la banque.]],
weapons = {"weapon_arc_atmcard", "weapon_fists"},
command = "Bank",
max = 3,
salary = 70,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Citoyen",
PlayerSpawn = function(ply)
ply:SetHealth(100)
end
})

TEAM_GUARD = DarkRP.createJob("Garde de Sécurité", {
color = Color(36, 229, 30, 255),
model = {
"models/player/guard_pack/guard_01.mdl",
"models/player/guard_pack/guard_02.mdl",
"models/player/guard_pack/guard_03.mdl",
"models/player/guard_pack/guard_04.mdl",
"models/player/guard_pack/guard_05.mdl",
"models/player/guard_pack/guard_06.mdl",
"models/player/guard_pack/guard_07.mdl",
"models/player/guard_pack/guard_08.mdl",
"models/player/guard_pack/guard_09.mdl"
},
description = [[Vous été un garde de sécurité .
Trouvez un travaille au près d'un cuisinier ou autre .]],
weapons = {"weapon_arc_atmcard", "weapon_fists", "m9k_glock"},
command = "Guard",
max = 6,
salary = 70,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Citoyen",
PlayerSpawn = function(ply)
ply:SetHealth(100)
ply:SetArmor(50)
end
})
TEAM_COOK = DarkRP.createJob("Cuisinier", {
color = Color(36, 229, 30, 255),
model = {
"models/fearless/chef1.mdl",
"models/fearless/chef2.mdl"
},
description = [[Vendez des pizza .
Faites votre Buisnnes , ainsi que du trafique de Pates.]],
weapons = {"weapon_arc_atmcard", "weapon_fists"},
command = "cook",
max = 3,
salary = 70,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Citoyen",
cook = true,
PlayerSpawn = function(ply)
ply:SetHealth(100)
end
})
TEAM_VCMOD = DarkRP.createJob("Garagiste / Dépanneur ", {
color = Color(36, 229, 30, 255),
model = {"models/odessa.mdl"},
description = [[Vous été un garagiste / Dépanneur vous aidez les gens qui
ont des problème avec leur voiture .]],
weapons = {"weapon_arc_atmcard", "weapon_fists"},
command = "Gara",
max = 2,
salary = 70,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Citoyen",
PlayerSpawn = function(ply)
ply:SetHealth(100)
end
})
TEAM_QUAIN = DarkRP.createJob("Quaincailler", {
color = Color(36, 229, 30, 255),
model = {
"models/fearless/dbsuit09.mdl",
"models/fearless/dbsuit07.mdl",
"models/fearless/dgsuit13.mdl",
"models/fearless/gsuit15.mdl"
},
description = [[Vous été un quincailler vous vendez des chose légal comme illégal.]],
weapons = {"weapon_arc_atmcard", "weapon_fists"},
command = "Quain",
max = 3,
salary = 70,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Citoyen",
PlayerSpawn = function(ply)
ply:SetHealth(100)
end
})
TEAM_GUN = DarkRP.createJob("Vendeur d'armes", {
color = Color(36, 229, 30, 255),
model = {
"models/characters/gallaha.mdl",
"models/humans/jacketntie/male_05.mdl",
"models/humans/jacketntie/male_07.mdl"
},
description = [[Vous Vendez des armes .]],
weapons = {"weapon_arc_atmcard", "weapon_fists"},
command = "GUN",
max = 3,
salary = 70,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Citoyen",
PlayerSpawn = function(ply)
ply:SetHealth(100)
end
})
TEAM_VAPE = DarkRP.createJob("*VIP* Vendeur de Cigarettes", {
color = Color(36, 229, 30, 255),
model = {"models/breen.mdl"},
description = [[Vous Vendez des Cigarettes]],
weapons = {"weapon_arc_atmcard", "weapon_fists"},
command = "Vape",
max = 2,
salary = 70,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Citoyen",
PlayerSpawn = function(ply)
ply:SetHealth(100)
end,
customCheck = function(ply) return CLIENT or
table.HasValue({"superadmin", "admin", "ModerateurVIP", "Modo-TestVIP", "VIP"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Vous devez etre VIP.",
})
TEAM_HOBO = DarkRP.createJob("SDF", {
color = Color(36, 229, 30, 255),
model = {"models/jessev92/player/l4d/m9-hunter.mdl"},
description = [[Vous Ete Sans Domicile Fix]],
weapons = {"weapon_fists", "weapon_angryhobo"},
command = "SDF",
max = 4,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citoyen",
hobo = true,
PlayerSpawn = function(ply)
ply:SetHealth(100)
end
})
--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_CITIZEN

--[[---------------------------------------------------------------------------
Define which teams belong to civil protection
Civil protection can set warrants, make people wanted and do some other police related things
---------------------------------------------------------------------------]]
GAMEMODE.CivilProtection = {
[TEAM_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
[TEAM_CGIGN] = true,
[TEAM_GIGN] = true,
[TEAM_BAC] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB)




Shipment :



DarkRP.createShipment("Colt 1911", {
model = "models/weapons/s_dmgf_co1911.mdl",
entity = "m9k_colt1911",
price = 1500,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("Colt Python", {
model = "models/weapons/w_colt_python.mdl",
entity = "m9k_coltpython",
price = 1500,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("Desert Eagle", {
model = "models/weapons/w_tcom_deagle.mdl",
entity = "m9k_deagle",
price = 2000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("Glock 18", {
model = "models/weapons/w_dmg_glock.mdl",
entity = "m9k_glock",
price = 2200,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("HK41C", {
model = "models/weapons/w_hk41c.mdl",
entity = "m9k_hk41",
price = 1100,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("P08 Luger", {
model = "models/weapons/w_luger_p08.mdl",
entity = "m9k_luger",
price = 2000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("M29 Satan", {
model = "models/weapons/w_m29_satan.mdl",
entity = "m9k_m29satan",
price = 2000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("M92 Beretta", {
model = "models/weapons/w_beretta_m92.mdl",
entity = "m9k_m92beretta",
price = 1000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("Remington 1818", {
model = "models/weapons/w_remington_1818.mdl",
entity = "m9k_remington1818",
price = 1100,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})

DarkRP.createShipment("Bizon PP19", {
model = "models/weapons/w_pp19_bizon.mdl",
entity = "m9k_bizonp19",
price = 5000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("AAC Honey Badger", {
model = "models/weapons/w_aac_honeybadger.mdl",
entity = "m9k_honeybadger",
price = 5000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("KAC PDW", {
model = "models/weapons/w_kac_pdw.mdl",
entity = "m9k_kac_pdw",
price = 5000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("Magpul PDR", {
model = "models/weapons/w_magpul_pdr.mdl",
entity = "m9k_magpulpdr",
price = 5000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("HK MP5", {
model = "models/weapons/w_hk_mp1.mdl",
entity = "m9k_mp1",
price = 6000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("HK MP7", {
model = "models/weapons/w_mp7_silenced.mdl",
entity = "m9k_mp7",
price = 4500,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("MP9", {
model = "models/weapons/w_brugger_thomet_mp9.mdl",
entity = "m9k_mp9",
price = 6000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("STEN", {
model = "models/weapons/w_sten.mdl",
entity = "m9k_sten",
price = 6500,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("TEC-9", {
model = "models/weapons/w_intratec_tec9.mdl",
entity = "m9k_tec9",
price = 6000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("KRISS Vector", {
model = "models/weapons/w_kriss_vector.mdl",
entity = "m9k_vector",
price = 7000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("ACR", {
model = "models/weapons/w_masada_acr.mdl",
entity = "m9k_acr",
price = 5000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("AK-47", {
model = "models/weapons/w_ak47_m9k.mdl",
entity = "m9k_ak47",
price = 6000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("Steyr AUG A3", {
model = "models/weapons/w_auga3.mdl",
entity = "m9k_auga3",
price = 5000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("FAMAS", {
model = "models/weapons/w_tct_famas.mdl",
entity = "m9k_famas",
price = 5700,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("M4A1 Iron", {
model = "models/weapons/w_m4a1_iron.mdl",
entity = "m9k_m4a1",
price = 6000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("M16A4 ACOG", {
model = "models/weapons/w_dmg_m16ag.mdl",
entity = "m9k_m16a4_acog",
price = 6000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("SCAR", {
model = "models/weapons/w_fn_scar_h.mdl",
entity = "m9k_scar",
price = 60001,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("Frag Grenade", { -- M9K Specialties
model = "models/weapons/w_grenade.mdl",
entity = "m9k_m61_frag",
price = 10000,
amount = 10,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_QUAIN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("Timed C4", {
model = "models/weapons/w_sb.mdl",
entity = "m9k_suicide_bomb",
price = 6000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("Machete", {
model = "models/weapons/w_fc2_machete.mdl",
entity = "m9k_machete",
price = 3000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_QUAIN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("Winchester 87", { -- M9K Shotguns
model = "models/weapons/w_winchester_1887.mdl",
entity = "m9k_1887winchester",
price = 7100,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_QUAIN}},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("Winchester 1897", {
model = "models/weapons/w_winchester_1897_trench.mdl",
entity = "m9k_1897winchester",
price = 7100,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("Double Barrel Shotgun", {
model = "models/weapons/w_double_barrel_shotgun.mdl",
entity = "m9k_dbarrel",
price = 10000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("Ithaca M37", {
model = "models/weapons/w_ithaca_m37.mdl",
entity = "m9k_ithacam37",
price = 12000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("Benelli M3", {
model = "models/weapons/w_benelli_m3.mdl",
entity = "m9k_m3",
price = 8000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("Mossberg 190", {
model = "models/weapons/w_mossberg_190.mdl",
entity = "m9k_mossberg190",
price = 8000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("Remington 870", {
model = "models/weapons/w_remington_870_tact.mdl",
entity = "m9k_remington870",
price = 8000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("SPAS 12", {
model = "models/weapons/w_spas_12.mdl",
entity = "m9k_spas12",
price = 10000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("Striker 12", {
model = "models/weapons/w_striker_12g.mdl",
entity = "m9k_striker12",
price = 14000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("AI AW10", { -- M9K Sniper Rifles
model = "models/weapons/w_acc_int_aw10.mdl",
entity = "m9k_aw10",
price = 9100,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("Barret M82", {
model = "models/weapons/w_barret_m82.mdl",
entity = "m9k_barret_m82",
price = 9100,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("Thompson Contender G2", {
model = "models/weapons/w_g2_contender.mdl",
entity = "m9k_contender",
price = 9100,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("SVD Dragunov", {
model = "models/weapons/w_svd_dragunov.mdl",
entity = "m9k_dragunov",
price = 15000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("Intervention", {
model = "models/weapons/w_snip_int.mdl",
entity = "m9k_intervention",
price = 16000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("M24", {
model = "models/weapons/w_snip_m24_6.mdl",
entity = "m9k_m24",
price = 13000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("Barret M98B", {
model = "models/weapons/w_barrett_m98b.mdl",
entity = "m9k_m98b",
price = 14000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("Dragunov SVU", {
model = "models/weapons/w_dragunov_svu.mdl",
entity = "m9k_svu",
price = 13500,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_GUN},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("M134 Minigun", {
model = "models/weapons/w_m134_minigun.mdl",
entity = "m9k_minigun",
price = 120000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_QUAIN}},
shipmodel = "models/items/item_item_crate.mdl",
})
DarkRP.createShipment("Couteau", {
model = "models/weapons/w_extreme_ratio.mdl",
entity = "m9k_knife",
price = 1000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_QUAIN},
shipmodel = "models/items/item_item_crate.mdl",
DarkRP.createShipment("PKM", {
model = "models/weapons/w_mach_russ_pkm.mdl",
entity = "m9k_pkm",
price = 100000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_QUAIN},
shipmodel = "models/items/item_item_crate.mdl",
DarkRP.createShipment("Vape Normale", {
model = "models/swamponions/vape.mdl",
entity = "weapon_vape",
price = 15000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_VAPE},
shipmodel = "models/items/item_item_crate.mdl",
DarkRP.createShipment("Vape Au Fruits", {
model = "models/swamponions/vape.mdl",
entity = "weapon_vape_juicy",
price = 15000,
amount = 1,
separate = false,
pricesep = 0,
noship = false,
allowed = {TEAM_VAPE},
shipmodel = "models/items/item_item_crate.mdl",



Categories :


--[[-----------------------------------------------------------------------
Categories
---------------------------------------------------------------------------
The categories of the default F4 menu.
Please read this page for more information:
http://wiki.darkrp.com/index.php/DarkRP:Categories
In case that page can't be reached, here's an example with explanation:
DarkRP.createCategory{
name = "Citizens", -- The name of the category.
categorises = "jobs", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo".
startExpanded = true, -- Whether the category is expanded when you open the F4 menu.
color = Color(0, 107, 0, 255), -- The color of the category header.
canSee = function(ply) return true end, -- OPTIONAL: whether the player can see this category AND EVERYTHING IN IT.
sortOrder = 100, -- OPTIONAL: With this you can decide where your category is. Low numbers to put it on top, high numbers to put it on the bottom. It's 100 by default.
}

Add new categories under the next line!
---------------------------------------------------------------------------]]
DarkRP.createCategory{
name = "Etat",
categorises = "jobs",
startExpanded = true,
color = Color(237, 226, 35, 255),
canSee = function(ply) return true end,
sortOrder = 100
}
DarkRP.createCategory{
name = "VIP",
categorises = "jobs",
startExpanded = true,
color = Color(237, 226, 35, 255),
canSee = function(ply) return true end,
sortOrder =
}
DarkRP.createCategory{
name = "Citoyen",
categorises = "jobs",
startExpanded = true,
color = Color(237, 226, 35, 255),
canSee = function(ply) return true end,
sortOrder =
}

Merci a tous .
 
  • Initiateur de la discussion
M

Mataim

Geek
Messages
25
Score réaction
3
Points
75
Il y a des espaces entre chaque Shipment et chaque Jobs ainsi que pour les categories mais elle n'apparaissent pas la .
 
  • Initiateur de la discussion
M

Mataim

Geek
Messages
25
Score réaction
3
Points
75
Je vien aussi de me rendre compte d'un erreur pour les shipment que je vien de corriger
 
Taink

Taink

El Magnifico
Messages
5 292
Score réaction
2 720
Points
965
Question d'ordre pratique, est-ce que tu peux mettre les balises [CODE] et [/CODE] autour de ton message (des lignes de code, en fait) ? C'est pour faciliter la lecture des messages suivants.
 
Discord d'entraide
Rejoignz-nous sur Discord