• DarkRP Weapon Problems
    2 replies, posted
On my DarkRP server whenever I spawn weapons as any job I cant pick up the weapon. I have the entities file in: garrysmod/addons/darkrpmodification/lua/darkrp_customthings/entities.lua Here is the code for the entities: [CODE]/*--------------------------------------------------------------------------- /*--------------------------------------------------------------------------- DarkRP custom entities --------------------------------------------------------------------------- This file contains your custom entities. This file should also contain entities from DarkRP that you edited. Note: If you want to edit a default DarkRP entity, first disable it in darkrp_config/disabled_defaults.lua Once you've done that, copy and paste the entity to this file and edit it. The default entities can be found here: <TODO: INSERT URL HERE> Add entities under the following line: ---------------------------------------------------------------------------*/ AddEntity("Coolant Cell", { ent = "money_coolant_cell", model = "models/Items/battery.mdl", price = 2000, max = 2, cmd = "/coolantcell" }) AddEntity("Printer Upgrade", { ent = "money_printer_upgrade", model = "models/props_lab/box01a.mdl", price = 2000, max = 2, cmd = "/printerupgrade" }) AddEntity("Normal Money Printer", { ent = "money_normal_printer", model = "models/props_lab/reciever01a.mdl", price = 500, max = 2, cmd = "/normalprinter" }) AddEntity("Coal Money Printer", { ent = "money_coal_printer", model = "models/props_lab/reciever01a.mdl", price = 1000, max = 2, cmd = "/coalprinter" }) AddEntity("Ruby Money Printer", { ent = "money_ruby_printer", model = "models/props_lab/reciever01a.mdl", price = 2500, max = 2, cmd = "/rubyprinter" }) AddEntity("Sapphire Money Printer", { ent = "money_sapphire_printer", model = "models/props_lab/reciever01a.mdl", price = 5000, max = 2, cmd = "/sapphireprinter" }) AddEntity("Emerald Money Printer", { ent = "money_emerald_printer", model = "models/props_lab/reciever01a.mdl", price = 10000, max = 2, cmd = "/emeraldprinter" }) AddEntity("Diamond Money Printer", { ent = "money_diamond_printer", model = "models/props_lab/reciever01a.mdl", price = 25000, max = 2, cmd = "/diamondprinter" }) AddEntity("Pearl Money Printer", { ent = "money_pearl_printer", model = "models/props_lab/reciever01a.mdl", price = 50000, max = 2, cmd = "/pearlprinter" }) AddEntity("Platinum Money Printer", { ent = "money_platinum_printer", model = "models/props_lab/reciever01a.mdl", price = 75000, max = 2, cmd = "/platinumprinter" }) AddEntity("Black Money Printer", { ent = "money_black_printer", model = "models/props_lab/reciever01a.mdl", price = 125000, max = 2, cmd = "/blackprinter" }) AddEntity("White Money Printer", { ent = "money_white_printer", model = "models/props_lab/reciever01a.mdl", price = 200000, max = 2, cmd = "/whiteprinter" }) AddCustomShipment("Desert eagle", { model = "models/weapons/w_pist_deagle.mdl", entity = "cstm_pistol_deagle", price = 2500, amount = 10, seperate = true, pricesep = 700, noship = false, allowed = {TEAM_GUN, TEAM_PMD} }) AddCustomShipment("Fiveseven", { model = "models/weapons/w_pist_fiveseven.mdl", entity = "cstm_pistol_fiveseven", price = 1100, amount = 10, seperate = true, pricesep = 400, noship = false, allowed = {TEAM_GUN, TEAM_PMD} }) AddCustomShipment("Glock", { model = "models/weapons/w_pist_glock18.mdl", entity = "cstm_pistol_glock18", price = 2000, amount = 10, seperate = true, pricesep = 600, noship = false, allowed = {TEAM_GUN, TEAM_PMD} }) AddCustomShipment("P228", { model = "models/weapons/w_pist_p228.mdl", entity = "cstm_pistol_p228", price = 1500, amount = 10, seperate = true, pricesep = 400, noship = false, allowed = {TEAM_GUN, TEAM_PMD} }) AddCustomShipment("AK47", { model = "models/weapons/w_rif_ak47.mdl", entity = "cstm_rif_ak47", price = 5450, amount = 10, seperate = true, pricesep = 1200, noship = false, allowed = {TEAM_GUN, TEAM_PMD} }) AddCustomShipment("MP5", { model = "models/weapons/w_smg_mp5.mdl", entity = "cstm_smg_mp5", price = 4100, amount = 10, seperate = true, pricesep = 900, noship = false, allowed = {TEAM_GUN, TEAM_PMD} }) AddCustomShipment("Mac 10", { model = "models/weapons/w_smg_mac10.mdl", entity = "cstm_smg_mac10", price = 2500, amount = 10, seperate = true, pricesep = 800, noship = false, allowed = {TEAM_GUN, TEAM_PMD} }) AddCustomShipment("Pump shotgun", { model = "models/weapons/w_shot_m3super90.mdl", entity = "cstm_shotgun_m3", price = 4750, amount = 10, seperate = true, pricesep = 2000, noship = false, allowed = {TEAM_GUN, TEAM_PMD} }) AddCustomShipment("Auto shotgun", { model = "models/weapons/w_shot_xm1014.mdl", entity = "cstm_shotgun_xm1014", price = 5950, amount = 10, seperate = true, pricesep = 2500, noship = false, allowed = {TEAM_GUN, TEAM_PMD} }) AddCustomShipment("Sniper rifle", { model = "models/weapons/w_snip_scout.mdl", entity = "cstm_sniper_scout", price = 4550, amount = 10, seperate = true, pricesep = 2500, noship = false, allowed = {TEAM_GUN, TEAM_PMD} }) AddCustomShipment("Silenced Sniper rifle", { model = "models/weapons/w_snip_g3sg1.mdl", entity = "cstm_sniper_g3", price = 6750, amount = 10, seperate = true, pricesep = 2500, noship = false, allowed = {TEAM_GUN, TEAM_PMD} }) AddCustomShipment("AWP", { model = "models/weapons/w_snip_awp.mdl", entity = "cstm_sniper_awp", price = 12500, amount = 10, seperate = true, pricesep = 4500, noship = false, allowed = {TEAM_PBMD} }) AddCustomShipment("Famas", { model = "models/weapons/w_rif_famas.mdl", entity = "cstm_rif_famas", price = 6800, amount = 10, seperate = true, pricesep = 1600, noship = false, allowed = {TEAM_GUN, TEAM_PBMD} }) AddCustomShipment("UMP 45", { model = "models/weapons/w_smg_ump45.mdl", entity = "cstm_smg_ump45", price = 5500, amount = 10, seperate = true, pricesep = 1000, noship = false, allowed = {TEAM_PBMD} }) AddCustomShipment("P90", { model = "models/weapons/w_smg_p90.mdl", entity = "cstm_smg_p90", price = 5500, amount = 10, seperate = true, pricesep = 1000, noship = false, allowed = {TEAM_PBMD} }) AddCustomShipment("SIG-SG552", { model = "models/weapons/w_rif_sg552.mdl", entity = "cstm_sniper_sg552", price = 9500, amount = 10, seperate = true, pricesep = 3250, noship = false, allowed = {TEAM_PBMD} }) AddCustomShipment("Galil", { model = "models/weapons/w_rif_galil.mdl", entity = "cstm_rif_galil", price = 8650, amount = 10, seperate = true, pricesep = 2400, noship = false, allowed = {TEAM_GUN} }) AddCustomShipment("M249", { model = "models/weapons/w_mach_m249para.mdl", entity = "cstm_rif_m249", price = 8250, amount = 10, seperate = false, pricesep = nil, noship = false, allowed = {TEAM_BMD, TEAM_PBMD} }) AddCustomShipment("Phaseblaster Ammo", { model = "models/dynamite/dynamite.mdl", entity = "item_rpg_round", price = 2500, amount = 1, seperate = false, pricesep = nil, noship = false, allowed = {TEAM_BMD, TEAM_PBMD} }) AddCustomShipment("Lockpick", { model = "models/weapons/w_crowbar.mdl", entity = "lockpick", price = 1000, amount = 10, seperate = false, pricesep = nil, noship = false, allowed = {TEAM_BMD, TEAM_PBMD} }) AddCustomShipment("Fast Lockpick", { model = "models/weapons/w_crowbar.mdl", entity = "fast_lockpick", price = 3000, amount = 10, seperate = false, pricesep = nil, noship = false, allowed = {TEAM_PBMD} }) AddCustomShipment("Keypad Cracker", { model = "models/weapons/w_c4.mdl", entity = "keypad_cracker", price = 1500, amount = 10, seperate = false, pricesep = nil, noship = false, allowed = {TEAM_BMD, TEAM_PBMD} }) AddCustomShipment("Fast Keypad Cracker", { model = "models/weapons/w_c4.mdl",
the shipments needs to be in the shipments.lua of your darkrp modifications folder, not entities.lua also remove the random strings and function calls from them aswell.
Still doesn't work here is the shipments file: [CODE]/*--------------------------------------------------------------------------- /*--------------------------------------------------------------------------- DarkRP custom shipments and guns --------------------------------------------------------------------------- This file contains your custom shipments and guns. This file should also contain shipments and guns from DarkRP that you edited. Note: If you want to edit a default DarkRP shipment, first disable it in darkrp_config/disabled_defaults.lua Once you've done that, copy and paste the shipment to this file and edit it. The default shipments and guns can be found here: <TODO: INSERT URL HERE> For examples and explanation please visit this wiki page: http://wiki.darkrp.com/index.php/DarkRP:CustomShipmentFields Add shipments and guns under the following line: ---------------------------------------------------------------------------*/ AddCustomShipment("Desert eagle", { model = "models/weapons/w_pist_deagle.mdl", entity = "cstm_pistol_deagle", price = 2500, amount = 10, seperate = true, pricesep = 700, noship = false, allowed = {TEAM_GUN, TEAM_PMD} }) AddCustomShipment("Fiveseven", { model = "models/weapons/w_pist_fiveseven.mdl", entity = "cstm_pistol_fiveseven", price = 1100, amount = 10, seperate = true, pricesep = 400, noship = false, allowed = {TEAM_GUN, TEAM_PMD} }) AddCustomShipment("Glock", { model = "models/weapons/w_pist_glock18.mdl", entity = "cstm_pistol_glock18", price = 2000, amount = 10, seperate = true, pricesep = 600, noship = false, allowed = {TEAM_GUN, TEAM_PMD} }) AddCustomShipment("P228", { model = "models/weapons/w_pist_p228.mdl", entity = "cstm_pistol_p228", price = 1500, amount = 10, seperate = true, pricesep = 400, noship = false, allowed = {TEAM_GUN, TEAM_PMD} }) AddCustomShipment("AK47", { model = "models/weapons/w_rif_ak47.mdl", entity = "cstm_rif_ak47", price = 5450, amount = 10, seperate = true, pricesep = 1200, noship = false, allowed = {TEAM_GUN, TEAM_PMD} }) AddCustomShipment("MP5", { model = "models/weapons/w_smg_mp5.mdl", entity = "cstm_smg_mp5", price = 4100, amount = 10, seperate = true, pricesep = 900, noship = false, allowed = {TEAM_GUN, TEAM_PMD} }) AddCustomShipment("Mac 10", { model = "models/weapons/w_smg_mac10.mdl", entity = "cstm_smg_mac10", price = 2500, amount = 10, seperate = true, pricesep = 800, noship = false, allowed = {TEAM_GUN, TEAM_PMD} }) AddCustomShipment("Pump shotgun", { model = "models/weapons/w_shot_m3super90.mdl", entity = "cstm_shotgun_m3", price = 4750, amount = 10, seperate = true, pricesep = 2000, noship = false, allowed = {TEAM_GUN, TEAM_PMD} }) AddCustomShipment("Auto shotgun", { model = "models/weapons/w_shot_xm1014.mdl", entity = "cstm_shotgun_xm1014", price = 5950, amount = 10, seperate = true, pricesep = 2500, noship = false, allowed = {TEAM_GUN, TEAM_PMD} }) AddCustomShipment("Sniper rifle", { model = "models/weapons/w_snip_scout.mdl", entity = "cstm_sniper_scout", price = 4550, amount = 10, seperate = true, pricesep = 2500, noship = false, allowed = {TEAM_GUN, TEAM_PMD} }) AddCustomShipment("Silenced Sniper rifle", { model = "models/weapons/w_snip_g3sg1.mdl", entity = "cstm_sniper_g3", price = 6750, amount = 10, seperate = true, pricesep = 2500, noship = false, allowed = {TEAM_GUN, TEAM_PMD} }) AddCustomShipment("AWP", { model = "models/weapons/w_snip_awp.mdl", entity = "cstm_sniper_awp", price = 12500, amount = 10, seperate = true, pricesep = 4500, noship = false, allowed = {TEAM_PBMD} }) AddCustomShipment("Famas", { model = "models/weapons/w_rif_famas.mdl", entity = "cstm_rif_famas", price = 6800, amount = 10, seperate = true, pricesep = 1600, noship = false, allowed = {TEAM_GUN, TEAM_PBMD} }) AddCustomShipment("UMP 45", { model = "models/weapons/w_smg_ump45.mdl", entity = "cstm_smg_ump45", price = 5500, amount = 10, seperate = true, pricesep = 1000, noship = false, allowed = {TEAM_PBMD} }) AddCustomShipment("P90", { model = "models/weapons/w_smg_p90.mdl", entity = "cstm_smg_p90", price = 5500, amount = 10, seperate = true, pricesep = 1000, noship = false, allowed = {TEAM_PBMD} }) AddCustomShipment("SIG-SG552", { model = "models/weapons/w_rif_sg552.mdl", entity = "cstm_sniper_sg552", price = 9500, amount = 10, seperate = true, pricesep = 3250, noship = false, allowed = {TEAM_PBMD} }) AddCustomShipment("Galil", { model = "models/weapons/w_rif_galil.mdl", entity = "cstm_rif_galil", price = 8650, amount = 10, seperate = true, pricesep = 2400, noship = false, allowed = {TEAM_GUN} }) AddCustomShipment("M249", { model = "models/weapons/w_mach_m249para.mdl", entity = "cstm_rif_m249", price = 8250, amount = 10, seperate = false, pricesep = nil, noship = false, allowed = {TEAM_BMD, TEAM_PBMD} }) AddCustomShipment("Phaseblaster Ammo", { model = "models/dynamite/dynamite.mdl", entity = "item_rpg_round", price = 2500, amount = 1, seperate = false, pricesep = nil, noship = false, allowed = {TEAM_BMD, TEAM_PBMD} }) AddCustomShipment("Lockpick", { model = "models/weapons/w_crowbar.mdl", entity = "lockpick", price = 1000, amount = 10, seperate = false, pricesep = nil, noship = false, allowed = {TEAM_BMD, TEAM_PBMD} }) AddCustomShipment("Fast Lockpick", { model = "models/weapons/w_crowbar.mdl", entity = "fast_lockpick", price = 3000, amount = 10, seperate = false, pricesep = nil, noship = false, allowed = {TEAM_PBMD} }) AddCustomShipment("Keypad Cracker", { model = "models/weapons/w_c4.mdl", entity = "keypad_cracker", price = 1500, amount = 10, seperate = false, pricesep = nil, noship = false, allowed = {TEAM_BMD, TEAM_PBMD} }) AddCustomShipment("Fast Keypad Cracker", { model = "models/weapons/w_c4.mdl", entity = "fast_keypad_cracker", price = 3500, amount = 10, seperate = false, pricesep = nil, noship = false, allowed = {TEAM_PBMD} }) AddCustomShipment("PhaseBlaster", { model = "models/weapons/w_rocket_launcher.mdl", entity = "rp_gold_phaseblaster", price = 30000, amount = 1, seperate = false, pricesep = nil, noship = false, allowed = {TEAM_BMD, TEAM_PBMD} }) AddCustomShipment("Elite PhaseBlaster", { model = "models/weapons/w_rocket_launcher.mdl", entity = "rp_e_gold_phaseblaster", price = 60000, amount = 1, seperate = false, pricesep = nil, noship = false, allowed = {TEAM_PBMD} }) AddCustomShipment("PhaseTurtle", { model = "models/props/de_tides/vending_turtle.mdl", entity = "weapon_phaseturtle", price = 40000, amount = 5, seperate = false, pricesep = nil, noship = false, allowed = {TEAM_BMD, TEAM_PBMD} }) AddCustomShipment("Elite PhaseTurtle", { model = "models/props/de_tides/vending_turtle.mdl", entity = "weapon_elite_phaseturtle", price = 80000, amount = 5, seperate = false, pricesep = nil, noship = false, allowed = {TEAM_PBMD} }) AddCustomShipment("Health Charger", { model = "models/props/cs_office/microwave.mdl", entity = "ent_health_charger", price = 7500, amount = 1, seperate = false, pricesep = nil, noship = false, allowed = {TEAM_BMD, TEAM_PBMD} }) AddCustomShipment("Armor Charger", { model = "models/props/cs_office/microwave.mdl", entity = "ent_armor_charger", price = 7500, amount = 1, seperate = false, pricesep = nil, noship = false, allowed = {TEAM_BMD, TEAM_PBMD} }) AddCustomShipment("Elite Health Charger", { model = "models/props/cs_office/microwave.mdl", entity = "ent_health_charger_elite", price = 12500, amount = 1, seperate = false, pricesep = nil, noship = false, allowed = {TEAM_PBMD} }) AddCustomShipment("Elite Armor Charger", { model = "models/props/cs_office/microwave.mdl", entity = "ent_armor_charger_elite", price = 12500, amoun
Sorry, you need to Log In to post a reply to this thread.