Disabel Button Temporarily

I have the code below


net.Receive("displayagreement", function()
	local time = net.ReadUInt(16)
	nlr = {}
	nlr.frame = vgui.Create("DFrame")
	nlr.frame:SetSize(300, 200)
	nlr.frame:SetPos(ScrW() / 2 - 150, ScrH() / 2 - 100)
	nlr.frame:SetTitle("NLR Agreement")
	nlr.frame:ShowCloseButton(false)
	nlr.frame:SetDraggable(false)
	nlr.frame:SetBackgroundBlur(true)
	nlr.frame:MakePopup()
	nlr.frame:SetMouseInputEnabled(true)
	nlr.frame:SetKeyboardInputEnabled(true)
	
	nlr.label = vgui.Create("DLabel", nlr.frame)
	nlr.label:SetPos(10, 30)
	--	nlr.label:SetText("You have died, you may not return to your place of death
for " .. time)
	nlr.label:SetText(string.format(message, time))
	nlr.label:SizeToContents()
	
	nlr.accept = vgui.Create("DButton", nlr.frame)
	nlr.accept:SetSize(64, 32)
	nlr.accept:SetPos((300 / 2) - (64 / 2), 200 - (32 + 10))
	nlr.accept:SetText("I Accept")
	nlr.accept.DoClick = function()
		nlr.frame:SetVisible(false)
	end
end)

How would I set


nlr.accept = vgui.Create("DButton", nlr.frame)
	nlr.accept:SetSize(64, 32)
	nlr.accept:SetPos((300 / 2) - (64 / 2), 200 - (32 + 10))
	nlr.accept:SetText("I Accept")
	nlr.accept.DoClick = function()
		nlr.frame:SetVisible(false)
	end

To only become available to click after 3 seconds?

[lua]
nlr.accept = vgui.Create(“DButton”, nlr.frame)
nlr.accept:SetSize(64, 32)
nlr.accept:SetPos((300 / 2) - (64 / 2), 200 - (32 + 10))
nlr.accept:SetText(“I Accept”)
nlr.accept:SetEnabled( false );
nlr.accept.DoClick = function()
nlr.frame:SetVisible(false)
end
timer.Simple( 3, function()

if ( nlr.accept && nlr.accept:IsValid() ) then

nlr.accept:SetEnabled( true );

end

end);
[/lua]
?

I’ll try it later, too many people on my server to restart.