Comment ajouter des munititions

  • Initiateur de la discussion proxy60
  • Date de début
  • Initiateur de la discussion
proxy60

proxy60

Geek suprême
Messages
364
Score réaction
27
Points
100
Bonjour,

J'ai ajouter des munitions mes sa marche pas , voici ma ligne de codes:

GAMEMODE:AddAmmoType("m9k_ammo_pistol", "Munition de pistolet", "models/Items/BoxSRounds.mdl", 50, 30)

GAMEMODE:AddAmmoType("m9k_ammo_buckshot", "Munition de fusil a pompe", "models/Items/BoxBuckshot.mdl", 65, 30)

GAMEMODE:AddAmmoType("m9k_ammo_ar2", "Munition de fusil d'assaut", "models/Items/BoxMRounds.mdl", 60, 30)

GAMEMODE:AddAmmoType("m9k_ammo_357", "357 munitions", "models/Items/357ammobox.mdl", 60, 20)

GAMEMODE:AddAmmoType("m9k_ammo_sniper_rounds", "Munition de fusil de précision", "models/Items/BoxMRounds.mdl", 80, 8)

GAMEMODE:AddAmmoType("m9k_ammo_winchester", "Munition de Winchester", "models/Items/BoxMRounds.mdl", 80, 6)

GAMEMODE:AddAmmoType("m9k_ammo_40mm", "Munition de 40mm", "models/Items/BoxMRounds.mdl", 50, 12)



Si on pourrait m'aide svp
 
  • Initiateur de la discussion
proxy60

proxy60

Geek suprême
Messages
364
Score réaction
27
Points
100
UP
 
Nardox

Nardox

Psychopathe
Messages
1 143
Score réaction
240
Points
250
Tien :
Code:
DarkRP.createAmmoType("pistol", { name = "Munitions de Pistolet", model = "models/Items/BoxSRounds.mdl", price = 50, amountGiven = 24,
})
DarkRP.createAmmoType("357", { name = "Munitions de 357", model = "models/Items/357ammo.mdl", price = 80, amountGiven = 12,
})
DarkRP.createAmmoType("buckshot", { name = "Munitions de Fusil à Pompe", model = "models/Items/BoxBuckshot.mdl", price = 100, amountGiven = 8,
})
DarkRP.createAmmoType("smg1", { name = "Munitions de Mitraillette", model = "models/Items/BoxSRounds.mdl", price = 100, amountGiven = 30,
})
DarkRP.createAmmoType( "ar2", { name = "Munitions de Fusil d'Assault", model = "models/Items/BoxMRounds.mdl", price = 150, amountGiven = 30,
})
DarkRP.createAmmoType( "AirboatGun", { name = "Munitions de Winchester", model = "models/Items/sniper_round_box.mdl", price = 200, amountGiven = 30,
})
DarkRP.createAmmoType("SniperPenetratedRound", { name = "Munition de Sniper", model = "models/items/sniper_round_box.mdl", price = 250, amountGiven = 8,
})
 
E

Elyel

Bambi
Messages
17
Score réaction
0
Points
35
mp moi si tu veu je te passe direct le code pr toutes les fas
 
Nardox

Nardox

Psychopathe
Messages
1 143
Score réaction
240
Points
250
Pour les F:AS
Code:
DarkRP.createAmmoType("10x25MM", {
name = "10x25MM",
model = "models/Items/BoxMRounds.mdl",
price = 45,
amountGiven = 25
})
DarkRP.createAmmoType(".454 Casull", {
name = ".454 Casull",
model = "models/Items/BoxMRounds.mdl",
price = 45,
amountGiven = 25
})
DarkRP.createAmmoType("9x19MM", {
name = "9X19MM",
model = "models/Items/BoxMRounds.mdl",
price = 45,
amountGiven = 25
})
DarkRP.createAmmoType("9x18MM", {
name = "9X18MM",
model = "models/Items/BoxMRounds.mdl",
price = 45,
amountGiven = 25
})
DarkRP.createAmmoType("5.56x45MM", {
name = "5.56x45MM",
model = "models/Items/BoxMRounds.mdl",
price = 45,
amountGiven = 25
})
DarkRP.createAmmoType("7.62x39MM", {
name = "7.62x39MM",
model = "models/Items/BoxMRounds.mdl",
price = 45,
amountGiven = 25
})
DarkRP.createAmmoType("5.45x39MM", {
name = "5.45x39MM",
model = "models/Items/BoxMRounds.mdl",
price = 45,
amountGiven = 25
})
DarkRP.createAmmoType("5.45x39MM", {
name = "5.45x39MM",
model = "models/Items/BoxMRounds.mdl",
price = 45,
amountGiven = 25
})
DarkRP.createAmmoType("7.62x51MM", {
name = "7.62x51MM",
model = "models/Items/BoxMRounds.mdl",
price = 45,
amountGiven = 25
})
DarkRP.createAmmoType("12 Gauge", {
name = "12 Gauge",
model = "models/Items/BoxMRounds.mdl",
price = 45,
amountGiven = 25
})
 
