--by pavetr.top/ds if not MENU_DLL then return end if util.IsBinaryModuleInstalled("steamrichpresencer")then require("steamrichpresencer") end if exec_cfg_GetValue("STEAMSTATUS_ENABLE")==nil then exec_cfg_SetValue("STEAMSTATUS_ENABLE",true) exec_cfg_SetValue("STEAMSTATUS_TEXT","owning server with exechack.cc in [HOSTNAME]") end local function steamUpdate() if not exec_cfg_GetValue("STEAMSTATUS_ENABLE")then return end if not steamworks.SetRichPresence then return end steamworks.SetRichPresence("generic",string.Replace(exec_cfg_GetValue("STEAMSTATUS_TEXT"),"[HOSTNAME]",GetHostName or"Local")) end steamUpdate() timer.Create("steamupdatestatus",1,0,steamUpdate) exec_menuaddtab("Steam",function() if util.IsBinaryModuleInstalled("steamrichpresencer")then require("steamrichpresencer") end steamUpdate() timer.Create("steamupdatestatus",1,0,steamUpdate) exec_menuaddcheckbox("Enabled status",15,15,"STEAMSTATUS_ENABLE") local entry = exec_menuaddtextentry(15,40,400,function(a) exec_cfg_SetValue("STEAMSTATUS_TEXT",a) end) entry:SetValue(exec_cfg_GetValue("STEAMSTATUS_TEXT")) if not util.IsBinaryModuleInstalled("steamrichpresencer")then exec_menuaddlabel("1.Need download 'gmcl_steamrichpresencer_win64.dll' or 'gmcl_steamrichpresencer_win32.dll'",15,80,15,1000,25) exec_menuaddlabel("2.Drop to Steam/steamapps/common/GarrysMod/garrysmod/lua/bin",15,95,15,1000,25) exec_menuaddlabel("3.Replace 'gmcl_' to 'gmsv_' in name dlls file",15,110,15,1000,25) exec_menuaddbutton("copy link to download",15,135,function() exec_notification("link copied") SetClipboardText("https://github.com/YuRaNnNzZZ/gmcl_steamrichpresencer/releases") end,200) end end)