Besoins des M9K munitions !

  • Initiateur de la discussion
alilou901

alilou901

Geek suprême
Messages
238
Score réaction
34
Points
100
Bonjour ou bonsoir !
J'aurais besoin s'il vous plaît du ammo.lua avec les munitions des M9K dejà configurer !
Sa serrais super sympas car j'ai du mal même avec des tutos :'(
Merci de m'en passer un sa serrais mais vraiment super sympas <3
 
DanyV

DanyV

Geek suprême
Messages
110
Score réaction
12
Points
115
A modifier a ta guise:

DarkRP.createAmmoType("357", {
name = ".357 munitions",
model = "models/Items/357ammobox.mdl",
price = 60,
amountGiven = 20
})
DarkRP.createAmmoType("ar2", {
name = "Munitions de fusil d'assault",
model = "models/Items/BoxMRounds.mdl",
price = 60,
amountGiven = 30
})
DarkRP.createAmmoType("buckshot", {
name = "Boite de chevrotines",
model = "models/Items/BoxBuckshot.mdl",
price = 40,
amountGiven = 8
})
DarkRP.createAmmoType("pistol", {
name = "Munitions de pistolet",
model = "models/Items/BoxSRounds.mdl",
price = 20,
amountGiven = 20
})
DarkRP.createAmmoType("smg1", {
name = "Munitions de mitrailleuse légére",
model = "models/Items/BoxMRounds.mdl",
price = 40,
amountGiven = 60
})
DarkRP.createAmmoType("SniperPenetratedRound", {
name = "Munition de fusil de précision",
model = "models/Items/BoxMRounds.mdl",
price = 80,
amountGiven = 6
})
 
  • Initiateur de la discussion
alilou901

alilou901

Geek suprême
Messages
238
Score réaction
34
Points
100
DanyV à dit:
A modifier a ta guise:

DarkRP.createAmmoType("357", {
name = ".357 munitions",
model = "models/Items/357ammobox.mdl",
price = 60,
amountGiven = 20
})
DarkRP.createAmmoType("ar2", {
name = "Munitions de fusil d'assault",
model = "models/Items/BoxMRounds.mdl",
price = 60,
amountGiven = 30
})
DarkRP.createAmmoType("buckshot", {
name = "Boite de chevrotines",
model = "models/Items/BoxBuckshot.mdl",
price = 40,
amountGiven = 8
})
DarkRP.createAmmoType("pistol", {
name = "Munitions de pistolet",
model = "models/Items/BoxSRounds.mdl",
price = 20,
amountGiven = 20
})
DarkRP.createAmmoType("smg1", {
name = "Munitions de mitrailleuse légére",
model = "models/Items/BoxMRounds.mdl",
price = 40,
amountGiven = 60
})
DarkRP.createAmmoType("SniperPenetratedRound", {
name = "Munition de fusil de précision",
model = "models/Items/BoxMRounds.mdl",
price = 80,
amountGiven = 6
})
Mais comment on fait pour les changer en M9k ? :'(
 
PabloEscobar50

PabloEscobar50

Geek suprême
Messages
444
Score réaction
21
Points
115
... Bah faut apprendre , ça parait difficile au début mais ça l'ait pas
 
DanyV

DanyV

Geek suprême
Messages
110
Score réaction
12
Points
115
C'est les m9k...
 
xLomble77

xLomble77

Psychopathe
Messages
2 191
Score réaction
348
Points
290
Mdr :')
Je suis plié là !
 
  • Initiateur de la discussion
alilou901

alilou901

Geek suprême
Messages
238
Score réaction
34
Points
100
Yo ! J'ai un problème ont ne vois pas les munitions dans le menu F4 ! Merci de m'aider

Mon ammo.lua:
Code:
--[[---------------------------------------------------------------------------
Ammo types
---------------------------------------------------------------------------
Ammo boxes that can be purchased in the F4 menu.
Add your custom ammo types in this file. Here's the syntax:
DarkRP.createAmmoType("ammoType", { name = "Ammo name", model = "Model", price = 1234, amountGiven = 5678, customCheck = function(ply) return ply:IsAdmin()
})
ammoType: The name of the ammo that Garry's mod recognizes If you open your SWEP's shared.lua, you can find the ammo name next to SWEP.Primary.Ammo = "AMMO NAME HERE" or SWEP.Secondary.Ammo = "AMMO NAME HERE"
name: The name you want to give to the ammo. This can be anything.
model: The model you want the ammo to have in the F4 menu
price: the price of your ammo in dollars
amountGiven: How much bullets of this ammo is given every time the player buys it
customCheck: (Optional! Advanced!) a Lua function that describes who can buy the ammo. Similar to the custom check function for jobs and shipments Parameters: ply: the player who is trying to buy the ammo
Examples are below!
Pistol ammo type. Used by p228, desert eagle and all other pistols
Example 1:
DarkRP.createAmmoType("pistol", { name = "Pistol ammo", model = "models/Items/BoxSRounds.mdl", price = 30, amountGiven = 24
})
Buckshot ammo, used by the shotguns
Example 2:
DarkRP.createAmmoType("buckshot", { name = "Shotgun ammo", model = "models/Items/BoxBuckshot.mdl", price = 50, amountGiven = 8
})
Rifle ammo, usually used by assault rifles
Example 3:
DarkRP.createAmmoType("smg1", { name = "Rifle ammo", model = "models/Items/BoxMRounds.mdl", price = 80, amountGiven = 30
})
Add new ammo types under the next line!
---------------------------------------------------------------------------]]
DarkRP.createAmmoType("m9k_ammo_357", {
name = ".357 munitions",
model = "models/Items/357ammobox.mdl",
price = 60,
amountGiven = 20
})
DarkRP.createAmmoType("m9k_ammo_ar2", {
name = "Munitions de fusil d'assault",
model = "models/Items/BoxMRounds.mdl",
price = 60,
amountGiven = 30
})
DarkRP.createAmmoType("m9k_ammo_buckshot", {
name = "Boite de chevrotines",
model = "models/Items/BoxBuckshot.mdl",
price = 40,
amountGiven = 12
})
DarkRP.createAmmoType("m9k_ammo_pistol", {
name = "Munitions de pistolet",
model = "models/Items/BoxSRounds.mdl",
price = 20,
amountGiven = 20
})
DarkRP.createAmmoType("m9k_ammo_smg", {
name = "Munitions de mitrailleuse légére",
model = "models/Items/BoxMRounds.mdl",
price = 40,
amountGiven = 60
})
DarkRP.createAmmoType("m9k_ammo_sniper_rounds", {
name = "Munition de fusil de précision",
model = "models/Items/BoxMRounds.mdl",
price = 80,
amountGiven = 8
})
DarkRP.createAmmoType("m9k_ammo_winchester", {
name = "Munition de Winchester",
model = "models/Items/BoxMRounds.mdl",
price = 80,
amountGiven = 6
})
DarkRP.createAmmoType("m9k_ammo_40mm", {
name = "Munition de 40mm",
model = "models/Items/BoxMRounds.mdl",
price = 50,
amountGiven = 12
})
---------------------------------------------------------------------------]]
 
