--exechack.cc/lua if exec_cfg_GetValue("NOTE_TXT")==nil then exec_cfg_SetValue("NOTE_TXT","") end if exec_cfg_GetValue("CFG_NOTE_SIZE")==nil then exec_cfg_SetValue("CFG_NOTE_SIZE",20) end exec_menuaddtab("NTP",function() exec_menuaddlabel("Text Size",15,30,20) exec_menuaddtextentry(15,50,70,function(txt) exec_cfg_SetValue("CFG_NOTE_SIZE",tonumber(txt) or 20) end) exec_menuaddbutton("Open Notepad",15,80,function() if IsValid(frame) then frame:Close() end surface.CreateFont( "exec_notepad", { font = "Trebuchet", size = exec_cfg_GetValue("CFG_NOTE_SIZE"), weight = 600, antialias = true, } ) local frame = vgui.Create("DFrame") frame:SetSize(500, 400) frame:Center() frame:SetTitle("Notepad") frame:MakePopup() frame.Paint = function(s,w,h) draw.RoundedBox(0,0,0,w,h,Color(0,0,0,150)) end local richtext = vgui.Create("DTextEntry",frame) richtext:Dock( FILL ) richtext:SetMultiline(true) richtext:SetFont("exec_notepad") richtext:SetText(exec_cfg_GetValue("NOTE_TXT")) richtext.OnTextChanged = function() exec_cfg_SetValue("NOTE_TXT",richtext:GetText()) end end) end)