• DButton detect right click
    1 replies, posted
How could I make a DButton detect whether it was left-clicked or right-clicked and act accordingly?
button.DoClick and button.DoRightClick [code] local buddybutton = vgui.Create("DButton") buddybutton:SetSize(280, 35) buddybutton:SetPos(40, 300) buddybutton:SetText("Add a Buddy") buddybutton.DoClick = function() print'hey' end buddybutton.DoRightClick = function() print'bawss' end [/code]
Sorry, you need to Log In to post a reply to this thread.