how do you add custom ammo to the f4 menu in gmod dark rp?
0 replies, posted
Ok so i have added the Customizeable Weaponry to the f4 menu i have all the attactchments to i just can get the ammo i have tryed to chane the ammo to pistol, smg, and rifle but i cant find out where so i have the custom weapon's ammo types just cant add them in the f4 menu. can someone help? I went to the main.lua and scripted this
[b]Code: [/b] [lua]if args ~= "rifle" and args ~= "shotgun" and args ~= "pistol"and args ~= "Ak47" and args ~= "AWP" and args ~= "Famas, Galil, m429, Sg550, sg552, Aug" and args ~= "Deagle" and args ~= "Five Seven" and args ~= "G3SG1" and args ~= "UMP" then
Notify(ply, 1, 4, string.format(LANGUAGE.unavailable, "ammo"))
end
if not ply:CanAfford(GetConVarNumber("ammo" .. args .. "cost")) then
Notify(ply, 1, 4, string.format(LANGUAGE.cant_afford, "ammo"))
return ""
end
if args == "Ak47" then
ply:GiveAmmo(80, "7.62x39mm")
elseif args == "shotgun" then
ply:GiveAmmo(50, "buckshot")
elseif args == "pistol" then
ply:GiveAmmo(50, "pistol")
elseif args == "AWP" then
ply:GiveAmmo(50, ".338 Lapua Magnum")
elseif args == "Deagle" then
ply:GiveAmmo(50, ".50AE")
elseif args == "Five Seven, p90" then
ply:GiveAmmo(50, "5.7x28MM")
elseif args == "Famas, Galil, m429, Sg550, sg552, Aug" then
ply:GiveAmmo(50, "5.56x45MM NATO")
elseif args == "G3SG1" then
ply:GiveAmmo(50, "7.62x51MM")
elseif args == "UMP" then
ply:GiveAmmo(50, "42. ACP")
end[/lua]
Sorry, you need to Log In to post a reply to this thread.