Vendeur d'armes (sujet 2)

  • Initiateur de la discussion
Numos59

Numos59

Geek suprême
Messages
96
Score réaction
4
Points
115
Bonjour, sa fait 1 semaine que je bug avec mon métier Vendeur d'arme, je l'ai dans le menu F4 sauf que quand je vais dessus je n'ai pas les armes alors que je l'ai ai fais dans addentities.lua !! Voici mon code source, veuillez m'aider svp

DarkRP.createShipment("Desert eagle", {
model = "models/weapons/w_tcom_deagle.mdl",
entity = "m9k_deagle",
price = 1200,
amount = 10,
separate = false,
pricesep = 215,
noship = false,
allowed = {TEAM_GUNDEALER},
category = "Pistols"
})

DarkRP.createShipment("Colt 1911", {
model = "models/weapons/w_sig_229r.mdl",
entity = "m9k_colt1911",
price = 750,
amount = 10,
separate = false,
pricesep = 205,
noship = fasle,
allowed = {TEAM_GUNDEALER},
category = "Pistols"
})

DarkRP.createShipment("HK 45C", {
model = "models/weapons/w_hk45c.mdl",
entity = "weapon_glock2",
price = 750,
amount = 10,
separate = false,
pricesep = 160,
noship = false,
allowed = {TEAM_GUNDEALER},
category = "Pistols"
})

DarkRP.createShipment("HK USP", {
model = "models/weapons/w_pist_fokkususp.mdl",
entity = "m9k_usp",
price = 1000,
amount = 10,
separate = false,
pricesep = 185,
noship = false,
allowed = {TEAM_GUNDEALER},
category = "Pistols"
})

DarkRP.createShipment("AMD 65", {
model = "models/weapons/w_amd_65.mdl",
entity = "m9k_amd65",
price = 2450,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_GUNDEALER},
category = "Rifles"
})

DarkRP.createShipment("FN FAL", {
model = "models/weapons/w_fn_fal.mdl",
entity = "m9k_fal",
price = 2200,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_GUNDEALER},
category = "Rifles"
})

DarkRP.createShipment("SCAR", {
model = "models/weapons/w_fn_scar_h.mdl",
entity = "m9k_scar",
price = 3000,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_GUNDEALER},
category = "Rifles"
})

DarkRP.createShipment("ACR", {
model = "models/weapons/w_hk_416.mdl",
entity = "m9k_acr",
price = 2500,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_GUNDEALER}
category = "Rifles"
})

DarkRP.createShipment("Winshester Carabine", {
model = "models/weapons/w_winchester_1873.mdl",
entity = "m9k_winchester73",
price = 1750,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_GUNDEALER},
category = "Shotguns"
})

DarkRP.createShipment("Double barrel", {
entity = "models/weapons/w_double_barrel_shotgun.mdl",
entity = "m9k_dbarrel",
price = 3500,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_GUNDEALER},
category = "Shotguns"
})

DarkRP.createShipment("Pancor Jackhammer", {
entity = "models/weapons/w_pancor_jackhammer.mdl",
entity = "m9k_jackhammer",
price = 3500,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_GUNDEALER},
category = "Shotguns"
})

DarkRP.createShipment("AI AW50", {
entity = "models/weapons/w_acc_int_aw50.mdl",
entity = "m9k_aw50",
price = 3000,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_GUN},
category = "Shotguns"
})

DarkRP.createShipment("M24", {
entity = "models/weapons/w_snip_m24_6.mdl",
entity = "m9k_m24",
price = 3000,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_GUNDEALER},
category = "Shotguns"
})

DarkRP.createShipment("MP5", {
entity = "models/weapons/w_hk_mp5.mdl",
entity = "m9k_mp5",
price = 2000,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_GUNDEALER},
category = "Shotguns"
})

DarkRP.createShipment("HK MP7", {
entity = "models/weapons/w_mp7_silenced.mdl",
entity = "m9k_mp7",
price = 2000,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_GUNDEALER},
category = "Shotguns"
})

DarkRP.createShipment("UZI", {
entity = "models/weapons/w_uzi_imi.mdl",
entity = "m9k_uzi",
price = 2500,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_GUNDEALER},
category = "Shotguns"
})

