Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- 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})
- 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)
- /*
- How to add custom vehicles:
- FIRST
- go ingame, type rp_getvehicles for available vehicles!
- then:
- AddCustomVehicle(<One of the vehicles from the rp_getvehicles list>, <Price of the vehicle>, <OPTIONAL jobs that can buy the vehicle>)
- Examples:
- AddCustomVehicle("Jeep", "models/buggy.mdl", 100 )
- AddCustomVehicle("Airboat", "models/airboat.mdl" 600, {TEAM_GUN})
- AddCustomVehicle("Airboat", "models/airboat.mdl", 600, {TEAM_GUN, TEAM_MEDIC})
- Add those lines under your custom shipments. At the bottom of this file or in data/CustomShipments.txt
- HOW TO ADD CUSTOM SHIPMENTS:
- AddCustomShipment("<Name of the shipment(no spaces)>"," <the model that the shipment spawns(should be the world model...)>", "<the classname of the weapon>", <the price of one shipment>, <how many guns there are in one shipment>, <OPTIONAL: true/false sold seperately>, <OPTIONAL: price when sold seperately>, < true/false OPTIONAL: /buy only = true> , OPTIONAL which classes can buy the shipment, OPTIONAL: the model of the shipment)
- Notes:
- MODEL: you can go to Q and then props tab at the top left then search for w_ and you can find all world models of the weapons!
- CLASSNAME OF THE WEAPON
- there are half-life 2 weapons you can add:
- weapon_pistol
- weapon_smg1
- weapon_ar2
- weapon_rpg
- weapon_crowbar
- weapon_physgun
- weapon_357
- weapon_crossbow
- weapon_slam
- weapon_bugbait
- weapon_frag
- weapon_physcannon
- weapon_shotgun
- gmod_tool
- But you can also add the classnames of Lua weapons by going into the weapons/ folder and look at the name of the folder of the weapon you want.
- Like the player possessor swep in addons/Player Possessor/lua/weapons You see a folder called weapon_posessor
- This means the classname is weapon_posessor
- YOU CAN ADD ITEMS/ENTITIES TOO! but to actually make the entity you have to press E on the thing that the shipment spawned, BUT THAT'S OK!
- YOU CAN MAKE GUNDEALERS ABLE TO SELL MEDKITS!
- true/false: Can the weapon be sold seperately?(with /buy name) if you want yes then say true else say no
- the price of sold seperate is the price it is when you do /buy name. Of course you only have to fill this in when sold seperate is true.
- EXAMPLES OF CUSTOM SHIPMENTS(remove the // to activate it): */
- //AddCustomShipment("HL2pistol", "models/weapons/W_pistol.mdl", "weapon_pistol", 500, 10, false, 200, false, {TEAM_GUN, TEAM_MEDIC})
- --EXAMPLE OF AN ENTITY(in this case a medkit)
- --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, false, 10, false, {TEAM_GUN}, "models/props_c17/oildrum001_explosive.mdl")
- --EXAMPLE OF A BOUNCY BALL: NOTE THAT YOU HAVE TO PRESS E REALLY QUICKLY ON THE BOMB OR YOU'LL EAT THE BALL LOL
- --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, true, 10, true)
- -- ADD CUSTOM SHIPMENTS HERE(next line):
- -- CS:S Weapons:
- AddCustomShipment("M249", "models/weapons/w_mach_m249para.mdl", "weapon_mad_m249", 6000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Galil", "models/weapons/w_rif_galil.mdl", "weapon_mad_galil", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("AK47", "models/weapons/w_rif_ak47.mdl", "weapon_mad_ak47", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("M4A1", "models/weapons/w_rif_m4a1.mdl", "weapon_mad_m4", 3900, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Famas", "models/weapons/w_rif_famas.mdl", "weapon_mad_famas", 3900, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("AWP", "models/weapons/w_snip_awp.mdl", "weapon_mad_awp", 5000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Scout", "models/weapons/w_snip_scout.mdl", "weapon_mad_scout", 4500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Steyr Aug", "models/weapons/w_rif_aug.mdl", "weapon_mad_aug", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("SG552", "models/weapons/w_rif_sg552.mdl", "weapon_mad_sg552", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("G3SG1", "models/weapons/w_snip_g3sg1.mdl", "weapon_mad_g3", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("SG550", "models/weapons/w_snip_sg550.mdl", "weapon_mad_sg550", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("UMP45", "models/weapons/w_smg_ump45.mdl", "weapon_mad_ump", 3600, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("P90", "models/weapons/w_smg_p90.mdl", "weapon_mad_p90", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("TMP", "models/weapons/w_smg_tmp.mdl", "weapon_mad_tmp", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("MP5", "models/weapons/w_smg_mp5.mdl", "weapon_mad_mp5", 3200, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Mac-10", "models/weapons/w_smg_mac10.mdl", "weapon_mad_mac10", 3000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("AutoShotgun", "models/weapons/w_shot_xm1014.mdl", "weapon_mad_xm1014", 3000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Shotgun", "models/weapons/w_shot_m3super90.mdl", "weapon_mad_m3", 2500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Grenade", "models/weapons/w_eq_fraggrenade.mdl", "weapon_mad_grenade", 15000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Flash", "models/weapons/w_eq_flashbang_thrown.mdl", "weapon_mad_flash", 2000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Smoke", "models/weapons/w_eq_smokegrenade.mdl", "weapon_mad_smoke", 2000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Dual Elites", "models/weapons/w_pist_elite_dropped.mdl", "weapon_mad_dual", 2300, 10, true, 250, false, {TEAM_GUN})
- AddCustomShipment("Deagle", "models/weapons/w_pist_deagle.mdl", "weapon_mad_deagle", 2300, 10, true, 250, false, {TEAM_GUN})
- AddCustomShipment("USP", "models/weapons/w_pist_usp.mdl", "weapon_mad_usp", 2200, 10, true, 240, false, {TEAM_GUN})
- AddCustomShipment("P228", "models/weapons/w_pist_p228.mdl", "weapon_mad_p228", 2100, 10, true, 220, false, {TEAM_GUN})
- AddCustomShipment("Five-Seven", "models/weapons/w_pist_fiveseven.mdl", "weapon_mad_57", 1900, 10, true, 200, false, {TEAM_GUN})
- -- Half life 2 weapons:
- AddCustomShipment("AR2", "models/weapons/w_irifle.mdl", "weapon_mad_ar2", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("MP7", "models/weapons/w_smg1.mdl", "weapon_mad_mp7", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Spas-12", "models/weapons/w_shotgun.mdl", "weapon_mad_spas", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Alyx Gun", "models/weapons/w_alyx_gun_2.mdl", "weapon_mad_alyxgun", 2500, 10, true, 260, false, {TEAM_GUN})
- AddCustomShipment("Pistol", "models/weapons/w_pistol.mdl", "weapon_mad_usp_match", 1800, 10, true, 190, false, {TEAM_GUN})
- -- Other:
- AddCustomShipment("Flare gun", "models/weapons/w_pistol.mdl", "weapon_mad_flare", 1600, 10, false, 0, false, {TEAM_GUN})
- 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", 20000, 10, false, 0, false, {TEAM_GUN})
- -- 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, true, 7000, true, {TEAM_GUN})
- CustomShipments = {}
- function AddCustomShipment(name, model, entity, price, Amount_of_guns_in_one_shipment, Sold_seperately, price_seperately, noshipment, classes, shipmodel)
- if not name or not model or not entity or not price or not Amount_of_guns_in_one_shipment or (Sold_seperately and not price_seperately) then
- local text = "One of the custom shipments is wrongly made! Attempt to give name of the wrongly made shipment!(if it's nil then I failed):\n" .. tostring(name)
- print(text)
- hook.Add("PlayerSpawn", "ShipmentError", function(ply)
- if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)
- return
- end
- if not util.IsValidModel(model) then
- local text = "The model of shipment "..name.." is incorrect! cannot create custom shipment!"
- print(text)
- hook.Add("PlayerSpawn", "ShipmentError", function(ply)
- if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)
- return
- end
- local AllowedClasses = classes or {} // if classes isn't entered then only the Gundealer can buy them.
- local price = tonumber(price)
- local shipmentmodel = shipmodel or "models/Items/item_item_crate.mdl"
- table.insert(CustomShipments, {name = name, model = model, entity = entity, price = price, weight = 5, amount = Amount_of_guns_in_one_shipment, seperate = Sold_seperately, pricesep = price_seperately, noship = noshipment, allowed = AllowedClasses, shipmodel = shipmentmodel})
- end
- /*
- HOW TO ADD CUSTOM SHIPMENTS:
- AddCustomShipment("<Name of the shipment(no spaces)>"," <the model that the shipment spawns(should be the world model...)>", "<the classname of the weapon>", <the price of one shipment>, <how many guns there are in one shipment>, <OPTIONAL: true/false sold seperately>, <OPTIONAL: price when sold seperately>, < true/false OPTIONAL: /buypistol only = true> , OPTIONAL which classes can buy the shipment, OPTIONAL: the model of the shipment)
- Notes:
- MODEL: you can go to Q and then props tab at the top left then search for w_ and you can find all world models of the weapons!
- CLASSNAME OF THE WEAPON
- there are half-life 2 weapons you can add:
- weapon_pistol
- weapon_smg1
- weapon_ar2
- weapon_rpg
- weapon_crowbar
- weapon_physgun
- weapon_357
- weapon_crossbow
- weapon_slam
- weapon_bugbait
- weapon_frag
- weapon_physcannon
- weapon_shotgun
- gmod_tool
- But you can also add the classnames of Lua weapons by going into the weapons/ folder and look at the name of the folder of the weapon you want.
- Like the player possessor swep in addons/Player Possessor/lua/weapons You see a folder called weapon_posessor
- This means the classname is weapon_posessor
- YOU CAN ADD ITEMS/ENTITIES TOO! but to actually make the entity you have to press E on the thing that the shipment spawned, BUT THAT'S OK!
- YOU CAN MAKE GUNDEALERS ABLE TO SELL MEDKITS!
- true/false: Can the weapon be sold seperately?(with /buypistol name) if you want yes then say true else say no
- the price of sold seperate is the price it is when you do /buypistol name. Of course you only have to fill this in when sold seperate is true.
- EXAMPLES OF CUSTOM SHIPMENTS(remove the -- to activate it): */
- //AddCustomShipment("HL2pistol", "models/weapons/W_pistol.mdl", "weapon_pistol", 500, 10, false, 200, false, {TEAM_GUN, TEAM_MEDIC})
- --EXAMPLE OF AN ENTITY(in this case a medkit)
- --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, false, 10, false, {TEAM_GUN}, "models/props_c17/oildrum001_explosive.mdl")
- --EXAMPLE OF A BOUNCY BALL: NOTE THAT YOU HAVE TO PRESS E REALLY QUICKLY ON THE BOMB OR YOU'LL EAT THE BALL LOL
- --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, true, 10, true)
- -- ADD CUSTOM SHIPMENTS HERE(next line):
- -- CS:S Weapons:
- AddCustomShipment("M249", "models/weapons/w_mach_m249para.mdl", "weapon_mad_m249", 6000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Galil", "models/weapons/w_rif_galil.mdl", "weapon_mad_galil", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("AK47", "models/weapons/w_rif_ak47.mdl", "weapon_mad_ak47", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("M4A1", "models/weapons/w_rif_m4a1.mdl", "weapon_mad_m4", 3900, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Famas", "models/weapons/w_rif_famas.mdl", "weapon_mad_famas", 3900, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("AWP", "models/weapons/w_snip_awp.mdl", "weapon_mad_awp", 5000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Scout", "models/weapons/w_snip_scout.mdl", "weapon_mad_scout", 4500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Steyr Aug", "models/weapons/w_rif_aug.mdl", "weapon_mad_aug", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("SG552", "models/weapons/w_rif_sg552.mdl", "weapon_mad_sg552", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("G3SG1", "models/weapons/w_snip_g3sg1.mdl", "weapon_mad_g3", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("SG550", "models/weapons/w_snip_sg550.mdl", "weapon_mad_sg550", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("UMP45", "models/weapons/w_smg_ump45.mdl", "weapon_mad_ump", 3600, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("P90", "models/weapons/w_smg_p90.mdl", "weapon_mad_p90", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("TMP", "models/weapons/w_smg_tmp.mdl", "weapon_mad_tmp", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("MP5", "models/weapons/w_smg_mp5.mdl", "weapon_mad_mp5", 3200, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Mac-10", "models/weapons/w_smg_mac10.mdl", "weapon_mad_mac10", 3000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("AutoShotgun", "models/weapons/w_shot_xm1014.mdl", "weapon_mad_xm1014", 3000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Shotgun", "models/weapons/w_shot_m3super90.mdl", "weapon_mad_m3", 2500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Grenade", "models/weapons/w_eq_fraggrenade.mdl", "weapon_mad_grenade", 15000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Flash", "models/weapons/w_eq_flashbang_thrown.mdl", "weapon_mad_flash", 2000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Smoke", "models/weapons/w_eq_smokegrenade.mdl", "weapon_mad_smoke", 2000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Dual Elites", "models/weapons/w_pist_elite_dropped.mdl", "weapon_mad_dual", 2300, 10, true, 250, false, {TEAM_GUN})
- AddCustomShipment("Deagle", "models/weapons/w_pist_deagle.mdl", "weapon_mad_deagle", 2300, 10, true, 250, false, {TEAM_GUN})
- AddCustomShipment("USP", "models/weapons/w_pist_usp.mdl", "weapon_mad_usp", 2200, 10, true, 240, false, {TEAM_GUN})
- AddCustomShipment("P228", "models/weapons/w_pist_p228.mdl", "weapon_mad_p228", 2100, 10, true, 220, false, {TEAM_GUN})
- AddCustomShipment("Five-Seven", "models/weapons/w_pist_fiveseven.mdl", "weapon_mad_57", 1900, 10, true, 200, false, {TEAM_GUN})
- -- Half life 2 weapons:
- AddCustomShipment("AR2", "models/weapons/w_irifle.mdl", "weapon_mad_ar2", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("MP7", "models/weapons/w_smg1.mdl", "weapon_mad_mp7", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Spas-12", "models/weapons/w_shotgun.mdl", "weapon_mad_spas", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Alyx Gun", "models/weapons/w_alyx_gun_2.mdl", "weapon_mad_alyxgun", 2500, 10, true, 260, false, {TEAM_GUN})
- AddCustomShipment("Pistol", "models/weapons/w_pistol.mdl", "weapon_mad_usp_match", 1800, 10, true, 190, false, {TEAM_GUN})
- -- Other:
- AddCustomShipment("Flare gun", "models/weapons/w_pistol.mdl", "weapon_mad_flare", 1600, 10, false, 0, false, {TEAM_GUN})
- 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", 20000, 10, false, 0, false, {TEAM_GUN})
- -- 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, true, 7000, true, {TEAM_GUN})
- CustomShipments = {}
- function AddCustomShipment(name, model, entity, price, Amount_of_guns_in_one_shipment, Sold_seperately, price_seperately, noshipment, classes, shipmodel)
- if not name or not model or not entity or not price or not Amount_of_guns_in_one_shipment or (Sold_seperately and not price_seperately) then
- local text = "One of the custom shipments is wrongly made! Attempt to give name of the wrongly made shipment!(if it's nil then I failed):\n" .. tostring(name)
- print(text)
- hook.Add("PlayerSpawn", "ShipmentError", function(ply)
- if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)
- return
- end
- if not util.IsValidModel(model) then
- local text = "The model of shipment "..name.." is incorrect! cannot create custom shipment!"
- print(text)
- hook.Add("PlayerSpawn", "ShipmentError", function(ply)
- if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)
- return
- end
- local AllowedClasses = classes or {} // if classes isn't entered then only the Gundealer can buy them.
- local price = tonumber(price)
- local shipmentmodel = shipmodel or "models/Items/item_item_crate.mdl"
- table.insert(CustomShipments, {name = name, model = model, entity = entity, price = price, weight = 5, amount = Amount_of_guns_in_one_shipment, seperate = Sold_seperately, pricesep = price_seperately, noship = noshipment, allowed = AllowedClasses, shipmodel = shipmentmodel})
- end
- /*
- HOW TO ADD CUSTOM SHIPMENTS:
- AddCustomShipment("<Name of the shipment(no spaces)>"," <the model that the shipment spawns(should be the world model...)>", "<the classname of the weapon>", <the price of one shipment>, <how many guns there are in one shipment>, <OPTIONAL: true/false sold seperately>, <OPTIONAL: price when sold seperately>, < true/false OPTIONAL: /buypistol only = true> , OPTIONAL which classes can buy the shipment, OPTIONAL: the model of the shipment)
- Notes:
- MODEL: you can go to Q and then props tab at the top left then search for w_ and you can find all world models of the weapons!
- CLASSNAME OF THE WEAPON
- there are half-life 2 weapons you can add:
- weapon_pistol
- weapon_smg1
- weapon_ar2
- weapon_rpg
- weapon_crowbar
- weapon_physgun
- weapon_357
- weapon_crossbow
- weapon_slam
- weapon_bugbait
- weapon_frag
- weapon_physcannon
- weapon_shotgun
- gmod_tool
- But you can also add the classnames of Lua weapons by going into the weapons/ folder and look at the name of the folder of the weapon you want.
- Like the player possessor swep in addons/Player Possessor/lua/weapons You see a folder called weapon_posessor
- This means the classname is weapon_posessor
- YOU CAN ADD ITEMS/ENTITIES TOO! but to actually make the entity you have to press E on the thing that the shipment spawned, BUT THAT'S OK!
- YOU CAN MAKE GUNDEALERS ABLE TO SELL MEDKITS!
- true/false: Can the weapon be sold seperately?(with /buypistol name) if you want yes then say true else say no
- the price of sold seperate is the price it is when you do /buypistol name. Of course you only have to fill this in when sold seperate is true.
- EXAMPLES OF CUSTOM SHIPMENTS(remove the -- to activate it): */
- //AddCustomShipment("HL2pistol", "models/weapons/W_pistol.mdl", "weapon_pistol", 500, 10, false, 200, false, {TEAM_GUN, TEAM_MEDIC})
- --EXAMPLE OF AN ENTITY(in this case a medkit)
- --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, false, 10, false, {TEAM_GUN}, "models/props_c17/oildrum001_explosive.mdl")
- --EXAMPLE OF A BOUNCY BALL: NOTE THAT YOU HAVE TO PRESS E REALLY QUICKLY ON THE BOMB OR YOU'LL EAT THE BALL LOL
- --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, true, 10, true)
- -- ADD CUSTOM SHIPMENTS HERE(next line):
- -- CS:S Weapons:
- AddCustomShipment("M249", "models/weapons/w_mach_m249para.mdl", "weapon_mad_m249", 6000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Galil", "models/weapons/w_rif_galil.mdl", "weapon_mad_galil", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("AK47", "models/weapons/w_rif_ak47.mdl", "weapon_mad_ak47", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("M4A1", "models/weapons/w_rif_m4a1.mdl", "weapon_mad_m4", 3900, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Famas", "models/weapons/w_rif_famas.mdl", "weapon_mad_famas", 3900, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("AWP", "models/weapons/w_snip_awp.mdl", "weapon_mad_awp", 5000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Scout", "models/weapons/w_snip_scout.mdl", "weapon_mad_scout", 4500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Steyr Aug", "models/weapons/w_rif_aug.mdl", "weapon_mad_aug", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("SG552", "models/weapons/w_rif_sg552.mdl", "weapon_mad_sg552", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("G3SG1", "models/weapons/w_snip_g3sg1.mdl", "weapon_mad_g3", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("SG550", "models/weapons/w_snip_sg550.mdl", "weapon_mad_sg550", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("UMP45", "models/weapons/w_smg_ump45.mdl", "weapon_mad_ump", 3600, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("P90", "models/weapons/w_smg_p90.mdl", "weapon_mad_p90", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("TMP", "models/weapons/w_smg_tmp.mdl", "weapon_mad_tmp", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("MP5", "models/weapons/w_smg_mp5.mdl", "weapon_mad_mp5", 3200, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Mac-10", "models/weapons/w_smg_mac10.mdl", "weapon_mad_mac10", 3000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("AutoShotgun", "models/weapons/w_shot_xm1014.mdl", "weapon_mad_xm1014", 3000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Shotgun", "models/weapons/w_shot_m3super90.mdl", "weapon_mad_m3", 2500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Grenade", "models/weapons/w_eq_fraggrenade.mdl", "weapon_mad_grenade", 15000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Flash", "models/weapons/w_eq_flashbang_thrown.mdl", "weapon_mad_flash", 2000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Smoke", "models/weapons/w_eq_smokegrenade.mdl", "weapon_mad_smoke", 2000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Dual Elites", "models/weapons/w_pist_elite_dropped.mdl", "weapon_mad_dual", 2300, 10, true, 250, false, {TEAM_GUN})
- AddCustomShipment("Deagle", "models/weapons/w_pist_deagle.mdl", "weapon_mad_deagle", 2300, 10, true, 250, false, {TEAM_GUN})
- AddCustomShipment("USP", "models/weapons/w_pist_usp.mdl", "weapon_mad_usp", 2200, 10, true, 240, false, {TEAM_GUN})
- AddCustomShipment("P228", "models/weapons/w_pist_p228.mdl", "weapon_mad_p228", 2100, 10, true, 220, false, {TEAM_GUN})
- AddCustomShipment("Five-Seven", "models/weapons/w_pist_fiveseven.mdl", "weapon_mad_57", 1900, 10, true, 200, false, {TEAM_GUN})
- -- Half life 2 weapons:
- AddCustomShipment("AR2", "models/weapons/w_irifle.mdl", "weapon_mad_ar2", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("MP7", "models/weapons/w_smg1.mdl", "weapon_mad_mp7", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Spas-12", "models/weapons/w_shotgun.mdl", "weapon_mad_spas", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Alyx Gun", "models/weapons/w_alyx_gun_2.mdl", "weapon_mad_alyxgun", 2500, 10, true, 260, false, {TEAM_GUN})
- AddCustomShipment("Pistol", "models/weapons/w_pistol.mdl", "weapon_mad_usp_match", 1800, 10, true, 190, false, {TEAM_GUN})
- -- Other:
- AddCustomShipment("Flare gun", "models/weapons/w_pistol.mdl", "weapon_mad_flare", 1600, 10, false, 0, false, {TEAM_GUN})
- 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", 20000, 10, false, 0, false, {TEAM_GUN})
- -- 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, true, 7000, true, {TEAM_GUN}) CustomShipments = {}
- function AddCustomShipment(name, model, entity, price, Amount_of_guns_in_one_shipment, Sold_seperately, price_seperately, noshipment, classes, shipmodel)
- if not name or not model or not entity or not price or not Amount_of_guns_in_one_shipment or (Sold_seperately and not price_seperately) then
- local text = "One of the custom shipments is wrongly made! Attempt to give name of the wrongly made shipment!(if it's nil then I failed):\n" .. tostring(name)
- print(text)
- hook.Add("PlayerSpawn", "ShipmentError", function(ply)
- if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)
- return
- end
- if not util.IsValidModel(model) then
- local text = "The model of shipment "..name.." is incorrect! cannot create custom shipment!"
- print(text)
- hook.Add("PlayerSpawn", "ShipmentError", function(ply)
- if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)
- return
- end
- local AllowedClasses = classes or {} // if classes isn't entered then only the Gundealer can buy them.
- local price = tonumber(price)
- local shipmentmodel = shipmodel or "models/Items/item_item_crate.mdl"
- table.insert(CustomShipments, {name = name, model = model, entity = entity, price = price, weight = 5, amount = Amount_of_guns_in_one_shipment, seperate = Sold_seperately, pricesep = price_seperately, noship = noshipment, allowed = AllowedClasses, shipmodel = shipmentmodel})
- end
- /*
- HOW TO ADD CUSTOM SHIPMENTS:
- AddCustomShipment("<Name of the shipment(no spaces)>"," <the model that the shipment spawns(should be the world model...)>", "<the classname of the weapon>", <the price of one shipment>, <how many guns there are in one shipment>, <OPTIONAL: true/false sold seperately>, <OPTIONAL: price when sold seperately>, < true/false OPTIONAL: /buypistol only = true> , OPTIONAL which classes can buy the shipment, OPTIONAL: the model of the shipment)
- Notes:
- MODEL: you can go to Q and then props tab at the top left then search for w_ and you can find all world models of the weapons!
- CLASSNAME OF THE WEAPON
- there are half-life 2 weapons you can add:
- weapon_pistol
- weapon_smg1
- weapon_ar2
- weapon_rpg
- weapon_crowbar
- weapon_physgun
- weapon_357
- weapon_crossbow
- weapon_slam
- weapon_bugbait
- weapon_frag
- weapon_physcannon
- weapon_shotgun
- gmod_tool
- But you can also add the classnames of Lua weapons by going into the weapons/ folder and look at the name of the folder of the weapon you want.
- Like the player possessor swep in addons/Player Possessor/lua/weapons You see a folder called weapon_posessor
- This means the classname is weapon_posessor
- YOU CAN ADD ITEMS/ENTITIES TOO! but to actually make the entity you have to press E on the thing that the shipment spawned, BUT THAT'S OK!
- YOU CAN MAKE GUNDEALERS ABLE TO SELL MEDKITS!
- true/false: Can the weapon be sold seperately?(with /buypistol name) if you want yes then say true else say no
- the price of sold seperate is the price it is when you do /buypistol name. Of course you only have to fill this in when sold seperate is true.
- EXAMPLES OF CUSTOM SHIPMENTS(remove the -- to activate it): */
- //AddCustomShipment("HL2pistol", "models/weapons/W_pistol.mdl", "weapon_pistol", 500, 10, false, 200, false, {TEAM_GUN, TEAM_MEDIC})
- --EXAMPLE OF AN ENTITY(in this case a medkit)
- --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, false, 10, false, {TEAM_GUN}, "models/props_c17/oildrum001_explosive.mdl")
- --EXAMPLE OF A BOUNCY BALL: NOTE THAT YOU HAVE TO PRESS E REALLY QUICKLY ON THE BOMB OR YOU'LL EAT THE BALL LOL
- --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, true, 10, true)
- -- ADD CUSTOM SHIPMENTS HERE(next line):
- -- CS:S Weapons:
- AddCustomShipment("M249", "models/weapons/w_mach_m249para.mdl", "weapon_mad_m249", 6000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Galil", "models/weapons/w_rif_galil.mdl", "weapon_mad_galil", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("AK47", "models/weapons/w_rif_ak47.mdl", "weapon_mad_ak47", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("M4A1", "models/weapons/w_rif_m4a1.mdl", "weapon_mad_m4", 3900, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Famas", "models/weapons/w_rif_famas.mdl", "weapon_mad_famas", 3900, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("AWP", "models/weapons/w_snip_awp.mdl", "weapon_mad_awp", 5000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Scout", "models/weapons/w_snip_scout.mdl", "weapon_mad_scout", 4500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Steyr Aug", "models/weapons/w_rif_aug.mdl", "weapon_mad_aug", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("SG552", "models/weapons/w_rif_sg552.mdl", "weapon_mad_sg552", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("G3SG1", "models/weapons/w_snip_g3sg1.mdl", "weapon_mad_g3", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("SG550", "models/weapons/w_snip_sg550.mdl", "weapon_mad_sg550", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("UMP45", "models/weapons/w_smg_ump45.mdl", "weapon_mad_ump", 3600, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("P90", "models/weapons/w_smg_p90.mdl", "weapon_mad_p90", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("TMP", "models/weapons/w_smg_tmp.mdl", "weapon_mad_tmp", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("MP5", "models/weapons/w_smg_mp5.mdl", "weapon_mad_mp5", 3200, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Mac-10", "models/weapons/w_smg_mac10.mdl", "weapon_mad_mac10", 3000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("AutoShotgun", "models/weapons/w_shot_xm1014.mdl", "weapon_mad_xm1014", 3000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Shotgun", "models/weapons/w_shot_m3super90.mdl", "weapon_mad_m3", 2500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Grenade", "models/weapons/w_eq_fraggrenade.mdl", "weapon_mad_grenade", 15000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Flash", "models/weapons/w_eq_flashbang_thrown.mdl", "weapon_mad_flash", 2000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Smoke", "models/weapons/w_eq_smokegrenade.mdl", "weapon_mad_smoke", 2000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Dual Elites", "models/weapons/w_pist_elite_dropped.mdl", "weapon_mad_dual", 2300, 10, true, 250, false, {TEAM_GUN})
- AddCustomShipment("Deagle", "models/weapons/w_pist_deagle.mdl", "weapon_mad_deagle", 2300, 10, true, 250, false, {TEAM_GUN})
- AddCustomShipment("USP", "models/weapons/w_pist_usp.mdl", "weapon_mad_usp", 2200, 10, true, 240, false, {TEAM_GUN})
- AddCustomShipment("P228", "models/weapons/w_pist_p228.mdl", "weapon_mad_p228", 2100, 10, true, 220, false, {TEAM_GUN})
- AddCustomShipment("Five-Seven", "models/weapons/w_pist_fiveseven.mdl", "weapon_mad_57", 1900, 10, true, 200, false, {TEAM_GUN})
- -- Half life 2 weapons:
- AddCustomShipment("AR2", "models/weapons/w_irifle.mdl", "weapon_mad_ar2", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("MP7", "models/weapons/w_smg1.mdl", "weapon_mad_mp7", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Spas-12", "models/weapons/w_shotgun.mdl", "weapon_mad_spas", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Alyx Gun", "models/weapons/w_alyx_gun_2.mdl", "weapon_mad_alyxgun", 2500, 10, true, 260, false, {TEAM_GUN})
- AddCustomShipment("Pistol", "models/weapons/w_pistol.mdl", "weapon_mad_usp_match", 1800, 10, true, 190, false, {TEAM_GUN})
- -- Other:
- AddCustomShipment("Flare gun", "models/weapons/w_pistol.mdl", "weapon_mad_flare", 1600, 10, false, 0, false, {TEAM_GUN})
- 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", 20000, 10, false, 0, false, {TEAM_GUN})
- -- 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, true, 7000, true, {TEAM_GUN})
- CustomShipments = {}
- function AddCustomShipment(name, model, entity, price, Amount_of_guns_in_one_shipment, Sold_seperately, price_seperately, noshipment, classes, shipmodel)
- if not name or not model or not entity or not price or not Amount_of_guns_in_one_shipment or (Sold_seperately and not price_seperately) then
- local text = "One of the custom shipments is wrongly made! Attempt to give name of the wrongly made shipment!(if it's nil then I failed):\n" .. tostring(name)
- print(text)
- hook.Add("PlayerSpawn", "ShipmentError", function(ply)
- if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)
- return
- end
- if not util.IsValidModel(model) then
- local text = "The model of shipment "..name.." is incorrect! cannot create custom shipment!"
- print(text)
- hook.Add("PlayerSpawn", "ShipmentError", function(ply)
- if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)
- return
- end
- local AllowedClasses = classes or {} // if classes isn't entered then only the Gundealer can buy them.
- local price = tonumber(price)
- local shipmentmodel = shipmodel or "models/Items/item_item_crate.mdl"
- table.insert(CustomShipments, {name = name, model = model, entity = entity, price = price, weight = 5, amount = Amount_of_guns_in_one_shipment, seperate = Sold_seperately, pricesep = price_seperately, noship = noshipment, allowed = AllowedClasses, shipmodel = shipmentmodel})
- end
- /*
- HOW TO ADD CUSTOM SHIPMENTS:
- AddCustomShipment("<Name of the shipment(no spaces)>"," <the model that the shipment spawns(should be the world model...)>", "<the classname of the weapon>", <the price of one shipment>, <how many guns there are in one shipment>, <OPTIONAL: true/false sold seperately>, <OPTIONAL: price when sold seperately>, < true/false OPTIONAL: /buypistol only = true> , OPTIONAL which classes can buy the shipment, OPTIONAL: the model of the shipment)
- Notes:
- MODEL: you can go to Q and then props tab at the top left then search for w_ and you can find all world models of the weapons!
- CLASSNAME OF THE WEAPON
- there are half-life 2 weapons you can add:
- weapon_pistol
- weapon_smg1
- weapon_ar2
- weapon_rpg
- weapon_crowbar
- weapon_physgun
- weapon_357
- weapon_crossbow
- weapon_slam
- weapon_bugbait
- weapon_frag
- weapon_physcannon
- weapon_shotgun
- gmod_tool
- But you can also add the classnames of Lua weapons by going into the weapons/ folder and look at the name of the folder of the weapon you want.
- Like the player possessor swep in addons/Player Possessor/lua/weapons You see a folder called weapon_posessor
- This means the classname is weapon_posessor
- YOU CAN ADD ITEMS/ENTITIES TOO! but to actually make the entity you have to press E on the thing that the shipment spawned, BUT THAT'S OK!
- YOU CAN MAKE GUNDEALERS ABLE TO SELL MEDKITS!
- true/false: Can the weapon be sold seperately?(with /buypistol name) if you want yes then say true else say no
- the price of sold seperate is the price it is when you do /buypistol name. Of course you only have to fill this in when sold seperate is true.
- EXAMPLES OF CUSTOM SHIPMENTS(remove the -- to activate it): */
- //AddCustomShipment("HL2pistol", "models/weapons/W_pistol.mdl", "weapon_pistol", 500, 10, false, 200, false, {TEAM_GUN, TEAM_MEDIC})
- --EXAMPLE OF AN ENTITY(in this case a medkit)
- --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, false, 10, false, {TEAM_GUN}, "models/props_c17/oildrum001_explosive.mdl")
- --EXAMPLE OF A BOUNCY BALL: NOTE THAT YOU HAVE TO PRESS E REALLY QUICKLY ON THE BOMB OR YOU'LL EAT THE BALL LOL
- --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, true, 10, true)
- -- ADD CUSTOM SHIPMENTS HERE(next line):
- -- CS:S Weapons:
- AddCustomShipment("M249", "models/weapons/w_mach_m249para.mdl", "weapon_mad_m249", 6000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Galil", "models/weapons/w_rif_galil.mdl", "weapon_mad_galil", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("AK47", "models/weapons/w_rif_ak47.mdl", "weapon_mad_ak47", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("M4A1", "models/weapons/w_rif_m4a1.mdl", "weapon_mad_m4", 3900, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Famas", "models/weapons/w_rif_famas.mdl", "weapon_mad_famas", 3900, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("AWP", "models/weapons/w_snip_awp.mdl", "weapon_mad_awp", 5000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Scout", "models/weapons/w_snip_scout.mdl", "weapon_mad_scout", 4500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Steyr Aug", "models/weapons/w_rif_aug.mdl", "weapon_mad_aug", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("SG552", "models/weapons/w_rif_sg552.mdl", "weapon_mad_sg552", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("G3SG1", "models/weapons/w_snip_g3sg1.mdl", "weapon_mad_g3", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("SG550", "models/weapons/w_snip_sg550.mdl", "weapon_mad_sg550", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("UMP45", "models/weapons/w_smg_ump45.mdl", "weapon_mad_ump", 3600, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("P90", "models/weapons/w_smg_p90.mdl", "weapon_mad_p90", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("TMP", "models/weapons/w_smg_tmp.mdl", "weapon_mad_tmp", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("MP5", "models/weapons/w_smg_mp5.mdl", "weapon_mad_mp5", 3200, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Mac-10", "models/weapons/w_smg_mac10.mdl", "weapon_mad_mac10", 3000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("AutoShotgun", "models/weapons/w_shot_xm1014.mdl", "weapon_mad_xm1014", 3000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Shotgun", "models/weapons/w_shot_m3super90.mdl", "weapon_mad_m3", 2500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Grenade", "models/weapons/w_eq_fraggrenade.mdl", "weapon_mad_grenade", 15000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Flash", "models/weapons/w_eq_flashbang_thrown.mdl", "weapon_mad_flash", 2000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Smoke", "models/weapons/w_eq_smokegrenade.mdl", "weapon_mad_smoke", 2000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Dual Elites", "models/weapons/w_pist_elite_dropped.mdl", "weapon_mad_dual", 2300, 10, true, 250, false, {TEAM_GUN})
- AddCustomShipment("Deagle", "models/weapons/w_pist_deagle.mdl", "weapon_mad_deagle", 2300, 10, true, 250, false, {TEAM_GUN})
- AddCustomShipment("USP", "models/weapons/w_pist_usp.mdl", "weapon_mad_usp", 2200, 10, true, 240, false, {TEAM_GUN})
- AddCustomShipment("P228", "models/weapons/w_pist_p228.mdl", "weapon_mad_p228", 2100, 10, true, 220, false, {TEAM_GUN})
- AddCustomShipment("Five-Seven", "models/weapons/w_pist_fiveseven.mdl", "weapon_mad_57", 1900, 10, true, 200, false, {TEAM_GUN})
- -- Half life 2 weapons:
- AddCustomShipment("AR2", "models/weapons/w_irifle.mdl", "weapon_mad_ar2", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("MP7", "models/weapons/w_smg1.mdl", "weapon_mad_mp7", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Spas-12", "models/weapons/w_shotgun.mdl", "weapon_mad_spas", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Alyx Gun", "models/weapons/w_alyx_gun_2.mdl", "weapon_mad_alyxgun", 2500, 10, true, 260, false, {TEAM_GUN})
- AddCustomShipment("Pistol", "models/weapons/w_pistol.mdl", "weapon_mad_usp_match", 1800, 10, true, 190, false, {TEAM_GUN})
- -- Other:
- AddCustomShipment("Flare gun", "models/weapons/w_pistol.mdl", "weapon_mad_flare", 1600, 10, false, 0, false, {TEAM_GUN})
- 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", 20000, 10, false, 0, false, {TEAM_GUN})
- -- 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, true, 7000, true, {TEAM_GUN})
- CustomShipments = {}
- function AddCustomShipment(name, model, entity, price, Amount_of_guns_in_one_shipment, Sold_seperately, price_seperately, noshipment, classes, shipmodel)
- if not name or not model or not entity or not price or not Amount_of_guns_in_one_shipment or (Sold_seperately and not price_seperately) then
- local text = "One of the custom shipments is wrongly made! Attempt to give name of the wrongly made shipment!(if it's nil then I failed):\n" .. tostring(name)
- print(text)
- hook.Add("PlayerSpawn", "ShipmentError", function(ply)
- if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)
- return
- end
- if not util.IsValidModel(model) then
- local text = "The model of shipment "..name.." is incorrect! cannot create custom shipment!"
- print(text)
- hook.Add("PlayerSpawn", "ShipmentError", function(ply)
- if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)
- return
- end
- local AllowedClasses = classes or {} // if classes isn't entered then only the Gundealer can buy them.
- local price = tonumber(price)
- local shipmentmodel = shipmodel or "models/Items/item_item_crate.mdl"
- table.insert(CustomShipments, {name = name, model = model, entity = entity, price = price, weight = 5, amount = Amount_of_guns_in_one_shipment, seperate = Sold_seperately, pricesep = price_seperately, noship = noshipment, allowed = AllowedClasses, shipmodel = shipmentmodel})
- end
- /*
- HOW TO ADD CUSTOM SHIPMENTS:
- AddCustomShipment("<Name of the shipment(no spaces)>"," <the model that the shipment spawns(should be the world model...)>", "<the classname of the weapon>", <the price of one shipment>, <how many guns there are in one shipment>, <OPTIONAL: true/false sold seperately>, <OPTIONAL: price when sold seperately>, < true/false OPTIONAL: /buypistol only = true> , OPTIONAL which classes can buy the shipment, OPTIONAL: the model of the shipment)
- Notes:
- MODEL: you can go to Q and then props tab at the top left then search for w_ and you can find all world models of the weapons!
- CLASSNAME OF THE WEAPON
- there are half-life 2 weapons you can add:
- weapon_pistol
- weapon_smg1
- weapon_ar2
- weapon_rpg
- weapon_crowbar
- weapon_physgun
- weapon_357
- weapon_crossbow
- weapon_slam
- weapon_bugbait
- weapon_frag
- weapon_physcannon
- weapon_shotgun
- gmod_tool
- But you can also add the classnames of Lua weapons by going into the weapons/ folder and look at the name of the folder of the weapon you want.
- Like the player possessor swep in addons/Player Possessor/lua/weapons You see a folder called weapon_posessor
- This means the classname is weapon_posessor
- YOU CAN ADD ITEMS/ENTITIES TOO! but to actually make the entity you have to press E on the thing that the shipment spawned, BUT THAT'S OK!
- YOU CAN MAKE GUNDEALERS ABLE TO SELL MEDKITS!
- true/false: Can the weapon be sold seperately?(with /buypistol name) if you want yes then say true else say no
- the price of sold seperate is the price it is when you do /buypistol name. Of course you only have to fill this in when sold seperate is true.
- EXAMPLES OF CUSTOM SHIPMENTS(remove the -- to activate it): */
- //AddCustomShipment("HL2pistol", "models/weapons/W_pistol.mdl", "weapon_pistol", 500, 10, false, 200, false, {TEAM_GUN, TEAM_MEDIC})
- --EXAMPLE OF AN ENTITY(in this case a medkit)
- --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, false, 10, false, {TEAM_GUN}, "models/props_c17/oildrum001_explosive.mdl")
- --EXAMPLE OF A BOUNCY BALL: NOTE THAT YOU HAVE TO PRESS E REALLY QUICKLY ON THE BOMB OR YOU'LL EAT THE BALL LOL
- --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, true, 10, true)
- -- ADD CUSTOM SHIPMENTS HERE(next line):
- -- CS:S Weapons:
- AddCustomShipment("M249", "models/weapons/w_mach_m249para.mdl", "weapon_mad_m249", 6000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Galil", "models/weapons/w_rif_galil.mdl", "weapon_mad_galil", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("AK47", "models/weapons/w_rif_ak47.mdl", "weapon_mad_ak47", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("M4A1", "models/weapons/w_rif_m4a1.mdl", "weapon_mad_m4", 3900, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Famas", "models/weapons/w_rif_famas.mdl", "weapon_mad_famas", 3900, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("AWP", "models/weapons/w_snip_awp.mdl", "weapon_mad_awp", 5000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Scout", "models/weapons/w_snip_scout.mdl", "weapon_mad_scout", 4500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Steyr Aug", "models/weapons/w_rif_aug.mdl", "weapon_mad_aug", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("SG552", "models/weapons/w_rif_sg552.mdl", "weapon_mad_sg552", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("G3SG1", "models/weapons/w_snip_g3sg1.mdl", "weapon_mad_g3", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("SG550", "models/weapons/w_snip_sg550.mdl", "weapon_mad_sg550", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("UMP45", "models/weapons/w_smg_ump45.mdl", "weapon_mad_ump", 3600, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("P90", "models/weapons/w_smg_p90.mdl", "weapon_mad_p90", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("TMP", "models/weapons/w_smg_tmp.mdl", "weapon_mad_tmp", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("MP5", "models/weapons/w_smg_mp5.mdl", "weapon_mad_mp5", 3200, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Mac-10", "models/weapons/w_smg_mac10.mdl", "weapon_mad_mac10", 3000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("AutoShotgun", "models/weapons/w_shot_xm1014.mdl", "weapon_mad_xm1014", 3000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Shotgun", "models/weapons/w_shot_m3super90.mdl", "weapon_mad_m3", 2500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Grenade", "models/weapons/w_eq_fraggrenade.mdl", "weapon_mad_grenade", 15000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Flash", "models/weapons/w_eq_flashbang_thrown.mdl", "weapon_mad_flash", 2000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Smoke", "models/weapons/w_eq_smokegrenade.mdl", "weapon_mad_smoke", 2000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Dual Elites", "models/weapons/w_pist_elite_dropped.mdl", "weapon_mad_dual", 2300, 10, true, 250, false, {TEAM_GUN})
- AddCustomShipment("Deagle", "models/weapons/w_pist_deagle.mdl", "weapon_mad_deagle", 2300, 10, true, 250, false, {TEAM_GUN})
- AddCustomShipment("USP", "models/weapons/w_pist_usp.mdl", "weapon_mad_usp", 2200, 10, true, 240, false, {TEAM_GUN})
- AddCustomShipment("P228", "models/weapons/w_pist_p228.mdl", "weapon_mad_p228", 2100, 10, true, 220, false, {TEAM_GUN})
- AddCustomShipment("Five-Seven", "models/weapons/w_pist_fiveseven.mdl", "weapon_mad_57", 1900, 10, true, 200, false, {TEAM_GUN})
- -- Half life 2 weapons:
- AddCustomShipment("AR2", "models/weapons/w_irifle.mdl", "weapon_mad_ar2", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("MP7", "models/weapons/w_smg1.mdl", "weapon_mad_mp7", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Spas-12", "models/weapons/w_shotgun.mdl", "weapon_mad_spas", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Alyx Gun", "models/weapons/w_alyx_gun_2.mdl", "weapon_mad_alyxgun", 2500, 10, true, 260, false, {TEAM_GUN})
- AddCustomShipment("Pistol", "models/weapons/w_pistol.mdl", "weapon_mad_usp_match", 1800, 10, true, 190, false, {TEAM_GUN})
- -- Other:
- AddCustomShipment("Flare gun", "models/weapons/w_pistol.mdl", "weapon_mad_flare", 1600, 10, false, 0, false, {TEAM_GUN})
- 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", 20000, 10, false, 0, false, {TEAM_GUN})
- -- 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, true, 7000, true, {TEAM_GUN})
- CustomShipments = {}
- function AddCustomShipment(name, model, entity, price, Amount_of_guns_in_one_shipment, Sold_seperately, price_seperately, noshipment, classes, shipmodel)
- if not name or not model or not entity or not price or not Amount_of_guns_in_one_shipment or (Sold_seperately and not price_seperately) then
- local text = "One of the custom shipments is wrongly made! Attempt to give name of the wrongly made shipment!(if it's nil then I failed):\n" .. tostring(name)
- print(text)
- hook.Add("PlayerSpawn", "ShipmentError", function(ply)
- if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)
- return
- end
- if not util.IsValidModel(model) then
- local text = "The model of shipment "..name.." is incorrect! cannot create custom shipment!"
- print(text)
- hook.Add("PlayerSpawn", "ShipmentError", function(ply)
- if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)
- return
- end
- local AllowedClasses = classes or {} // if classes isn't entered then only the Gundealer can buy them.
- local price = tonumber(price)
- local shipmentmodel = shipmodel or "models/Items/item_item_crate.mdl"
- table.insert(CustomShipments, {name = name, model = model, entity = entity, price = price, weight = 5, amount = Amount_of_guns_in_one_shipment, seperate = Sold_seperately, pricesep = price_seperately, noship = noshipment, allowed = AllowedClasses, shipmodel = shipmentmodel})
- end
- /*
- HOW TO ADD CUSTOM SHIPMENTS:
- AddCustomShipment("<Name of the shipment(no spaces)>"," <the model that the shipment spawns(should be the world model...)>", "<the classname of the weapon>", <the price of one shipment>, <how many guns there are in one shipment>, <OPTIONAL: true/false sold seperately>, <OPTIONAL: price when sold seperately>, < true/false OPTIONAL: /buypistol only = true> , OPTIONAL which classes can buy the shipment, OPTIONAL: the model of the shipment)
- Notes:
- MODEL: you can go to Q and then props tab at the top left then search for w_ and you can find all world models of the weapons!
- CLASSNAME OF THE WEAPON
- there are half-life 2 weapons you can add:
- weapon_pistol
- weapon_smg1
- weapon_ar2
- weapon_rpg
- weapon_crowbar
- weapon_physgun
- weapon_357
- weapon_crossbow
- weapon_slam
- weapon_bugbait
- weapon_frag
- weapon_physcannon
- weapon_shotgun
- gmod_tool
- But you can also add the classnames of Lua weapons by going into the weapons/ folder and look at the name of the folder of the weapon you want.
- Like the player possessor swep in addons/Player Possessor/lua/weapons You see a folder called weapon_posessor
- This means the classname is weapon_posessor
- YOU CAN ADD ITEMS/ENTITIES TOO! but to actually make the entity you have to press E on the thing that the shipment spawned, BUT THAT'S OK!
- YOU CAN MAKE GUNDEALERS ABLE TO SELL MEDKITS!
- true/false: Can the weapon be sold seperately?(with /buypistol name) if you want yes then say true else say no
- the price of sold seperate is the price it is when you do /buypistol name. Of course you only have to fill this in when sold seperate is true.
- EXAMPLES OF CUSTOM SHIPMENTS(remove the -- to activate it): */
- //AddCustomShipment("HL2pistol", "models/weapons/W_pistol.mdl", "weapon_pistol", 500, 10, false, 200, false, {TEAM_GUN, TEAM_MEDIC})
- --EXAMPLE OF AN ENTITY(in this case a medkit)
- --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, false, 10, false, {TEAM_GUN}, "models/props_c17/oildrum001_explosive.mdl")
- --EXAMPLE OF A BOUNCY BALL: NOTE THAT YOU HAVE TO PRESS E REALLY QUICKLY ON THE BOMB OR YOU'LL EAT THE BALL LOL
- --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, true, 10, true)
- -- ADD CUSTOM SHIPMENTS HERE(next line):
- -- CS:S Weapons:
- AddCustomShipment("M249", "models/weapons/w_mach_m249para.mdl", "weapon_mad_m249", 6000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Galil", "models/weapons/w_rif_galil.mdl", "weapon_mad_galil", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("AK47", "models/weapons/w_rif_ak47.mdl", "weapon_mad_ak47", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("M4A1", "models/weapons/w_rif_m4a1.mdl", "weapon_mad_m4", 3900, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Famas", "models/weapons/w_rif_famas.mdl", "weapon_mad_famas", 3900, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("AWP", "models/weapons/w_snip_awp.mdl", "weapon_mad_awp", 5000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Scout", "models/weapons/w_snip_scout.mdl", "weapon_mad_scout", 4500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Steyr Aug", "models/weapons/w_rif_aug.mdl", "weapon_mad_aug", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("SG552", "models/weapons/w_rif_sg552.mdl", "weapon_mad_sg552", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("G3SG1", "models/weapons/w_snip_g3sg1.mdl", "weapon_mad_g3", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("SG550", "models/weapons/w_snip_sg550.mdl", "weapon_mad_sg550", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("UMP45", "models/weapons/w_smg_ump45.mdl", "weapon_mad_ump", 3600, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("P90", "models/weapons/w_smg_p90.mdl", "weapon_mad_p90", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("TMP", "models/weapons/w_smg_tmp.mdl", "weapon_mad_tmp", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("MP5", "models/weapons/w_smg_mp5.mdl", "weapon_mad_mp5", 3200, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Mac-10", "models/weapons/w_smg_mac10.mdl", "weapon_mad_mac10", 3000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("AutoShotgun", "models/weapons/w_shot_xm1014.mdl", "weapon_mad_xm1014", 3000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Shotgun", "models/weapons/w_shot_m3super90.mdl", "weapon_mad_m3", 2500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Grenade", "models/weapons/w_eq_fraggrenade.mdl", "weapon_mad_grenade", 15000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Flash", "models/weapons/w_eq_flashbang_thrown.mdl", "weapon_mad_flash", 2000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Smoke", "models/weapons/w_eq_smokegrenade.mdl", "weapon_mad_smoke", 2000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Dual Elites", "models/weapons/w_pist_elite_dropped.mdl", "weapon_mad_dual", 2300, 10, true, 250, false, {TEAM_GUN})
- AddCustomShipment("Deagle", "models/weapons/w_pist_deagle.mdl", "weapon_mad_deagle", 2300, 10, true, 250, false, {TEAM_GUN})
- AddCustomShipment("USP", "models/weapons/w_pist_usp.mdl", "weapon_mad_usp", 2200, 10, true, 240, false, {TEAM_GUN})
- AddCustomShipment("P228", "models/weapons/w_pist_p228.mdl", "weapon_mad_p228", 2100, 10, true, 220, false, {TEAM_GUN})
- AddCustomShipment("Five-Seven", "models/weapons/w_pist_fiveseven.mdl", "weapon_mad_57", 1900, 10, true, 200, false, {TEAM_GUN})
- -- Half life 2 weapons:
- AddCustomShipment("AR2", "models/weapons/w_irifle.mdl", "weapon_mad_ar2", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("MP7", "models/weapons/w_smg1.mdl", "weapon_mad_mp7", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Spas-12", "models/weapons/w_shotgun.mdl", "weapon_mad_spas", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Alyx Gun", "models/weapons/w_alyx_gun_2.mdl", "weapon_mad_alyxgun", 2500, 10, true, 260, false, {TEAM_GUN})
- AddCustomShipment("Pistol", "models/weapons/w_pistol.mdl", "weapon_mad_usp_match", 1800, 10, true, 190, false, {TEAM_GUN})
- -- Other:
- AddCustomShipment("Flare gun", "models/weapons/w_pistol.mdl", "weapon_mad_flare", 1600, 10, false, 0, false, {TEAM_GUN})
- 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", 20000, 10, false, 0, false, {TEAM_GUN})
- -- 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, true, 7000, true, {TEAM_GUN})
- CustomShipments = {}
- function AddCustomShipment(name, model, entity, price, Amount_of_guns_in_one_shipment, Sold_seperately, price_seperately, noshipment, classes, shipmodel)
- if not name or not model or not entity or not price or not Amount_of_guns_in_one_shipment or (Sold_seperately and not price_seperately) then
- local text = "One of the custom shipments is wrongly made! Attempt to give name of the wrongly made shipment!(if it's nil then I failed):\n" .. tostring(name)
- print(text)
- hook.Add("PlayerSpawn", "ShipmentError", function(ply)
- if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)
- return
- end
- if not util.IsValidModel(model) then
- local text = "The model of shipment "..name.." is incorrect! cannot create custom shipment!"
- print(text)
- hook.Add("PlayerSpawn", "ShipmentError", function(ply)
- if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)
- return
- end
- local AllowedClasses = classes or {} // if classes isn't entered then only the Gundealer can buy them.
- local price = tonumber(price)
- local shipmentmodel = shipmodel or "models/Items/item_item_crate.mdl"
- table.insert(CustomShipments, {name = name, model = model, entity = entity, price = price, weight = 5, amount = Amount_of_guns_in_one_shipment, seperate = Sold_seperately, pricesep = price_seperately, noship = noshipment, allowed = AllowedClasses, shipmodel = shipmentmodel})
- end
- /*
- HOW TO ADD CUSTOM SHIPMENTS:
- AddCustomShipment("<Name of the shipment(no spaces)>"," <the model that the shipment spawns(should be the world model...)>", "<the classname of the weapon>", <the price of one shipment>, <how many guns there are in one shipment>, <OPTIONAL: true/false sold seperately>, <OPTIONAL: price when sold seperately>, < true/false OPTIONAL: /buypistol only = true> , OPTIONAL which classes can buy the shipment, OPTIONAL: the model of the shipment)
- Notes:
- MODEL: you can go to Q and then props tab at the top left then search for w_ and you can find all world models of the weapons!
- CLASSNAME OF THE WEAPON
- there are half-life 2 weapons you can add:
- weapon_pistol
- weapon_smg1
- weapon_ar2
- weapon_rpg
- weapon_crowbar
- weapon_physgun
- weapon_357
- weapon_crossbow
- weapon_slam
- weapon_bugbait
- weapon_frag
- weapon_physcannon
- weapon_shotgun
- gmod_tool
- But you can also add the classnames of Lua weapons by going into the weapons/ folder and look at the name of the folder of the weapon you want.
- Like the player possessor swep in addons/Player Possessor/lua/weapons You see a folder called weapon_posessor
- This means the classname is weapon_posessor
- YOU CAN ADD ITEMS/ENTITIES TOO! but to actually make the entity you have to press E on the thing that the shipment spawned, BUT THAT'S OK!
- YOU CAN MAKE GUNDEALERS ABLE TO SELL MEDKITS!
- true/false: Can the weapon be sold seperately?(with /buypistol name) if you want yes then say true else say no
- the price of sold seperate is the price it is when you do /buypistol name. Of course you only have to fill this in when sold seperate is true.
- EXAMPLES OF CUSTOM SHIPMENTS(remove the -- to activate it): */
- //AddCustomShipment("HL2pistol", "models/weapons/W_pistol.mdl", "weapon_pistol", 500, 10, false, 200, false, {TEAM_GUN, TEAM_MEDIC})
- --EXAMPLE OF AN ENTITY(in this case a medkit)
- --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, false, 10, false, {TEAM_GUN}, "models/props_c17/oildrum001_explosive.mdl")
- --EXAMPLE OF A BOUNCY BALL: NOTE THAT YOU HAVE TO PRESS E REALLY QUICKLY ON THE BOMB OR YOU'LL EAT THE BALL LOL
- --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, true, 10, true)
- -- ADD CUSTOM SHIPMENTS HERE(next line):
- -- CS:S Weapons:
- AddCustomShipment("M249", "models/weapons/w_mach_m249para.mdl", "weapon_mad_m249", 6000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Galil", "models/weapons/w_rif_galil.mdl", "weapon_mad_galil", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("AK47", "models/weapons/w_rif_ak47.mdl", "weapon_mad_ak47", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("M4A1", "models/weapons/w_rif_m4a1.mdl", "weapon_mad_m4", 3900, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Famas", "models/weapons/w_rif_famas.mdl", "weapon_mad_famas", 3900, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("AWP", "models/weapons/w_snip_awp.mdl", "weapon_mad_awp", 5000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Scout", "models/weapons/w_snip_scout.mdl", "weapon_mad_scout", 4500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Steyr Aug", "models/weapons/w_rif_aug.mdl", "weapon_mad_aug", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("SG552", "models/weapons/w_rif_sg552.mdl", "weapon_mad_sg552", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("G3SG1", "models/weapons/w_snip_g3sg1.mdl", "weapon_mad_g3", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("SG550", "models/weapons/w_snip_sg550.mdl", "weapon_mad_sg550", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("UMP45", "models/weapons/w_smg_ump45.mdl", "weapon_mad_ump", 3600, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("P90", "models/weapons/w_smg_p90.mdl", "weapon_mad_p90", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("TMP", "models/weapons/w_smg_tmp.mdl", "weapon_mad_tmp", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("MP5", "models/weapons/w_smg_mp5.mdl", "weapon_mad_mp5", 3200, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Mac-10", "models/weapons/w_smg_mac10.mdl", "weapon_mad_mac10", 3000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("AutoShotgun", "models/weapons/w_shot_xm1014.mdl", "weapon_mad_xm1014", 3000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Shotgun", "models/weapons/w_shot_m3super90.mdl", "weapon_mad_m3", 2500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Grenade", "models/weapons/w_eq_fraggrenade.mdl", "weapon_mad_grenade", 15000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Flash", "models/weapons/w_eq_flashbang_thrown.mdl", "weapon_mad_flash", 2000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Smoke", "models/weapons/w_eq_smokegrenade.mdl", "weapon_mad_smoke", 2000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Dual Elites", "models/weapons/w_pist_elite_dropped.mdl", "weapon_mad_dual", 2300, 10, true, 250, false, {TEAM_GUN})
- AddCustomShipment("Deagle", "models/weapons/w_pist_deagle.mdl", "weapon_mad_deagle", 2300, 10, true, 250, false, {TEAM_GUN})
- AddCustomShipment("USP", "models/weapons/w_pist_usp.mdl", "weapon_mad_usp", 2200, 10, true, 240, false, {TEAM_GUN})
- AddCustomShipment("P228", "models/weapons/w_pist_p228.mdl", "weapon_mad_p228", 2100, 10, true, 220, false, {TEAM_GUN})
- AddCustomShipment("Five-Seven", "models/weapons/w_pist_fiveseven.mdl", "weapon_mad_57", 1900, 10, true, 200, false, {TEAM_GUN})
- -- Half life 2 weapons:
- AddCustomShipment("AR2", "models/weapons/w_irifle.mdl", "weapon_mad_ar2", 4000, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("MP7", "models/weapons/w_smg1.mdl", "weapon_mad_mp7", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Spas-12", "models/weapons/w_shotgun.mdl", "weapon_mad_spas", 3500, 10, false, 0, false, {TEAM_GUN})
- AddCustomShipment("Alyx Gun", "models/weapons/w_alyx_gun_2.mdl", "weapon_mad_alyxgun", 2500, 10, true, 260, false, {TEAM_GUN})
- AddCustomShipment("Pistol", "models/weapons/w_pistol.mdl", "weapon_mad_usp_match", 1800, 10, true, 190, false, {TEAM_GUN})
- -- Other:
- AddCustomShipment("Flare gun", "models/weapons/w_pistol.mdl", "weapon_mad_flare", 1600, 10, false, 0, false, {TEAM_GUN})
- 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", 20000, 10, false, 0, false, {TEAM_GUN})
- -- 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, true, 7000, true, {TEAM_GUN})
- 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})
- 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})
- AddCustomShipment("Jihad Bomb", "models/weapons/w_jb.mdl", "weapon_jihadbomb", 500, 1, true, 500, true, {TEAM_TERRORIST})
- AddCustomVehicle("Jeep", 100)
- AddCustomVehicle("Airboat", 100, {TEAM_SGS})
- AddCustomShipment("Colt 45"), "models/weapons/v_colt.mdl", "weapon_colt", 2500, 10, false, 0, false, {TEAM_TRADESMAN})
- 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)
- /*
- How to add custom vehicles:
- FIRST
- go ingame, type rp_getvehicles for available vehicles!
- then:
- AddCustomVehicle(<One of the vehicles from the rp_getvehicles list>, <Price of the vehicle>, <OPTIONAL jobs that can buy the vehicle>)
- Examples:
- AddCustomVehicle("Jeep", 100)
- AddCustomVehicle("Airboat", 600, {TEAM_GUN})
- AddCustomVehicle("Airboat", 600, {TEAM_GUN, TEAM_MEDIC})
- Add those lines under your custom shipments. At the bottom of this file or in data/CustomShipments.txt
- HOW TO ADD CUSTOM SHIPMENTS:
- AddCustomShipment("<Name of the shipment(no spaces)>"," <the model that the shipment spawns(should be the world model...)>", "<the classname of the weapon>", <the price of one shipment>, <how many guns there are in one shipment>, <OPTIONAL: true/false sold seperately>, <OPTIONAL: price when sold seperately>, < true/false OPTIONAL: /buy only = true> , OPTIONAL which classes can buy the shipment, OPTIONAL: the model of the shipment)
- Notes:
- MODEL: you can go to Q and then props tab at the top left then search for w_ and you can find all world models of the weapons!
- CLASSNAME OF THE WEAPON
- there are half-life 2 weapons you can add:
- weapon_pistol
- weapon_smg1
- weapon_ar2
- weapon_rpg
- weapon_crowbar
- weapon_physgun
- weapon_357
- weapon_crossbow
- weapon_slam
- weapon_bugbait
- weapon_frag
- weapon_physcannon
- weapon_shotgun
- gmod_tool
- But you can also add the classnames of Lua weapons by going into the weapons/ folder and look at the name of the folder of the weapon you want.
- Like the player possessor swep in addons/Player Possessor/lua/weapons You see a folder called weapon_posessor
- This means the classname is weapon_posessor
- YOU CAN ADD ITEMS/ENTITIES TOO! but to actually make the entity you have to press E on the thing that the shipment spawned, BUT THAT'S OK!
- YOU CAN MAKE GUNDEALERS ABLE TO SELL MEDKITS!
- true/false: Can the weapon be sold seperately?(with /buy name) if you want yes then say true else say no
- the price of sold seperate is the price it is when you do /buy name. Of course you only have to fill this in when sold seperate is true.
- EXAMPLES OF CUSTOM SHIPMENTS(remove the // to activate it): */
- //AddCustomShipment("HL2pistol", "models/weapons/W_pistol.mdl", "weapon_pistol", 500, 10, false, 200, false, {TEAM_GUN, TEAM_MEDIC})
- --EXAMPLE OF AN ENTITY(in this case a medkit)
- --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, false, 10, false, {TEAM_GUN}, "models/props_c17/oildrum001_explosive.mdl")
- --EXAMPLE OF A BOUNCY BALL: NOTE THAT YOU HAVE TO PRESS E REALLY QUICKLY ON THE BOMB OR YOU'LL EAT THE BALL LOL
- --AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, true, 10, true)
- -- ADD CUSTOM SHIPMENTS HERE(next line):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement