I'm making a new simple admin mod for GMod 13 (considered posting this in the GMod 13 thread, but this is LUA so...), but whenever I make my DFrame popup, it appears, but I can still control my player and change weapons etc. instead of the cursor being visible and being able to interact with the DFrame.
This is my code:
[code]
local Menu = vgui.Create("DFrame")
Menu:SetPos(ScrW() / 2 - 100, ScrH() / 2 - 200) // I know there's center()
Menu:SetSize(200, 200)
Menu:SetVisible(true)
Menu:SetTitle("Tosh's MiniMod")
Menu:SetDraggable(false)
Menu:SetBackgroundBlur(true)
[/code]
I've had this problem before, but I have no idea how to fix it.
The DFrame and all other controls are constructed in a function, and then this function is run via a ConCommand.
Any help is appreciated! Always willing to learn new LUA tricks.
[b]EDIT:[/b]
Fixed by my good friend Nak - he noticed that I was using Menu:Show() instead of Menu:MakePopup() !
Sorry, you need to Log In to post a reply to this thread.