jesserocks3357 / darkrp

Automatically exported from code.google.com/p/darkrp
0 stars 1 forks source link

No Entities in F4 Menu #571

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What is the problem?
When I added new jobs and shipments to the addentities.lua and shared.lua, I 
see nothing in the entities.

What steps will reproduce the problem?
Re-installing DarkRP 2.4.2 onto server with default settings.

Do you have any errors? serverside or clientside? If you do, which ones?
NONE at all

Are you using the downloaded version or an SVN revision (if SVN, which
revision number)?
SVN Verison. I think its 846

Please provide any additional information below.
I've added some pictures and code from the shared.lua and addentities.lua.

Shared.lua I.E.

TEAM_HITMAN = 
AddExtraTeam("Hitman",Color(0,255,0,255),"models/player/guerilla.mdl",[[ As 
hitman you kill people for money
but don´t kill random or u get kicked or banned.]],{"weapon_mad_cs_scout", 
"weapon_buddyfinder"},"hitman",2,45,0, true, false)

TEAM_GUARD = 
AddExtraTeam("Guard",Color(0,120,255,255),"models/player/odessa.mdl",[[ As a 
Guard you have to
defend people or buildings. Preferably for cash
and dont rdm.]],{"weapon_real_cs_p228", "weapon_buddyfinder"},"Guard",4,40,0, 
true, false)

TEAM_SWAT = 
AddExtraTeam("SWAT",Color(0,120,255,255),"models/player/urban.mdl",[[ AS a SWAT 
you
fight for the law.
sometimes you are the last chance
of the police. Abusing this job = ]],{"weapon_m4", "arrest_stick", 
"unarrest_stick", "stunstick", "door_ram", "weaponchecker", "weapon_glock", 
"weapon_buddyfinder"},"SWAT",2,85,0,true, true)

TEAM_BANKER = 
AddExtraTeam("Banker",Color(1,33,100,255),"models/player/hostage/hostage_03.mdl"
,[[ You take care of the bank and store peoples money printers,
 Abusing this job will lead to a ban.]],{"weapon_buddyfinder"},"Banker",2,50,0, false, false)