E

Elyel

Bambi
Messages
17
Score réaction
0
Points
35
J'allais le dire !!!
 
  • Initiateur de la discussion
proxy60

proxy60

Geek suprême
Messages
364
Score réaction
27
Points
100
Ok merci sa marche ;)
 
E

Elyel

Bambi
Messages
17
Score réaction
0
Points
35
AddCustomShipment("AK-12", {
model = "models/weapons/w_rif_ak47.mdl",
entity = "fas2_ak12",
price = 1400,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("AK-47", {
model = "models/weapons/w_rif_ak47.mdl",
entity = "fas2_ak47",
price = 2000,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("AK-74", {
model = "models/weapons/w_rif_ak47.mdl",
entity = "fas2_ak74",
price = 2250,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("AN-94", {
model = "models/weapons/w_rif_ak47.mdl",
entity = "fas2_an94",
price = 2000,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("FAMAS", {
model = "models/weapons/w_rif_ak47.mdl",
entity = "fas2_famas",
price = 2000,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("G-36C", {
model = "models/weapons/w_rif_ak47.mdl",
entity = "fas2_g36c",
price = 2000,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("G3A3", {
model = "models/weapons/w_rif_ak47.mdl",
entity = "fas2_g3",
price = 2300,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("GALIL", {
model = "models/weapons/w_rif_ak47.mdl",
entity = "fas2_galil",
price = 2250,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("M4A1", {
model = "models/weapons/w_rif_ak47.mdl",
entity = "fas2_m4a1",
price = 2500,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("RPK-47", {
model = "models/weapons/w_rif_ak47.mdl",
entity = "fas2_rpk",
price = 2250,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("RK-95", {
model = "models/weapons/w_rif_ak47.mdl",
entity = "fas2_rk95",
price = 2250,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("GlOCK-20", {
model = "models/weapons/w_pist_elite_single.mdl",
entity = "fas2_glock20",
price = 500,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("Desert Eagle", {
model = "models/weapons/w_pist_elite_single.mdl",
entity = "fas2_deagle",
price = 750,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("M1911", {
model = "models/weapons/w_pist_elite_single.mdl",
entity = "fas2_m1911",
price = 600,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("OT-S", {
model = "models/weapons/w_pist_elite_single.mdl",
entity = "fas2_ots33",
price = 650,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("P226 x1", {
model = "models/weapons/w_pist_elite_single.mdl",
entity = "fas2_p226",
price = 600,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("Raging Bull", {
model = "models/weapons/w_pist_elite_single.mdl",
entity = "fas2_ragingbull",
price = 700,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("KS-23", {
model = "models/weapons/w_shot_m3super90.mdl",
entity = "fas2_ks23",
price = 2750,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("M3 SUPER 90", {
model = "models/weapons/w_shot_m3super90.mdl",
entity = "fas2_m3s90",
price = 3000,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("REMINGTON 870", {
model = "models/weapons/w_shot_m3super90.mdl",
entity = "fas2_rem870",
price = 2750,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("M21", {
model = "models/weapons/w_snip_awp.mdl",
entity = "fas2_m21",
price = 3500,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("M24", {
model = "models/weapons/w_snip_awp.mdl",
entity = "fas2_m24",
price = 3750,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("M82", {
model = "models/weapons/w_snip_awp.mdl",
entity = "fas2_m82",
price = 4000,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("M14", {
model = "models/weapons/w_shot_xm1014.mdl",
entity = "fas2_m14",
price = 1850,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("SKS", {
model = "models/weapons/w_shot_xm1014.mdl",
entity = "fas2_sks",
price = 2000,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("MINI UZI", {
model = "models/weapons/w_smg_ump45.mdl",
entity = "fas2_uzi",
price = 2200,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("M11A1", {
model = "models/weapons/w_smg_ump45.mdl",
entity = "fas2_mac11",
price = 2000,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("MP5A5", {
model = "models/weapons/w_smg_ump45.mdl",
entity = "fas2_mp5a5",
price = 2000,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("MP5K", {
model = "models/weapons/w_smg_ump45.mdl",
entity = "fas2_mp5k",
price = 1850,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("MP5SD6", {
model = "models/weapons/w_smg_ump45.mdl",
entity = "fas2_mp5sd6",
price = 1850,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("PP-19 BIZON", {
model = "models/weapons/w_smg_ump45.mdl",
entity = "fas2_pp19",
price = 2150,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("SG-550 x1", {
model = "models/weapons/w_smg_ump45.mdl",
entity = "fas2_sg550",
price = 2250,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})

AddCustomShipment("SG-552", {
model = "models/weapons/w_smg_ump45.mdl",
entity = "fas2_sg552",
price = 2400,
amount = 1,
separate = false,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
})
 
Discord d'entraide
Rejoignz-nous sur Discord