DarkRP.createShipment("Glock 18", {
entity = "models/weapons/w_dmg_glock.mdl",
entity = "m9k_glock",
price = 750,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_VENDEURARME},
category = "Shotguns"
})

DarkRP.createShipment("Regminton 1858", {
entity = "models/weapons/w_remington_1858.mdl",
entity = "m9k_remington1858",
price = 1500,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_VENDEURARME},
category = "Shotguns"
})

DarkRP.createShipment("P08 Luger", {
entity = "models/weapons/w_luger_p08.mdl",
entity = "m9k_luger",
price = 1000,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_VENDEURARME},
category = "Shotguns"
})

DarkRP.createShipment("Roulette Russe", {
entity = "models/weapons/w_m29_satan.mdl",
entity = "weapon_roulette",
price = 1500,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_VENDEURARME},
category = "Shotguns"
})

DarkRP.createShipment("Couteau", {
entity = "models/weapons/v_knife_x.mdl",
entity = "m9k_knife",
price = 1750,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_VENDEURARME},
category = "Shotguns"
})

DarkRP.createShipment("AK-47", {
entity = "models/weapons/w_ak47_m9k.mdl",
entity = "m9k_ak47",
price = 3000,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_VENDEURARME},
category = "Shotguns"
})

DarkRP.createShipment("AK-74", {
entity = "models/weapons/w_tct_ak47.mdl",
entity = "m9k_ak74",
price = 3000,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_VENDEURARME},
category = "Shotguns"
})

DarkRP.createShipment("HK 416", {
entity = "models/weapons/w_hk_416.mdl",
entity = "m9k_m416",
price = 3000,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_VENDEURARME},
category = "Shotguns"
})

DarkRP.createShipment("Grenade", {
entity = "models/weapons/w_m61_fraggynade.mdl",
entity = "m9k_m61_frag",
price = 10000,
amount = 1,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_VENDEURARME},
category = "Shotguns"
})

DarkRP.createShipment("Keypad Cracker", {
entity = "models/weapons/w_px_planted.mdl",
entity = "keypad_cracker",
price = 2000,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_VENDEURARME},
category = "Shotguns"
})

DarkRP.createShipment("Lockpick", {
entity = "models/weapons/w_harpooner.mdl",
entity = "lockpick",
price = 2000,
amount = 10,
separate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_VENDEURARME},
category = "Shotguns"
})


DarkRP.createEntity("Money printer", {
ent = "money_printer",
model = "models/props_c17/consolebox01a.mdl",
price = 1000,
max = 2,
cmd = "buymoneyprinter"
})

if not DarkRP.disabledDefaults["modules"]["hungermod"] then
DarkRP.createEntity("Microwave", {
ent = "microwave",
model = "models/props/cs_office/microwave.mdl",
price = 400,
max = 1,
cmd = "buymicrowave",
allowed = TEAM_COOK
})
end

DarkRP.createCategory{
name = "Other",
categorises = "weapons",
startExpanded = true,
color = Color(0, 107, 0, 255),
canSee = fp{fn.Id, true},
sortOrder = 255
})

DarkRP.createCategory{
name = "Other",
categorises = "vehicles",
startExpanded = true,
color = Color(0, 107, 0, 255),
canSee = fp{fn.Id, true},
sortOrder = 255
})
 
M

Membre supprimé 66761