TEAM_DRUG = AddExtraTeam("Drug Dealer", Color(141, 0, 141, 255), 
"models/player/soldier_stripped.mdl", [[The Drug Dealer
One of the criminal guys in town, He sells drugs...
You'll probably find this guy down the streets
Try to stay away from the cp's. ]], {"weapon_buddyfinder"}, "drugdealer", 3, 
30, 0, false, false)

TEAM_SWAT_LEADER = AddExtraTeam("SWAT Leader", 
Color(13,78,23,255),"models/player/swat.mdl", [[Lead the S.W.A.T. Team and stop 
the Criminals, give your men the orders. Abusing this job = 
Ban,]], 
{"weapon_deagle","weapon_pumpshotgun","door_ram","stunstick","unarrest_stick","a
rrest_stick", "weapon_buddyfinder"}, "leader", 1, 95, 0, true, true)

TEAM_SWAT_SNIPER = AddExtraTeam("SWAT Sniper", 
Color(51,53,23,255),"models/player/riot.mdl", [[Be a sniper and help your team, 
but follow your leaders orders. Abusing this job = Ban]], 
{"ls_sniper","weapon_glock2","talk", "weapon_buddyfinder"}, "sniper", 1, 90, 0, 
true, true)

Addentities.lua I.E.

AddCustomShipment("Weed", 
"models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl", "durgz_weed", 400, 10, 
true, 400, false, {TEAM_DRUG})
AddCustomShipment("Heroine", 
"models/katharsmodels/syringe_out/syringe_out.mdl", "durgz_heroine", 1000, 10, 
true, 1000, false, {TEAM_DRUG})
AddCustomShipment("LSD", "models/smile/smile.mdl", "durgz_lsd", 1500, 10, true, 
1500, false, {TEAM_DRUG})
AddCustomShipment("Magic Mushrooms", "models/ipha/mushroom_small.mdl", 
"durgz_mushroom", 1510, 10, true, 1510, false, {TEAM_DRUG})
AddCustomShipment("Cocaine", "models/cocn.mdl", "durgz_cocaine", 3000, 10, 
true, 3000, false, {TEAM_DRUG, TEAM_BLACK})
AddCustomShipment("aspirin", "addons/DurgzMod/models/jaanus/aspbtl.mdl", 
"durgz_aspirin", 360, 10, true, 150, false, {TEAM_DRUG})

Now here are some SS

Original issue reported on code.google.com by bulldogg...@gmail.com on 5 Apr 2011 at 4:37

Attachments:

GoogleCodeExporter commented 9 years ago
Try 
rp_restrictbuypistol 0

and
rp_noguns 0

That's probably it.

Original comment by fpeijnen...@gmail.com on 5 Apr 2011 at 8:07

GoogleCodeExporter commented 9 years ago
No its none of those, I have already checked that before I posted this

Original comment by bulldogg...@gmail.com on 5 Apr 2011 at 10:11

GoogleCodeExporter commented 9 years ago
You do have an error, next time make sure you check your console, Falco could 
have helped you if you provided the error which was:

The model of shipment aspirin is incorrect! can not create custom shipment!

So we look at aspirin, it's the only model you include addons in, why?

Replace your aspirin line with this:

AddCustomShipment("aspirin", "models/jaanus/aspbtl.mdl", "durgz_aspirin", 360, 
10, true, 150, false, {TEAM_DRUG})

~rokrox

Original comment by rokro...@gmail.com on 10 Apr 2011 at 2:38

GoogleCodeExporter commented 9 years ago
No that hasnt fixed it either, just tried and nothing..

Original comment by bulldogg...@gmail.com on 12 Apr 2011 at 12:40

GoogleCodeExporter commented 9 years ago
Worked fine when I tested it, post all the custom shipments from addentities 
with the updated line I gave you.

Original comment by rokro...@gmail.com on 12 Apr 2011 at 9:58

GoogleCodeExporter commented 9 years ago
Works fine for everyone else.

Original comment by fpeijnen...@gmail.com on 12 Apr 2011 at 7:01

GoogleCodeExporter commented 9 years ago
Here are all shipments and entities

AddCustomShipment("Desert eagle", "models/weapons/w_pist_deagle.mdl", 
"weapon_deagle2", 215, 10, true, 215, true, {TEAM_GUN})
AddCustomShipment("Fiveseven", "models/weapons/w_pist_fiveseven.mdl", 
"weapon_fiveseven2", 0, 10, true, 205, true, {TEAM_GUN})
AddCustomShipment("Glock", "models/weapons/w_pist_glock18.mdl", 
"weapon_glock2", 0, 10, true, 160, true, {TEAM_GUN})
AddCustomShipment("P228", "models/weapons/w_pist_p228.mdl", "weapon_p2282", 0, 
10, true, 185, true, {TEAM_GUN})

AddCustomShipment("AK47", "models/weapons/w_rif_ak47.mdl", "weapon_ak472", 
2450, 10, false, nil, false, {TEAM_GUN}) 
AddCustomShipment("MP5", "models/weapons/w_smg_mp5.mdl", "weapon_mp52", 2200, 
10, false, nil, false, {TEAM_GUN}) 
AddCustomShipment("M4", "models/weapons/w_rif_m4a1.mdl", "weapon_m42", 2450, 
10, false, nil, false, {TEAM_GUN}) 
AddCustomShipment("Mac 10", "models/weapons/w_smg_mac10.mdl", "weapon_mac102", 
2150, 10, false, nil, false, {TEAM_GUN}) 
AddCustomShipment("Pump shotgun", "models/weapons/w_shot_m3super90.mdl", 
"weapon_pumpshotgun2", 1750, 10, false, nil, false, {TEAM_GUN}) 
AddCustomShipment("Sniper rifle", "models/weapons/w_snip_g3sg1.mdl", 
"ls_sniper", 3750, 10, false, nil, false, {TEAM_GUN, TEAM_BLACK}) 

AddEntity("Drug lab", "drug_lab", "models/props_lab/crematorcase.mdl", 400, 3, 
"/buydruglab", {TEAM_GANG, TEAM_MOB})
AddEntity("Money printer", "money_printer", 
"models/props_c17/consolebox01a.mdl", 1000, 2, "/buymoneyprinter")
AddEntity("Microwave", "microwave", "models/props/cs_office/microwave.mdl", 
400, 1, "/buymicrowave", TEAM_COOK)
AddEntity("Gun lab", "gunlab", "models/props_c17/TrapPropeller_Engine.mdl", 
500, 1, "/buygunlab", TEAM_GUN)

-- CS:S Weapons:
AddCustomShipment("M249", "models/weapons/w_mach_m249para.mdl", 
"weapon_mad_m249", 18000, 10, false, 0, true, {TEAM_BLACK})
AddCustomShipment("Galil", "models/weapons/w_rif_galil.mdl", 
"weapon_mad_galil", 12000, 10, false, 0, true, {TEAM_GUN, TEAM_BLACK})
AddCustomShipment("AK47", "models/weapons/w_rif_ak47.mdl", "weapon_mad_ak47", 
12000, 10, false, 0, false, {TEAM_GUN, TEAM_BLACK})
AddCustomShipment("M4A1", "models/weapons/w_rif_m4a1.mdl", "weapon_mad_m4", 
9900, 10, false, 0, false, {TEAM_GUN, TEAM_BLACK})
AddCustomShipment("Famas", "models/weapons/w_rif_famas.mdl", 
"weapon_mad_famas", 9900, 10, false, 0, false, {TEAM_GUN, TEAM_BLACK})
AddCustomShipment("AWP", "models/weapons/w_snip_awp.mdl", "weapon_mad_awp", 
15000, 10, false, 0, false, {TEAM_BLACK})
AddCustomShipment("Scout", "models/weapons/w_snip_scout.mdl", 
"weapon_mad_scout", 1100, 10, false, 0, false, {TEAM_GUN, TEAM_BLACK})
AddCustomShipment("Steyr Aug", "models/weapons/w_rif_aug.mdl", 
"weapon_mad_aug", 12000, 10, false, 0, false, {TEAM_GUN, TEAM_BLACK})
AddCustomShipment("SG552", "models/weapons/w_rif_sg552.mdl", 
"weapon_mad_sg552", 12000, 10, false, 0, false, {TEAM_BLACK})
AddCustomShipment("G3SG1", "models/weapons/w_snip_g3sg1.mdl", "weapon_mad_g3", 
12000, 10, false, 0, false, {TEAM_BLACK})
AddCustomShipment("SG550", "models/weapons/w_snip_sg550.mdl", 
"weapon_mad_sg550", 12000, 10, false, 0, false, {TEAM_GUN, TEAM_BLACK})
AddCustomShipment("UMP45", "models/weapons/w_smg_ump45.mdl", "weapon_mad_ump", 
10800, 10, false, 0, false, {TEAM_GUN, TEAM_BLACK})
AddCustomShipment("P90", "models/weapons/w_smg_p90.mdl", "weapon_mad_p90", 
10500, 10, false, 0, false, {TEAM_GUN, TEAM_BLACK})
AddCustomShipment("TMP", "models/weapons/w_smg_tmp.mdl", "weapon_mad_tmp", , 
10500, false, 0, false, {TEAM_GUN, TEAM_BLACK})
AddCustomShipment("MP5", "models/weapons/w_smg_mp5.mdl", "weapon_mad_mp5", 
9600, 10, false, 0, false, {TEAM_GUN, TEAM_BLACK})
AddCustomShipment("Mac-10", "models/weapons/w_smg_mac10.mdl", 
"weapon_mad_mac10", 9000, 10, false, 0, false, {TEAM_GUN, TEAM_BLACK})
AddCustomShipment("AutoShotgun", "models/weapons/w_shot_xm1014.mdl", 
"weapon_mad_xm1014", 9000, 10, false, 0, false, {TEAM_BLACK})
AddCustomShipment("Shotgun", "models/weapons/w_shot_m3super90.mdl", 
"weapon_mad_m3", 8000, 10, false, 0, false, {TEAM_GUN, TEAM_BLACK})
AddCustomShipment("Grenade", "models/weapons/w_eq_fraggrenade.mdl", 
"weapon_mad_grenade", 15000, 10, false, 0, false, {TEAM_GUN, TEAM_BLACK})
AddCustomShipment("Dual Elites", "models/weapons/w_pist_elite_dropped.mdl", 
"weapon_mad_dual", 500, 10, false, 250, false, {TEAM_BLACK})
AddCustomShipment("Deagle", "models/weapons/w_pist_deagle.mdl", 
"weapon_mad_deagle", 2300, 10, true, 1150, false, {TEAM_GUN, TEAM_BLACK})
AddCustomShipment("USP", "models/weapons/w_pist_usp.mdl", "weapon_mad_usp", 
2200, 10, true, 1100, , {TEAM_GUN, TEAM_BLACK})
AddCustomShipment("P228", "models/weapons/w_pist_p228.mdl", "weapon_mad_p228", 
2100, 10, true, 1050, false, {TEAM_GUN, TEAM_BLACK})
AddCustomShipment("Five-Seven", "models/weapons/w_pist_fiveseven.mdl", 
"weapon_mad_57", 1900, 10, true, 950, false, {TEAM_GUN, TEAM_BLACK})

-- Half life 2 weapons:
AddCustomShipment("AR2", "models/weapons/w_irifle.mdl", "weapon_mad_ar2", 
12000, 10, false, 0, false, {TEAM_BLACK})
AddCustomShipment("MP7", "models/weapons/w_smg1.mdl", "weapon_mad_mp7", 1500, 
10, false, 0, false, {TEAM_BLACK})
AddCustomShipment("Spas-12", "models/weapons/w_shotgun.mdl", "weapon_mad_spas", 
1100, 10, false, 0, false, {TEAM_BLACK})
AddCustomShipment("Alyx Gun", "models/weapons/w_alyx_gun_2.mdl", 
"weapon_mad_alyxgun", 2500, 10, false, 260, false, {TEAM_GUN, TEAM_BLACK})
AddCustomShipment("Pistol", "models/weapons/w_pistol.mdl", 
"weapon_mad_usp_match", 1800, 10, false, 190, false, {TEAM_GUN})

-- Other:
AddCustomShipment("Medic kit", "models/items/w_medkit.mdl", "weapon_mad_medic", 
2300, 10, false, 0, false, {TEAM_GUN, TEAM_MEDIC})

-- Insane weapons: (Remove the "--" at the start of each to activate)
AddCustomShipment("Grenade launcher", "models/weapons/w_shotgun.mdl", 
"weapon_mad_grenadelauncher", 30000, 15, false, 0, false, {TEAM_BLACK})
-- AddCustomShipment("Rocket launcher", "models/weapons/w_rocket_launcher.mdl", 
"weapon_mad_rpg", 40000, 10, false, 0, false, {TEAM_GUN})
-- AddCustomShipment("C4 Explosive", "models/weapons/w_c4_planted.mdl", 
"weapon_mad_c4", 60000, 10, true, 7000, true, {TEAM_GUN})
AddCustomShipment("Mine", "models/props_combine/combine_mine01.mdl", 
"weapon_mad_mine", 60000, 10, false, 7000, false, {TEAM_BLACK})

AddCustomShipment("water", "models/drug_mod/the_bottle_of_water.mdl", 
"durgz_water", 10, 15, true, 10, true, {TEAM_DRUG, TEAM_bar})
AddCustomShipment("Cigarettes", "models/boxopencigshib.mdl", "durgz_cigarette", 
150, 10, true, 150, false, {TEAM_DRUG})
AddCustomShipment("beer", "models/drug_mod/alcohol_can.mdl", "durgz_alcohol", 
300, 10, true, 300, false, {TEAM_DRUG, TEAM_bar})
AddCustomShipment("Weed", 
"models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl", "durgz_weed", 400, 10, 
true, 400, false, {TEAM_DRUG})
AddCustomShipment("Heroine", 
"models/katharsmodels/syringe_out/syringe_out.mdl", "durgz_heroine", 1000, 10, 
true, 1000, false, {TEAM_DRUG})
AddCustomShipment("LSD", "models/smile/smile.mdl", "durgz_lsd", 1500, 10, true, 
1500, false, {TEAM_DRUG})
AddCustomShipment("Magic Mushrooms", "models/ipha/mushroom_small.mdl", 
"durgz_mushroom", 1510, 10, true, 1510, false, {TEAM_DRUG})
AddCustomShipment("Cocaine", "models/cocn.mdl", "durgz_cocaine", 3000, 10, 
true, 3000, false, {TEAM_DRUG, TEAM_BLACK})
AddCustomShipment("aspirin", "models/jaanus/aspbtl.mdl", "durgz_aspirin", 360, 
10, true, 150, false, {TEAM_DRUG})

Original comment by bulldogg...@gmail.com on 12 Apr 2011 at 11:15