xLomble77

xLomble77

Psychopathe
Messages
2 191
Score réaction
348
Points
290
Tu as pas les bonnes munitions ^^ c'est :

Code:
DarkRP.createAmmoType("pistol", { name = "Munitions de Pistolet", model = "models/Items/BoxSRounds.mdl", price = 100, amountGiven = 24,
})
DarkRP.createAmmoType("357", { name = "Munitions de 357", model = "models/Items/357ammo.mdl", price = 160, amountGiven = 12,
})
DarkRP.createAmmoType("buckshot", { name = "Munitions de Fusil à Pompe", model = "models/Items/BoxBuckshot.mdl", price = 200, amountGiven = 8,
})
DarkRP.createAmmoType("smg1", { name = "Munitions de Mitraillette", model = "models/Items/BoxSRounds.mdl", price = 200, amountGiven = 30,
})
DarkRP.createAmmoType( "ar2", { name = "Munitions de Fusil d'Assault", model = "models/Items/BoxMRounds.mdl", price = 300, amountGiven = 30,
})
DarkRP.createAmmoType( "AirboatGun", { name = "Munitions de Winchester", model = "models/Items/sniper_round_box.mdl", price = 400, amountGiven = 30,
})
DarkRP.createAmmoType("SniperPenetratedRound", { name = "Munition de Sniper", model = "models/items/sniper_round_box.mdl", price = 500, amountGiven = 8,
})
Pris directement de mon serveur, elles doivent fonctionner, sinon c'est un problème au niveau du darkrpmodification, après je peux pas t'aider plus, j'ai pas le FTP ou plus d'informations.
 
DanyV

DanyV

Geek suprême
Messages
110
Score réaction
12
Points
115
C'est les BONNES ammo que je lui est passer il sorte de mon serveur c'est juste qu'il a un probleme dans son disable-default
 
  • Initiateur de la discussion
alilou901

alilou901

Geek suprême
Messages
238
Score réaction
34
Points
100
DanyV à dit:
C'est les BONNES ammo que je lui est passer il sorte de mon serveur c'est juste qu'il a un probleme dans son disable-default
Oui alors comment les activers ?
 
xLomble77

xLomble77

Psychopathe
Messages
2 191
Score réaction
348
Points
290
alilou901 à dit:
Oui alors comment les activers ?
Comme plusieurs précédemment réinstalle tout, sauvegarde tes métiers / entités / armes etc.. tu les replaceras.
 
Discord d'entraide
Rejoignz-nous sur Discord