Anonyme
// PISTOLS //
AddCustomShipment("Python", "models/weapons/w_colt_python.mdl", "m9k_coltpython", 2500, 10, false, 0, false, {TEAM_GUN})
AddCustomShipment("Python Single", "models/weapons/w_colt_python.mdl", "m9k_coltpython", 500, 1, false, 0, false, {TEAM_GUN})
AddCustomShipment("Colt 1911", "models/weapons/s_dmgf_co1911.mdl", "m9k_colt1911", 1200, 10, false, 0, false, {TEAM_GUN})
AddCustomShipment("Colt 1911 Single", "models/weapons/s_dmgf_co1911.mdl", "m9k_colt1911", 150, 1, false, 0, false, {TEAM_GUN})
AddCustomShipment("HK 45C", "models/weapons/w_hk45c.mdl", "m9k_hk45", 1500, 10, false, 0, false, {TEAM_GUN})
AddCustomShipment("HK 45C Single", "models/weapons/w_hk45c.mdl", "m9k_hk45", 200, 1, false, 0, false, {TEAM_GUN})
AddCustomShipment("Luger", "models/weapons/w_luger_p08.mdl", "m9k_luger", 1200, 10, false, 0, false, {TEAM_GUN})
AddCustomShipment("Luger Single", "models/weapons/w_luger_p08.mdl", "m9k_luger", 100, 1, false, 0, false, {TEAM_GUN})
AddCustomShipment("Raging Bull", "models/weapons/w_hk45c.mdl", "m9k_ragingbull", 3000, 10, false, 0, false, {TEAM_GUN})
AddCustomShipment("Raging Bull Single", "models/weapons/w_hk45c.mdl", "m9k_ragingbull", 600, 1, false, 0, false, {TEAM_GUN})
AddCustomShipment("S&W 500", "models/weapons/w_sw_model_500.mdl", "m9k_model500", 2750, 10, false, 0, false, {TEAM_GUN})
AddCustomShipment("S&W 500 Single", "models/weapons/w_sw_model_500.mdl", "m9k_model500", 550, 10, false, 0, false, {TEAM_GUN})
AddCustomShipment("M29 Satan", "models/weapons/w_m29_satan.mdl", "m9k_m29satan", 3000, 10, false, 0, false, {TEAM_LIGHT})
AddCustomShipment("M29 Satan Single", "models/weapons/w_m29_satan.mdl", "m9k_m29satan", 750, 1, false, 0, false, {TEAM_GUN})
AddCustomShipment("Baretta", "models/weapons/w_beretta_m92.mdl", "m9k_m92baretta", 1400, 10, false, 0, false, {TEAM_GUN})
AddCustomShipment("Baretta Single", "models/weapons/w_beretta_m92.mdl", "m9k_m92baretta", 200, 1, false, 0, false, {TEAM_GUN})
AddCustomShipment("S&W Model 3 Russian", "models/weapons/w_model_3_rus.mdl", "m9k_model3russian", 3000, 10, false, 0, false, {TEAM_GUN})
AddCustomShipment("S&W Model 3 Russian Single", "models/weapons/w_model_3_rus.mdl", "m9k_model3russian", 400, 1, false, 0, false, {TEAM_GUN})
AddCustomShipment("S&W 627", "models/weapons/w_sw_model_627.mdl", "m9k_model627", 3000, 10, false, 0, false, {TEAM_GUN})
AddCustomShipment("S&W 627 Single", "models/weapons/w_sw_model_627.mdl", "m9k_model627", 425, 1, false, 0, false, {TEAM_GUN})

AddCustomShipment("Acr", "models/weapons/w_masada_acr.mdl", "m9k_acr", 4000, 10, false, 0, false, {TEAM_GUN})
AddCustomShipment("Acr Single", "models/weapons/w_masada_acr.mdl", "m9k_acr", 500, 1, false, 0, false, {TEAM_GUN})
AddCustomShipment("AMD 65", "models/weapons/w_amd_65.mdl", "m9k_amd65", 5000, 10, false, 123, false, {TEAM_GUN})
AddCustomShipment("AMD 65 Single", "models/weapons/w_amd_65.mdl", "m9k_amd65", 600, 1, false, 123, false, {TEAM_GUN})
AddCustomShipment("FN FAL", "models/weapons/w_fn_fal.mdl", "m9k_fal", 4000, 10, false, 123, false, {TEAM_GUN})
AddCustomShipment("FN FAL Single", "models/weapons/w_fn_fal.mdl", "m9k_fal", 550, 1, false, 123, false, {TEAM_GUN})
AddCustomShipment("M14", "models/weapons/w_snip_m14sp.mdl", "m9k_m14sp", 5000, 10, false, 123, false, {TEAM_GUN})
AddCustomShipment("M14 Single", "models/weapons/w_snip_m14sp.mdl", "m9k_m14sp", 525, 1, false, 123, false, {TEAM_GUN})
AddCustomShipment("M16 Scoped", "models/weapons/w_dmg_m16ag.mdl", "m9k_m16a4_acog", 5250, 10, false, 123, false, {TEAM_GUN})
AddCustomShipment("M16 Scoped Single", "models/weapons/w_dmg_m16ag.mdl", "m9k_m16a4_acog", 575, 1, false, 123, false, {TEAM_GUN})
AddCustomShipment("HK 16", "models/weapons/w_hk_416.mdl", "m9k_m416", 5000, 10, false, 123, false, {TEAM_GUN})
AddCustomShipment("HK 16 Single", "models/weapons/w_hk_416.mdl", "m9k_m416", 550, 1, false, 123, false, {TEAM_GUN})
AddCustomShipment("Scar", "models/weapons/w_fn_scar_h.mdl", "m9k_scar", 6000, 10, false, 123, false, {TEAM_GUN})
AddCustomShipment("Scar Single", "models/weapons/w_fn_scar_h.mdl", "m9k_scar", 725, 1, false, 123, false, {TEAM_GUN})
AddCustomShipment("TAR-21", "models/weapons/w_imi_tar21.mdl", "m9k_tar21", 5000, 10, false, 123, false, {TEAM_GUN})
AddCustomShipment("TAR-21 Single", "models/weapons/w_imi_tar21.mdl", "m9k_tar21", 525, 1, false, 123, false, {TEAM_GUN})
AddCustomShipment("Val", "models/weapons/w_dmg_vally.mdl", "m9k_val", 5575, 10, false, 123, false, {TEAM_GUN})
AddCustomShipment("Val Single", "models/weapons/w_dmg_vally.mdl", "m9k_val", 550, 1, false, 123, false, {TEAM_GUN})
AddCustomShipment("SR-3M Vikhr", "models/weapons/w_dmg_vikhr.mdl", "m9k_vikhr", 5000, 10, false, 123, false, {TEAM_GUN})
AddCustomShipment("SR-3M Vikhr Single", "models/weapons/w_dmg_vikhr.mdl", "m9k_vikhr", 450, 1, false, 123, false, {TEAM_GUN})
AddCustomShipment("Winchester 73", "models/weapons/w_winchester_1873.mdl", "m9k_winchester73", 3500, 10, false, 123, false, {TEAM_GUN})
AddCustomShipment("Winchester 73 Single", "models/weapons/w_winchester_1873.mdl", "m9k_winchester73", 400, 1, false, 123, false, {TEAM_GUN})

AddCustomShipment("1887 Winchester", "models/weapons/w_winchester_1887.mdl", "m9k_1887winchester", 4000, 10, false, 123, false, {TEAM_GUN})
AddCustomShipment("1887 Winchester Single", "models/weapons/w_winchester_1887.mdl", "m9k_1887winchester", 500, 1, false, 123, false, {TEAM_GUN})
AddCustomShipment("Double Barrel", "models/weapons/w_double_barrel_shotgun.mdl", "m9k_dbarrel", 2000, 10, false, 123, false, {TEAM_GUN})
AddCustomShipment("Double Barrel Single", "models/weapons/w_double_barrel_shotgun.mdl", "m9k_dbarrel", 100, 1, false, 123, false, {TEAM_GUN})
AddCustomShipment("Jack Hammer", "models/weapons/w_pancor_jackhammer.mdl", "m9k_jackhammer", 8000, 10, false, 123, false, {TEAM_GUN})
AddCustomShipment("Jack Hammer Single", "models/weapons/w_pancor_jackhammer.mdl", "m9k_jackhammer", 1000, 1, false, 123, false, {TEAM_GUN})
AddCustomShipment("Benelli M3", "models/weapons/w_benelli_m3.mdl", "m9k_m3", 4500, 10, false, 123, false, {TEAM_GUN})
AddCustomShipment("Benelli M3 Single", "models/weapons/w_benelli_m3.mdl", "m9k_m3", 500, 1, false, 123, false, {TEAM_GUN})
AddCustomShipment("Ithaca M37", "models/weapons/w_ithaca_m37.mdl", "m9k_ithacam37", 3000, 10, false, 123, false, {TEAM_GUN})
AddCustomShipment("Ithaca M37 Single", "models/weapons/w_ithaca_m37.mdl", "m9k_ithacam37", 400, 10, false, 123, false, {TEAM_GUN})
AddCustomShipment("Mossberg", "models/weapons/w_mossberg_590.mdl", "m9k_mossberg590", 3000, 10, false, 123, false, {TEAM_GUN})
AddCustomShipment("Mossberg Single", "models/weapons/w_mossberg_590.mdl", "m9k_mossberg590", 400, 1, false, 123, false, {TEAM_GUN})
AddCustomShipment("Remington 870", "models/weapons/w_remington_870_tact.mdl", "m9k_remington870", 2500, 10, false, 123, false, {TEAM_GUN})
AddCustomShipment("Remington 870 Single", "models/weapons/w_remington_870_tact.mdl", "m9k_remington870", 300, 1, false, 123, false, {TEAM_GUN})
AddCustomShipment("1897 Winchester", "models/weapons/w_winchester_1897_trench.mdl", "m9k_1897winchester", 4000, 10, false, 123, false, {TEAM_GUN})
AddCustomShipment("1897 Winchester Single", "models/weapons/w_winchester_1897_trench.mdl", "m9k_1897winchester", 425, 1, false, 123, false, {TEAM_GUN})
AddCustomShipment("XM1014", "models/weapons/w_shot_xm1014.mdl", "weapon_mad_xm1014", 9000, 10, false, 0, false, {TEAM_GUN})
AddCustomShipment("XM1014 Single", "models/weapons/w_shot_xm1014.mdl", "weapon_mad_xm1014", 1000, 1, false, 0, false, {TEAM_GUN})

Prend cela il marche tu peux les trouvers sur le net
 
M

Membre supprimé 66761

Anonyme
Ta juste a changé le montant http://forum.darkrp.com/threads/m9k-weapon-shipments.659/ voilà )
 
Ronca

Ronca

Geek
Messages
78
Score réaction
2
Points
95
Dis moi dans tes jobs comment s'appelle ta team Vendeur d'arme ? Car à mon avis tu as juste C/C et rien modifié donc certes tu as les armes dans le menu F4 mais elles ne sont que pour une team qui n'existe pas donc remplace le TEAM_GUN par le TEAM_.... que tu trouves dans ton job.lua pour vendeur d'armes.
 
  • Initiateur de la discussion
Numos59

Numos59

Geek suprême
Messages
96
Score réaction
4
Points
115
TEAM_GUN
 
SupremeWend

SupremeWend

Geek suprême
Messages
285
Score réaction
35
Points
165
Numos change le TEAM_GUN en TEAM_GUNDEALER , sa ira directement
 
PabloEscobar50

PabloEscobar50

Geek suprême
Messages
444
Score réaction
21
Points
115
Euh les armes c'est pas censé être dans shipment.lua ?
 
SupremeWend

SupremeWend

Geek suprême
Messages
285
Score réaction
35
Points
165
@PabloEscobar50 c'est pas faux mais c'est pas obligatoire
 
PabloEscobar50

PabloEscobar50

Geek suprême
Messages
444
Score réaction
21
Points
115
SupremeWend à dit:
@PabloEscobar50 c'est pas faux mais c'est pas obligatoire
Bah, après si t'as des bugs quand tu les mets autre part autant les mettre dans shipment ^^
 
  • Initiateur de la discussion
Numos59

Numos59

Geek suprême
Messages
96
Score réaction
4
Points
115
Ils sont dans le shipment, petite erreur de ma part ^^'
 
Ronca

Ronca

Geek
Messages
78
Score réaction
2
Points
95
Numos59 à dit:
Ils sont dans le shipment, petite erreur de ma part ^^'
Tu as fais ce que je t'ai dis ?
 
  • Initiateur de la discussion
Numos59

Numos59

Geek suprême
Messages
96
Score réaction
4
Points
115
Sa ne marche pas
 
M

Membre supprimé 66761

Anonyme
Désactive le fin dealer de base et nomme le TEAM_VD
Je crois que tu as un bug avec le gun dealer de base .
Crée un job ayant pour but de vendre des armes au lieu d'utiliser celui de défaut
 
SupremeWend

SupremeWend

Geek suprême
Messages
285
Score réaction
35
Points
165
@Numos59 change le TEAM_GUN en TEAM_GUNDEALER , sa ira directement
 
  • Initiateur de la discussion
Numos59

Numos59

Geek suprême
Messages
96
Score réaction
4
Points
115
non sa ne marche pas
 
Discord d'entraide
Rejoignz-nous sur Discord