If anybody could help out here, I would greatly appreciate it.
Everything is working except for ammo.
I have the addentities.lua file set up, and I can buy things like Money printers, but when I try to buy FS ammo, it says /buyammo or whatever in the chat and nothing appears. Any ideas?
I am including the entire addentities.lua file but the only part that isn't working is the AMMO, the ones below the guns etc.
Thanks in advance to any who can figure this out or fix it for me :P
[CODE]AddEntity("Drug Lab", {
ent = "drug_lab",
model = "models/props_lab/crematorcase.mdl",
price = 400,
max = 3,
cmd = "/buydruglab",
allowed = {TEAM_GANG, TEAM_MOB}
})
AddEntity("Money Printer", {
ent = "money_printer",
model = "models/props_c17/consolebox01a.mdl",
price = 1000,
max = 3,
cmd = "/buymoneyprinter"
})
AddEntity("Gun Lab", {
ent = "gunlab",
model = "models/props_c17/trappropeller_engine.mdl",
price = 500,
max = 1,
cmd = "/buygunlab",
allowed = TEAM_GUN
})
AddEntity("M9 Beretta", {
ent = "sim_fas_m9",
model = "models/weapons/a_m9.mdl",
price = 230,
max = 1,
cmd = "/buym9",
allowed = TEAM_GUN
})
AddEntity("M9 Beretta Silenced", {
ent = "sim_fas_m9s",
model = "models/weapons/b_92sup.mdl",
price = 270,
max = 1,
cmd = "/buym9s",
allowed = TEAM_BMD
})
AddEntity("Glock", {
ent = "sim_fas_glock20",
model = "models/weapons/a_glock20.mdl",
price = 210,
max = 1,
cmd = "/buyglock20",
allowed = TEAM_GUN
})
AddEntity("Machete", {
ent = "sim_fas_machete",
model = "models/weapons/a_machete.mdl",
price = 150,
max = 1,
cmd = "/buymachete",
allowed = TEAM_BMD
})
AddEntity("Desert Eagle", {
ent = "sim_fas_deagle",
model = "models/weapons/a_deserteagle.mdl",
price = 280,
max = 1,
cmd = "/buydeagle",
allowed = TEAM_BMD
})
AddEntity("M4A1 Rifle", {
ent = "sim_fas_m4carb",
model = "models/weapons/a_m4.mdl",
price = 500,
max = 1,
cmd = "/buym4",
allowed = TEAM_BMD
})
AddEntity("MP5", {
ent = "sim_fas_mp5",
model = "models/weapons/a_mp5.mdl",
price = 450,
max = 1,
cmd = "/buymp5",
allowed = TEAM_GUN
})
AddEntity("AK-47", {
ent = "sim_fas_ak47",
model = "models/weapons/a_ak47.mdl",
price = 580,
max = 1,
cmd = "/buyak",
allowed = TEAM_BMD
})
AddEntity("Famas", {
ent = "sim_fas_famas",
model = "models/weapons/a_famas.mdl",
price = 510,
max = 1,
cmd = "/buyfamas",
allowed = TEAM_BMD
})
AddEntity("Remington Shotgun", {
ent = "sim_fas_r870",
model = "models/weapons/a_870.mdl",
price = 400,
max = 1,
cmd = "/buy870",
allowed = TEAM_BMD
})
AddEntity("Sako Machine Gun", {
ent = "sim_fas_sako",
model = "models/weapons/a_sako.mdl",
price = 500,
max = 1,
cmd = "/buysako",
allowed = TEAM_BMD
})
AddEntity("9mm Ammo", {
ent = "sim_fas_ammo_9mm",
model = "models/items/357ammo.mdl",
price = 50,
max = 1,
cmd = "/buy9mm"
})
AddEntity("45acp Ammo", {
ent = "sim_ent_ammo_45acp",
model = "models/items/357ammo.mdl",
price = 55,
max = 1,
cmd = "/buy45"
})
AddEntity("7.62 Ammo", {
ent = "sim_ent_ammo_762nato",
model = "models/items/357ammo.mdl",
price = 70,
max = 1,
cmd = "/buy762"
})
AddEntity("50AE Ammo", {
ent = "sim_ent_ammo_50ae",
model = "models/items/357ammo.mdl",
price = 60,
max = 1,
cmd = "/buy50ae"
})
AddEntity("5.56 Ammo", {
ent = "sim_ent_ammo_556nato",
model = "models/items/357ammo.mdl",
price = 65,
max = 1,
cmd = "/buy556"
})
AddEntity("Buckshot", {
ent = "sim_ent_ammo_shotgun",
model = "models/items/357ammo.mdl",
price = 35,
max = 1,
cmd = "/buybuckshot"
})
AddEntity("All ammo", {
ent = "sim_ent_ammo_sampler_fas",
model = "models/items/item_item_crate.mdl",
price = 450,
max = 1,
cmd = "/buysampler"
})
-- ADD CUSTOM SHIPMENTS HERE(next line):
AddCustomShipment("Cigarettes", "models/boxopencigshib.mdl", "durgz_cigarette", 150, 10, false, 0, false, {TEAM_DRUG})
AddCustomShipment("Beer", "models/drug_mod/alcohol_can.mdl", "durgz_alcohol", 200, 10, false, 0, false, {TEAM_DRUG})
AddCustomShipment("Weed", "models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl", "durgz_weed", 400, 10, false, 0, false, {TEAM_DRUG})
AddCustomShipment("Heroine", "models/katharsmodels/syringe_out/syringe_out.mdl", "durgz_heroine", 250, 10, false, 0, false, {TEAM_DRUG})
AddCustomShipment("Cocaine", "models/cocn.mdl", "durgz_cocaine", 500, 10, false, 0, false, {TEAM_DRUG})
AddCustomShipment("Aspirin", "models/jaanus/aspbtl.mdl", "durgz_aspirin", 400, 10, false, 0, false, {TEAM_DRUG})
AddCustomShipment("LSD", "models/smile/smile.mdl", "durgz_lsd", 600, 10, false, 0, false, {TEAM_DRUG})
AddCustomShipment("Mushroom", "models/ipha/mushroom_small.mdl", "durgz_mushroom", 550, 10, false, 0, false, {TEAM_DRUG})[/CODE]
Mines pretty disorganized but here's what I did
added this to the ammotypes.lua in darkrp folder
[QUOTE]-- Pistol ammo type
GM:AddAmmoType("tenmmauto", "10mm automatic", "models/Items/BoxSRounds.mdl", 30, 30)
GM:AddAmmoType("fiftyae", ".50AE", "models/Items/BoxSRounds.mdl", 40, 30)
GM:AddAmmoType("fourtyfiveacp", ".45ACP", "models/Items/BoxSRounds.mdl", 40, 30)
GM:AddAmmoType("ninemmgerman", "9mm German", "models/Items/BoxSRounds.mdl", 40, 30)
GM:AddAmmoType("ninemmshort", "9mm Short", "models/Items/BoxSRounds.mdl", 40, 30)
GM:AddAmmoType("ninemmrussian", "9mm Russian", "models/Items/BoxSRounds.mdl", 40, 30)
-- grenade ammo
GM:AddAmmoType("fourtymmgrenade", "40mm Grenade", "models/Items/BoxSRounds.mdl", 400, 4)
-- ammo used by the shotguns
GM:AddAmmoType("shotgunshell", "12Guage Buckshot", "models/Items/BoxBuckshot.mdl", 50, 8)
-- Rifle ammo, usually used by assault rifles and faggots
GM:AddAmmoType("fivefivesix", "5.56NATO", "models/Items/BoxMRounds.mdl", 80, 30)
GM:AddAmmoType("sevensixtwobyfiftyone", "7.62NATO", "models/Items/BoxMRounds.mdl", 80, 30)
GM:AddAmmoType("sevensixtwoshort", "7.62Short", "models/Items/BoxMRounds.mdl", 80, 30)
GM:AddAmmoType("fiftybmg", ".50BMG", "models/Items/BoxMRounds.mdl", 100, 10)[/QUOTE]
Thank you! Works like a charm.[QUOTE=multch;39203025]Mines pretty disorganized but here's what I did
added this to the ammotypes.lua in darkrp folder[/QUOTE]
Sorry, you need to Log In to post a reply to this thread.