Problème armes

  • Initiateur de la discussion
G

GAMERS-FR

Geek
Messages
41
Score réaction
1
Points
60
Bonjour sur mon serveur gmod darkrp j'ai un probleme avec le fichier shipment.lua j'ai mit que seul gundealer puisse acheter les armes mais enfaite en jeu tous les jobs peuvent acheter les armes
Cordialement
 
  • Banni
Mrdiaboloz

Mrdiaboloz

Geek
Messages
60
Score réaction
5
Points
95
Prend ce modèle pour les shipment
DarkRP.createShipment("Nom", { --Nom qui apparait dans le f4
model = "model.mdl", --modèle de l'arme
entity = "arme", --arme
price = prix, --prix
amount = montant, --montant d'arme av
separate = false, --laisser comme ça jme rappelle plus a quoi ça sert
pricesep = 0, --idem
noship = false, --idem
allowed = {métier}, --le métier
shipmodel = "models/items/item_item_crate.mdl", --model de ship

})

Ou le modèle ligne moins lisible
AddCustomShipment("Aspirine", "models/jaanus/aspbtl.mdl", "durgz_alcohol", 150, 1, false, 500, false, {TEAM_BARMANS})
 
  • Initiateur de la discussion
G

GAMERS-FR

Geek
Messages
41
Score réaction
1
Points
60
Voici ma config shipment.lua

DarkRP.createShipment("M4A1", {
model = "models/weapons/w_m4a1_iron.mdl",
entity = "m9k_m4a1",
price = 26000,
amount = 10,
separate = true,
pricesep = 2600,
noship = true,
allowed = {TEAM_GUN},
category = "Rifles",
})

DarkRP.createShipment("AW50", {
model = "models/weapons/w_acc_int_aw50.mdl",
entity = "m9k_aw50",
price = 90000,
amount = 10,
separate = true,
pricesep = 9000,
noship = true,
allowed = {TEAM_GUN},
category = "Rifles",
})

DarkRP.createShipment("MP9", {
model = "models/weapons/w_brugger_thomet_mp9.mdl",
entity = "m9k_mp9",
price = 39000,
amount = 10,
separate = true,
pricesep = 3900,
noship = true,
allowed = {TEAM_GUN},
category = "Rifles",
})

DarkRP.createShipment("TEC9", {
model = "models/weapons/w_intratec_tec9.mdl",
entity = "m9k_tec9",
price = 30000,
amount = 10,
separate = true,
pricesep = 3000,
noship = true,
allowed = {TEAM_GUN},
category = "Rifles",
})

DarkRP.createShipment("Vector", {
model = "models/weapons/w_kriss_vector.mdl",
entity = "m9k_vector",
price = 55000,
amount = 10,
separate = true,
pricesep = 5500,
noship = true,
allowed = {TEAM_GUN},
category = "Rifles",
})

DarkRP.createShipment("HoneyBadger", {
model = "models/weapons/w_aac_honeybadger.mdl",
entity = "m9k_honeybadger",
price = 80000,
amount = 10,
separate = true,
pricesep = 8000,
noship = true,
allowed = {TEAM_GUN},
category = "Rifles",
})

DarkRP.createShipment("Scar", {
model = "models/weapons/w_fn_scar_h.mdl",
entity = "m9k_scar",
price = 35000,
amount = 10,
separate = true,
pricesep = 3500,
noship = true,
allowed = {TEAM_GUN},
category = "Rifles",
})

DarkRP.createShipment("Scoped taurus", {
model = "models/weapons/w_raging_bull_scoped.mdl",
entity = "m9k_scoped_taurus",
price = 25000,
amount = 10,
separate = true,
pricesep = 2500,
noship = true,
allowed = {TEAM_GUN},
category = "Pistols",
})

DarkRP.createShipment("Desert eagle", {
model = "models/weapons/w_tcom_deagle.mdl",
entity = "m9k_deagle",
price = 5000,
amount = 10,
separate = true,
pricesep = 500,
noship = true,
allowed = {TEAM_GUN},
category = "Pistols",
})

DarkRP.createShipment("USP", {
model = "models/weapons/w_pist_fokkususp.mdl",
entity = "m9k_usp",
price = 7000,
amount = 10,
separate = true,
pricesep = 700,
noship = true,
allowed = {TEAM_GUN},
category = "Pistols",
})

DarkRP.createShipment("Glock", {
model = "models/weapons/w_beretta_m92.mdl",
entity = "m9k_m92beretta",
price = 3000,
amount = 10,
separate = true,
pricesep = 300,
noship = true,
allowed = {TEAM_GUN},
category = "Pistols",
-- CustomCheck
})

DarkRP.createShipment("P229r", {
model = "models/weapons/w_sig_229r.mdl",
entity = "m9k_sig_p229r",
price = 9000,
amount = 10,
separate = true,
pricesep = 900,
noship = true,
allowed = {TEAM_GUN},
category = "Pistols",
})

DarkRP.createShipment("Sniper m24", {
model = "models/weapons/w_snip_m24_6.mdl",
entity = "m9k_m24",
price = 40000,
amount = 10,
separate = false,
pricesep = 4000,
noship = true,
allowed = {TEAM_GUN},
category = "Snipers",
})

DarkRP.createShipment("Fusil a Pompe", {
model = "models/weapons/w_mossberg_590.mdl",
entity = "m9k_mossberg590",
price = 25000,
amount = 10,
separate = false,
pricesep = 2500,
noship = false,
allowed = {TEAM_GUN},
category = "Shotguns",
})

DarkRP.createShipment("M5 silencieux", {
model = "models/weapons/w_rif_m4a1.mdl",
entity = "weapon_m42",
price = 28000,
amount = 10,
separate = false,
pricesep = 2800,
noship = true,
allowed = {TEAM_GUN},
category = "Rifles",
})

DarkRP.createShipment("MP5", {
model = "models/weapons/w_hk_mp5.mdl",
entity = "m9k_mp5",
price = 23000,
amount = 10,
separate = false,
pricesep = 2300,
noship = true,
allowed = {TEAM_GUN},
category = "Rifles",
})

DarkRP.createShipment("AK47", {
model = "models/weapons/w_ak47_m9k.mdl",
entity = "m9k_ak47",
price = 25000,
amount = 10,
separate = false,
pricesep = 2500,
noship = true,
allowed = {TEAM_GUN},
category = "Rifles",
})
 
Discord d'entraide
Rejoignz-nous sur Discord