Hi guys looking to change the background colour of this button really new with lua but heres my attempt that doesnt work at all.
if PS.Config.CanPlayersGivePoints then
local givebutton = vgui.Create('DButton', preview or self,)
givebutton:SetColor(34, 48, 61, 255)
givebutton:SetText("Give "..PS.Config.PointsName)
if PS.Config.DisplayPreviewInMenu then
givebutton:DockMargin(8, 8, 8, 8)
else
givebutton:DockMargin(8, 0, 8, 8)
end
givebutton:Dock(BOTTOM)
givebutton.DoClick = function()
vgui.Create('DPointShopGivePoints')
end
end