Munitions spawn f4 menu probleme (m9k)

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

SuperTata

Geek suprême
Messages
180
Score réaction
11
Points
125
Bonjour/Bonsoir, j'ai un petit problème quand je fais spawn mes munitions à l'aide de mon F4 Menu (Arivia), lorsque j'achète les munitions, je les prends, mais je reçois aucune munitions.

=== Voici mon ammo.lua ===


--[[---------------------------------------------------------------------------
Ammo types
---------------------------------------------------------------------------

Add new ammo types under the next line!
---------------------------------------------------------------------------]]

DarkRP.createAmmoType("m9k_ammo_357", {
name = "M9K 357 ammo",
model = "models/Items/357ammobox.mdl",
price = 200,
amountGiven = 20
})

DarkRP.createAmmoType("m9k_ammo_ar2", {
name = "Assult Rifle Ammo",
model = "models/Items/357ammobox.mdl",
price = 200,
amountGiven = 40
})

DarkRP.createAmmoType("m9k_ammo_buckshot", {
name = "Shotgun Ammo",
model = "models/Items/357ammobox.mdl",
price = 200,
amountGiven = 20
})

DarkRP.createAmmoType("m9k_ammo_pistol", {
name = "Pistol Ammo",
model = "models/Items/357ammobox.mdl",
price = 200,
amountGiven = 30
})

DarkRP.createAmmoType("m9k_ammo_smg", {
name = "SMG Ammo",
model = "models/Items/357ammobox.mdl",
price = 200,
amountGiven = 40
})

DarkRP.createAmmoType("m9k_ammo_sniper_rounds", {
name = "Sniper Ammo",
model = "models/Items/357ammobox.mdl",
price = 200,
amountGiven = 20
})



Merci de votre aide !
 
M

Membre supprimé 85513

Anonyme
Tu mets pas les bons types de munitions, si je me trompe pas c'est :

DarkRP.createAmmoType("357", {
name = "M9K 357 ammo",
model = "models/Items/357ammobox.mdl",
price = 200,
amountGiven = 20
})

DarkRP.createAmmoType("ar2", {
name = "Assult Rifle Ammo",
model = "models/Items/357ammobox.mdl",
price = 200,
amountGiven = 40
})

DarkRP.createAmmoType("buckshot", {
name = "Shotgun Ammo",
model = "models/Items/357ammobox.mdl",
price = 200,
amountGiven = 20
})

DarkRP.createAmmoType("pistol", {
name = "Pistol Ammo",
model = "models/Items/357ammobox.mdl",
price = 200,
amountGiven = 30
})

DarkRP.createAmmoType("smg1", {
name = "SMG Ammo",
model = "models/Items/357ammobox.mdl",
price = 200,
amountGiven = 40
})

DarkRP.createAmmoType("SniperPenetratedRound", {
name = "Sniper Ammo",
model = "models/Items/357ammobox.mdl",
price = 200,
amountGiven = 20
})
 
  • J'aime
Réactions: SuperTata
  • Initiateur de la discussion
SuperTata

SuperTata

Geek suprême
Messages
180
Score réaction
11
Points
125
UnnLuckyY à dit:
Tu mets pas les bons types de munitions, si je me trompe pas c'est :

DarkRP.createAmmoType("357", {
name = "M9K 357 ammo",
model = "models/Items/357ammobox.mdl",
price = 200,
amountGiven = 20
})

DarkRP.createAmmoType("ar2", {
name = "Assult Rifle Ammo",
model = "models/Items/357ammobox.mdl",
price = 200,
amountGiven = 40
})

DarkRP.createAmmoType("buckshot", {
name = "Shotgun Ammo",
model = "models/Items/357ammobox.mdl",
price = 200,
amountGiven = 20
})

DarkRP.createAmmoType("pistol", {
name = "Pistol Ammo",
model = "models/Items/357ammobox.mdl",
price = 200,
amountGiven = 30
})

DarkRP.createAmmoType("smg1", {
name = "SMG Ammo",
model = "models/Items/357ammobox.mdl",
price = 200,
amountGiven = 40
})

DarkRP.createAmmoType("SniperPenetratedRound", {
name = "Sniper Ammo",
model = "models/Items/357ammobox.mdl",
price = 200,
amountGiven = 20
})
Merci de vais tester
 
  • Initiateur de la discussion
SuperTata

SuperTata

Geek suprême
Messages
180
Score réaction
11
Points
125
UnnLuckyY à dit:
Tu mets pas les bons types de munitions, si je me trompe pas c'est :

DarkRP.createAmmoType("357", {
name = "M9K 357 ammo",
model = "models/Items/357ammobox.mdl",
price = 200,
amountGiven = 20
})

DarkRP.createAmmoType("ar2", {
name = "Assult Rifle Ammo",
model = "models/Items/357ammobox.mdl",
price = 200,
amountGiven = 40
})

DarkRP.createAmmoType("buckshot", {
name = "Shotgun Ammo",
model = "models/Items/357ammobox.mdl",
price = 200,
amountGiven = 20
})

DarkRP.createAmmoType("pistol", {
name = "Pistol Ammo",
model = "models/Items/357ammobox.mdl",
price = 200,
amountGiven = 30
})

DarkRP.createAmmoType("smg1", {
name = "SMG Ammo",
model = "models/Items/357ammobox.mdl",
price = 200,
amountGiven = 40
})

DarkRP.createAmmoType("SniperPenetratedRound", {
name = "Sniper Ammo",
model = "models/Items/357ammobox.mdl",
price = 200,
amountGiven = 20
})
Merci cela a fonctionné
 
Discord d'entraide
Rejoignz-nous sur Discord