• Custom Spawnlist
    0 replies, posted
Hello, I have a script that can display a custom spawnlist, but I would like the basic spawnlist to be enabled for admin or certain groups. Can you help me ? I have two lua files : One with : hook.Add("PostGamemodeLoaded", "RemoveClientSpawnList", function()     GAMEMODE.PopulatePropMenu = function() end end) And [.....] }hook.Add("PopulateContent", "RoleplayProps", function(pnlContent, tree)     local babtou = tree:AddNode("VIP", "icon16/shield.png")     babtou:ExpandTo(true)     for k,v in pairs(srpjm_spawnmenu) do         local k = babtou:AddNode(k, v.icon)         local ViewPanel = vgui.Create("ContentContainer", pnlContent)         ViewPanel:SetVisible(false)         k.DoClick = function()                    ViewPanel:Clear(true)             local mdlicon = spawnmenu.GetContentType("model")             if mdlicon then                 for _,mdl in pairs(v.model) do                     mdlicon(ViewPanel, {model = mdl})                 end             end             pnlContent:SwitchPanel(ViewPanel)         end     end end)
Sorry, you need to Log In to post a reply to this thread.