- Initiateur de la discussion
SlyGus
Geek
- Messages
- 46
- Score réaction
- 1
- Points
- 65
Salut a tous j'ai un probleme avec les munitions fas avec le elite F4 menu :
[ERROR] gamemodes/darkrp/entities/entities/spawned_ammo/init.lua:10: bad argument #1 to 'GiveAmmo' (number expected, got nil)
1. GiveAmmo - [C]:-1
2. unknown - gamemodes/darkrp/entities/entities/spawned_ammo/init.lua:10
je vous donne le ammo.lua :
DarkRP.createAmmoType("OTS33 et Bizon Ammo (60 Rounds)", {
ent = "fas2_ammo_9x18",
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 20,
cmd = "buy9x18mm",
})
DarkRP.createAmmoType("MP5A5 et MP5K Ammo (40 Rounds)", {
ent = "fas2_ammo_9x19",
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 20,
cmd = "buy9x19mm",
})
DarkRP.createAmmoType("Glock20 Ammo (60 Rounds)", {
ent = "fas2_ammo_10x25",
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 20,
cmd = "buy10x25mm",
})
DarkRP.createAmmoType("M3SUPER, REMINGTON et TOZ-34 Ammo (16 Rounds)", {
ent = "fas2_ammo_12gauge",
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 20,
cmd = "buy12gauge",
})
DarkRP.createAmmoType("KS-23 Ammo (20 Rounds)", {
ent = "fas2_ammo_23x75",
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 20,
cmd = "buy23x75mmr",
})
DarkRP.createAmmoType("M1911 Ammo (30 Rounds)", {
ent = "fas2_ammo_45acp",
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 5,
cmd = "buy45acpammo",
})
DarkRP.createAmmoType("Desert Eagle Ammo (14 Rounds)", {
ent = "fas2_ammo_50ae",
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 5,
cmd = "buy50aeammo",
})
DarkRP.createAmmoType("M82 Ammo (20 Rounds)", {
ent = "fas2_ammo_50bmg",
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 5,
cmd = "buy50bmgammo",
})
DarkRP.createAmmoType("P226 Ammo (30 Rounds)", {
ent = "fas2_ammo_357sig",
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 5,
cmd = "buy357sigammo",
})
DarkRP.createAmmoType("RagingBull casull", {
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 5,
cmd = "buy500swammo",
})
DarkRP.createAmmoType("AK12 et AK74 Ammo (60 Rounds)", {
ent = "fas2_ammo_545x39",
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 5,
cmd = "buy545x39ammo",
})
DarkRP.createAmmoType("M4A1 et Galil Ammo (60 Rounds)", {
ent = "fas2_ammo_556x45",
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 5,
cmd = "buy556x45ammo",
})
DarkRP.createAmmoType("AK74,RPK47,SKS Ammo (60 Rounds)", {
ent = "fas2_ammo_762x39",
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 5,
cmd = "buy762x39ammo",
})
DarkRP.createAmmoType("DRAGUNOV,M21,M24,SR-25 Ammo (40 Rounds)", {
ent = "fas2_ammo_762x51",
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 5,
cmd = "buy7651ammo",
})
DarkRP.createAmmoType("M67 Grenades (12 Grenades)", {
ent = "fas2_ammo_m67",
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 5,
cmd = "buym27grenades",
})
cela ne provient pas des noms que j'ai changer j'en suis sur
[ERROR] gamemodes/darkrp/entities/entities/spawned_ammo/init.lua:10: bad argument #1 to 'GiveAmmo' (number expected, got nil)
1. GiveAmmo - [C]:-1
2. unknown - gamemodes/darkrp/entities/entities/spawned_ammo/init.lua:10
je vous donne le ammo.lua :
DarkRP.createAmmoType("OTS33 et Bizon Ammo (60 Rounds)", {
ent = "fas2_ammo_9x18",
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 20,
cmd = "buy9x18mm",
})
DarkRP.createAmmoType("MP5A5 et MP5K Ammo (40 Rounds)", {
ent = "fas2_ammo_9x19",
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 20,
cmd = "buy9x19mm",
})
DarkRP.createAmmoType("Glock20 Ammo (60 Rounds)", {
ent = "fas2_ammo_10x25",
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 20,
cmd = "buy10x25mm",
})
DarkRP.createAmmoType("M3SUPER, REMINGTON et TOZ-34 Ammo (16 Rounds)", {
ent = "fas2_ammo_12gauge",
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 20,
cmd = "buy12gauge",
})
DarkRP.createAmmoType("KS-23 Ammo (20 Rounds)", {
ent = "fas2_ammo_23x75",
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 20,
cmd = "buy23x75mmr",
})
DarkRP.createAmmoType("M1911 Ammo (30 Rounds)", {
ent = "fas2_ammo_45acp",
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 5,
cmd = "buy45acpammo",
})
DarkRP.createAmmoType("Desert Eagle Ammo (14 Rounds)", {
ent = "fas2_ammo_50ae",
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 5,
cmd = "buy50aeammo",
})
DarkRP.createAmmoType("M82 Ammo (20 Rounds)", {
ent = "fas2_ammo_50bmg",
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 5,
cmd = "buy50bmgammo",
})
DarkRP.createAmmoType("P226 Ammo (30 Rounds)", {
ent = "fas2_ammo_357sig",
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 5,
cmd = "buy357sigammo",
})
DarkRP.createAmmoType("RagingBull casull", {
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 5,
cmd = "buy500swammo",
})
DarkRP.createAmmoType("AK12 et AK74 Ammo (60 Rounds)", {
ent = "fas2_ammo_545x39",
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 5,
cmd = "buy545x39ammo",
})
DarkRP.createAmmoType("M4A1 et Galil Ammo (60 Rounds)", {
ent = "fas2_ammo_556x45",
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 5,
cmd = "buy556x45ammo",
})
DarkRP.createAmmoType("AK74,RPK47,SKS Ammo (60 Rounds)", {
ent = "fas2_ammo_762x39",
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 5,
cmd = "buy762x39ammo",
})
DarkRP.createAmmoType("DRAGUNOV,M21,M24,SR-25 Ammo (40 Rounds)", {
ent = "fas2_ammo_762x51",
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 5,
cmd = "buy7651ammo",
})
DarkRP.createAmmoType("M67 Grenades (12 Grenades)", {
ent = "fas2_ammo_m67",
model = "models/Items/BoxMRounds.mdl",
price = 1000,
max = 5,
cmd = "buym27grenades",
})
cela ne provient pas des noms que j'ai changer j'en suis sur