Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AddCSLuaFile()
- if (CLIENT) then
- hook.Add("PopulateVJBaseHome","AddpwBaseSpawnMenu_Home",function(pnlContent,tree,node)
- local hometree = tree:AddNode("Home", "icon16/monkey.png")
- hometree.PropPanel = vgui.Create("ContentContainer", pnlContent)
- hometree.PropPanel:SetVisible(false)
- hometree.PropPanel:SetTriggerSpawnlistChange(false)
- //hometree.PropPanel:MoveToFront()
- function hometree:DoClick()
- pnlContent:SwitchPanel(self.PropPanel)
- end
- local Header1 = vgui.Create("DLabel")
- Header1:SetPos(40, 40)
- Header1:SetSize(200, 70)
- Header1:SetTextColor(Color(255, 102, 0, 255))
- Header1:SetText("Welcome to VJ Base!")
- hometree.PropPanel:Add(Header1)
- local Text1 = vgui.Create("DLabel")
- Header1:SetPos(80, 80)
- Text1:SetSize(100, 35)
- Text1:SetTextColor(Color(102, 204, 255, 255))
- Text1:SetText("By: DrVrej")
- hometree.PropPanel:Add(Text1)
- hometree:InternalDoClick()
- end)
- --[-------------------------------------------------------]--
- hook.Add("PopulateVJBaseEntities","AddpwBaseSpawnMenu_Entity",function(pnlContent,tree,node)
- local models = {
- ["Construction"] = {
- "models/props_fortifications/sandbags_line1.mdl",
- "models//props_trenches/sandbags_curved.mdl",
- "models/static_fortifications/sandbagwall01.mdl",
- "models/props_fortifications/sandbags_line1_tall.mdl",
- "models/props_fortifications/sandbags_corner2_tall.mdl",
- "models/props_trenches/curvedsandbags01.mdl",
- "models//props_trenches/sandbags_curved_endb.mdl",
- "models/props_trenches/sandbags_straight_endb.mdl",
- "models/props_trenches/sandbag01.mdl",
- "models/props_trenches/sandbags_straight.mdl",
- "models/sandbagwall02.mdl",
- "models/static_fortifications/sandbagwall02.mdl",
- },
- ["Box"] = {
- "models/props_junk/wood_crate001a.mdl",
- "models/props_supplies/german/acrate04.mdl",
- "models/props_supplies/german/88mm-crate_close01_physic.mdl",
- "models/props_supplies/german/r_crate_lefh18.mdl",
- "models/props_supplies/german/r_crate_pak50mm.mdl",
- "models/props_supplies/german/r_crate_lefh18_stacked.mdl",
- "models/props_supplies/german/r_crate_pak50mm_stacked.mdl",
- "models/props_supplies/german/acrate01.mdl",
- "models/props_supplies/german/acrate01_group.mdl",
- "models/props_supplies/german/acrate03.mdl",
- "models/props_supplies/german/acrate04.mdl",
- "models/props_supplies/german/ammobox1.mdl",
- "models/props_supplies/german/box4.mdl",
- "models/props_supplies/american/ac_footlocker_closed_physic.mdl",
- "models/props_supplies/american/ac_footlocker_open_phsyic.mdl",
- "models/props_supplies/german/20mm-crate_close01_physic.mdl",
- "models/items/supply_chest.mdl",
- },
- ["Autres"] = {
- "models/ww2_flags/flag_ww2_ww1_animated.mdl",
- "models/prop_medical_bundle_01.mdl",
- "models/prop_food_ration_01.mdl",
- "models/ammunition_crate_01.mdl",
- "models/wwii/humans/jap/gmod/ija_hero_06_tatsuhiko.mdl",
- "models/wwii/humans/jap/gmod/ija_hero_squadleader_04_kitano.mdl",
- "models/wwii/weapons/jap/type92_hmg.mdl",
- "models/wwii/weapons/jap/type89_mortar.mdl",
- "models/wwii/weapons/jap/type99_lmg.mdl",
- "models/wwii/weapons/jap/katana.mdl",
- "models/ironeurope/58mm crate.mdl",
- "models/ironeurope/grenaten ammo crate.mdl",
- "models/ironeurope/minewerfer ammo crate.mdl",
- "models/damik/isuzu type 94/isuzu - truck.mdl",
- "models/damik/isuzu type 94/isuzu - type 94.mdl",
- "models/props_supplies/german/tent1.mdl",
- "models/props_supplies/german/zeltbahn4.mdl",
- "models/tent_v2/tent_green_v2.mdl",
- "models/german tents/ro gertent3.mdl",
- "models/wwii/humans/usa/gmod/player/usmc_hero_06_bill.mdl",
- "models/wwii/humans/usa/gmod/player/usmc_hero_03_glenn.mdl",
- "models/wwii/humans/usa/gmod/us_hero_08_james.mdl",
- "models/wwii/humans/usa/gmod/us_hero_06_bill.mdl",
- "models/clutter/radio.mdl",
- "models/weapons/w_30cal.mdl",
- "models/props_furniture/r_bunkbed1.mdl",
- "models/props/cs_militia/bunkbed.mdl",
- "models/props/cs_militia/bunkbed2.mdl",
- "models/props/de_prodigy/ammo_can_01.mdl",
- "models/props/de_prodigy/prodcratesa.mdl",
- "models/props/cs_militia/ladderwood.mdl",
- "models/rs uslvta4.mdl",
- }
- }
- local RootNode = tree:AddNode("Resistance and Liberation Props", "icon16/resistance_and_liberation.png")
- local ViewPanel = vgui.Create("ContentContainer", pnlContent)
- ViewPanel:SetVisible(false)
- RootNode.DoClick = function()
- ViewPanel:Clear(true)
- for name, tbl in SortedPairs(models) do
- local label = vgui.Create("ContentHeader", container)
- label:SetText(name)
- ViewPanel:Add(label)
- for _, v in ipairs(tbl) do
- local mdlicon = spawnmenu.GetContentType("model")
- if mdlicon then
- mdlicon(ViewPanel, {model = v})
- end
- end
- end
- pnlContent:SwitchPanel(ViewPanel)
- end
- RootNode:SetExpanded(true)
- end)
- --[-------------------------------------------------------]--
- spawnmenu.AddCreationTab("Props",function()
- local ctrl = vgui.Create("SpawnmenuContentPanel")
- //ctrl:CallPopulateHook("PopulatepwBaseHome")
- ctrl:CallPopulateHook("PopulatepwBaseEntities")
- return ctrl
- end,"icon16/plugin.png",1,"Tout les props :)")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement