• LUA HELP
    2 replies, posted
Hello all i am needing help enabling my mouse pointer for my gamemode when you hit TAB so people can click my panel on the screen this is my panel code: [PHP]local P = vgui.Create( "DPanel", DermaPanel ) P:SetPos( 25, 50 ) P:SetSize( 250, 250 ) P.Paint = function() surface.SetDrawColor( 50, 50, 50, 255 ) surface.DrawRect( 0, 0, P:GetWide(), P:GetTall() ) end local DermaButton = vgui.Create( "DButton", P ) DermaButton:SetText( "Pick Team!" ) DermaButton:SetPos( 20, 10 ) DermaButton:SetSize( 200, 100 ) DermaButton.DoClick = function () RunConsoleCommand( "BRP_START" ) end[/PHP] [highlight](User was banned for this post ("UNDESCRIPTIVE THREAD TITLE (also, don't write all-caps thread titles)" - Gran PC))[/highlight]
gui.EnableScreenClicker(true) and then set it to false on OnClick
ok so i how would i make that work for tab and what do i put it in cl_init or init
Sorry, you need to Log In to post a reply to this thread.