- Initiateur de la discussion
Skanov
Geek suprême
- Messages
- 68
- Score réaction
- 30
- Points
- 110
Bonsoir !
MUNITIONS
Ce fichier et à mettre dans → /srcds/garrysmod/addons/darkrpmodification/lua/darkrp_customthings/entities.lua
DarkRP.createEntity("M21 20 Round Mag (Extended Magazine)", {
ent = "fas2_att_m2120mag",
model = "models/Items/BoxMRounds.mdl",
price = 150,
max = 2,
cmd = "buym21",
allowed = {TEAM_MARCHANT},
})
DarkRP.createEntity("MP5k 30 Round Mag (Extended Magazine)", {
ent = "fas2_att_mp5k30mag",
model = "models/Items/BoxMRounds.mdl",
price = 150,
max = 2,
cmd = "buymp5k30mag",
allowed = {TEAM_MARCHANT},
})
DarkRP.createEntity("PSO-1 (Sight) ", {
ent = "fas2_att_pso1",
model = "models/Items/BoxMRounds.mdl",
price = 150,
max = 2,
cmd = "buypso1",
allowed = {TEAM_MARCHANT},
})
DarkRP.createEntity("SG55 30 Round Mag (Extended Magazine)", {
ent = "fas2_att_sg55x30mag",
model = "models/Items/BoxMRounds.mdl",
price = 150,
max = 2,
cmd = "buysg55mag",
allowed = {TEAM_MARCHANT},
})
DarkRP.createEntity("SKS 20 Round Mag (Extended Magazine)", {
ent = "fas2_att_sks20mag",
model = "models/Items/BoxMRounds.mdl",
price = 150,
max = 2,
cmd = "buysks20mag",
allowed = {TEAM_MARCHANT},
})
DarkRP.createEntity("SKS 30 Round Mag (Extended Magazine)", {
ent = "fas2_att_sks30mag",
model = "models/Items/BoxMRounds.mdl",
price = 150,
max = 2,
cmd = "buysks30mag",
allowed = {TEAM_MARCHANT},
})
DarkRP.createEntity("Suppressor (Attatchment)", {
ent = "fas2_att_suppressor",
model = "models/Items/BoxMRounds.mdl",
price = 150,
max = 2,
cmd = "buysuppressor",
allowed = {TEAM_MARCHANT},
})
DarkRP.createEntity("Tritium Sights (Pistol Iron Sights)", {
ent = "fas2_att_tritiumsights",
model = "models/Items/BoxMRounds.mdl",
price = 150,
max = 2,
cmd = "buytrit",
allowed = {TEAM_MARCHANT},
})
DarkRP.createEntity("Wooden Stock (UZI Only)", {
ent = "fas2_att_uziwoodenstock",
model = "models/Items/BoxMRounds.mdl",
price = 150,
max = 2,
cmd = "buystock",
allowed = {TEAM_MARCHANT},
})
DarkRP.createEntity("9x18 MM Ammo (60 Rounds)", {
ent = "fas2_ammo_9x18",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy9x18mm",
allowed = {TEAM_GUN},
})
DarkRP.createEntity("9x19 MM Ammo (40 Rounds)", {
ent = "fas2_ammo_9x19",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy9x19mm",
allowed = {TEAM_GUN},
})
DarkRP.createEntity("10x25 Ammo (60 Rounds)", {
ent = "fas2_ammo_10x25",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy10x25mm",
allowed = {TEAM_GUN},
})
DarkRP.createEntity("12 Gauge Ammo (16 Rounds)", {
ent = "fas2_ammo_12gauge",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy12gauge",
allowed = {TEAM_GUN},
})
DarkRP.createEntity("23x75MMR Ammo (20 Rounds)", {
ent = "fas2_ammo_23x75",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy23x75mmr",
allowed = {TEAM_GUN},
})
DarkRP.createEntity("40MM HE Ammo (10 Rounds)", {
ent = "fas2_ammo_40mm",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy40mmhe",
allowed = {TEAM_GUN},
})
DarkRP.createEntity(".44 Magnum Ammo (12 Rounds)", {
ent = "fas2_ammo_44mag",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy44magnumammo",
allowed = {TEAM_GUN},
})
DarkRP.createEntity(".45 ACP Ammo (30 Rounds)", {
ent = "fas2_ammo_45acp",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy45acpammo",
allowed = {TEAM_GUN},
})
DarkRP.createEntity(".50 AE Ammo (14 Rounds)", {
ent = "fas2_ammo_50ae",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy50aeammo",
allowed = {TEAM_GUN},
})
DarkRP.createEntity(".50 BMG Ammo (20 Rounds)", {
ent = "fas2_ammo_50bmg",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy50bmgammo",
allowed = {TEAM_GUN},
})
DarkRP.createEntity(".357 SIG Ammo (30 Rounds)", {
ent = "fas2_ammo_357sig",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy357sigammo",
allowed = {TEAM_GUN},
})
DarkRP.createEntity(".380 ACP Ammo (60 Rounds)", {
ent = "fas2_ammo_380acp",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy380acpammo",
allowed = {TEAM_GUN},
})
DarkRP.createEntity(".500 S&W Ammo (10 Rounds)", {
ent = "fas2_ammo_454casull",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy500swammo",
allowed = {TEAM_GUN},
})
DarkRP.createEntity("5.45x39MM Ammo (60 Rounds)", {
ent = "fas2_ammo_545x39",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy545x39ammo",
allowed = {TEAM_GUN},
})
DarkRP.createEntity("5.56x45MM Ammo (60 Rounds)", {
ent = "fas2_ammo_556x45",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy556x45ammo",
allowed = {TEAM_GUN},
})
DarkRP.createEntity("7.62x39MM Ammo (60 Rounds)", {
ent = "fas2_ammo_762x39",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy762x39ammo",
allowed = {TEAM_GUN},
})
DarkRP.createEntity("7.62x51MM Ammo (40 Rounds)", {
ent = "fas2_ammo_762x51",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy7651ammo",
allowed = {TEAM_GUN},
})
DarkRP.createEntity("M67 Grenades (12 Grenades)", {
ent = "fas2_ammo_m67",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buym27grenades",
allowed = {TEAM_GUN},
})
MUNITIONS
Ce fichier et à mettre dans → /srcds/garrysmod/addons/darkrpmodification/lua/darkrp_customthings/entities.lua
DarkRP.createEntity("M21 20 Round Mag (Extended Magazine)", {
ent = "fas2_att_m2120mag",
model = "models/Items/BoxMRounds.mdl",
price = 150,
max = 2,
cmd = "buym21",
allowed = {TEAM_MARCHANT},
})
DarkRP.createEntity("MP5k 30 Round Mag (Extended Magazine)", {
ent = "fas2_att_mp5k30mag",
model = "models/Items/BoxMRounds.mdl",
price = 150,
max = 2,
cmd = "buymp5k30mag",
allowed = {TEAM_MARCHANT},
})
DarkRP.createEntity("PSO-1 (Sight) ", {
ent = "fas2_att_pso1",
model = "models/Items/BoxMRounds.mdl",
price = 150,
max = 2,
cmd = "buypso1",
allowed = {TEAM_MARCHANT},
})
DarkRP.createEntity("SG55 30 Round Mag (Extended Magazine)", {
ent = "fas2_att_sg55x30mag",
model = "models/Items/BoxMRounds.mdl",
price = 150,
max = 2,
cmd = "buysg55mag",
allowed = {TEAM_MARCHANT},
})
DarkRP.createEntity("SKS 20 Round Mag (Extended Magazine)", {
ent = "fas2_att_sks20mag",
model = "models/Items/BoxMRounds.mdl",
price = 150,
max = 2,
cmd = "buysks20mag",
allowed = {TEAM_MARCHANT},
})
DarkRP.createEntity("SKS 30 Round Mag (Extended Magazine)", {
ent = "fas2_att_sks30mag",
model = "models/Items/BoxMRounds.mdl",
price = 150,
max = 2,
cmd = "buysks30mag",
allowed = {TEAM_MARCHANT},
})
DarkRP.createEntity("Suppressor (Attatchment)", {
ent = "fas2_att_suppressor",
model = "models/Items/BoxMRounds.mdl",
price = 150,
max = 2,
cmd = "buysuppressor",
allowed = {TEAM_MARCHANT},
})
DarkRP.createEntity("Tritium Sights (Pistol Iron Sights)", {
ent = "fas2_att_tritiumsights",
model = "models/Items/BoxMRounds.mdl",
price = 150,
max = 2,
cmd = "buytrit",
allowed = {TEAM_MARCHANT},
})
DarkRP.createEntity("Wooden Stock (UZI Only)", {
ent = "fas2_att_uziwoodenstock",
model = "models/Items/BoxMRounds.mdl",
price = 150,
max = 2,
cmd = "buystock",
allowed = {TEAM_MARCHANT},
})
DarkRP.createEntity("9x18 MM Ammo (60 Rounds)", {
ent = "fas2_ammo_9x18",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy9x18mm",
allowed = {TEAM_GUN},
})
DarkRP.createEntity("9x19 MM Ammo (40 Rounds)", {
ent = "fas2_ammo_9x19",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy9x19mm",
allowed = {TEAM_GUN},
})
DarkRP.createEntity("10x25 Ammo (60 Rounds)", {
ent = "fas2_ammo_10x25",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy10x25mm",
allowed = {TEAM_GUN},
})
DarkRP.createEntity("12 Gauge Ammo (16 Rounds)", {
ent = "fas2_ammo_12gauge",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy12gauge",
allowed = {TEAM_GUN},
})
DarkRP.createEntity("23x75MMR Ammo (20 Rounds)", {
ent = "fas2_ammo_23x75",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy23x75mmr",
allowed = {TEAM_GUN},
})
DarkRP.createEntity("40MM HE Ammo (10 Rounds)", {
ent = "fas2_ammo_40mm",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy40mmhe",
allowed = {TEAM_GUN},
})
DarkRP.createEntity(".44 Magnum Ammo (12 Rounds)", {
ent = "fas2_ammo_44mag",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy44magnumammo",
allowed = {TEAM_GUN},
})
DarkRP.createEntity(".45 ACP Ammo (30 Rounds)", {
ent = "fas2_ammo_45acp",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy45acpammo",
allowed = {TEAM_GUN},
})
DarkRP.createEntity(".50 AE Ammo (14 Rounds)", {
ent = "fas2_ammo_50ae",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy50aeammo",
allowed = {TEAM_GUN},
})
DarkRP.createEntity(".50 BMG Ammo (20 Rounds)", {
ent = "fas2_ammo_50bmg",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy50bmgammo",
allowed = {TEAM_GUN},
})
DarkRP.createEntity(".357 SIG Ammo (30 Rounds)", {
ent = "fas2_ammo_357sig",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy357sigammo",
allowed = {TEAM_GUN},
})
DarkRP.createEntity(".380 ACP Ammo (60 Rounds)", {
ent = "fas2_ammo_380acp",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy380acpammo",
allowed = {TEAM_GUN},
})
DarkRP.createEntity(".500 S&W Ammo (10 Rounds)", {
ent = "fas2_ammo_454casull",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy500swammo",
allowed = {TEAM_GUN},
})
DarkRP.createEntity("5.45x39MM Ammo (60 Rounds)", {
ent = "fas2_ammo_545x39",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy545x39ammo",
allowed = {TEAM_GUN},
})
DarkRP.createEntity("5.56x45MM Ammo (60 Rounds)", {
ent = "fas2_ammo_556x45",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy556x45ammo",
allowed = {TEAM_GUN},
})
DarkRP.createEntity("7.62x39MM Ammo (60 Rounds)", {
ent = "fas2_ammo_762x39",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy762x39ammo",
allowed = {TEAM_GUN},
})
DarkRP.createEntity("7.62x51MM Ammo (40 Rounds)", {
ent = "fas2_ammo_762x51",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buy7651ammo",
allowed = {TEAM_GUN},
})
DarkRP.createEntity("M67 Grenades (12 Grenades)", {
ent = "fas2_ammo_m67",
model = "models/Items/BoxMRounds.mdl",
price = 50,
max = 99,
cmd = "buym27grenades",
allowed = {TEAM_GUN},
})