• When i open Derma menu on ent it opens about 100 menus
    3 replies, posted
Hello, So when i press e on my ENT this causes about 100 Derma Menus to open. Please could someone help with this? Here is the code cl_init.lua local function DrawTheMenu() [CODE] local Panel = vgui.Create('DFrame') Panel:SetSize(500, 500) Panel:Center() Panel:SetTitle('Title') Panel:ShowCloseButton(true) Panel:SetSizable(false) Panel:MakePopup() Panel:SetDraggable(false)[/CODE] init.lua [CODE]function ENT:Use( ply, caller ) umsg.Start( "DrawTheMenu", ply ) umsg.Short( "1" ) umsg.End() end[/CODE] If someone could help with this that would be great! Many thanks
use self:SetUseType(SIMPLE_USE) on Initialize
I have done that, nothing worked. I will try again. [editline]23rd November 2016[/editline] Solved :D [editline]23rd November 2016[/editline] Hello, need someone to tell me if it is possible for me to grab all online players and put them in the derma?
Yep, [lua] for k,v in pairs(player.GetHumans())do DLabel:SetText(v:Nick()) end [/lua]
Sorry, you need to Log In to post a reply to this thread.