PWAD·rawset(_G, "TAKIS_INVITELINK", 'Join the server! - https://discord.gg/9JV9KvjgMu') addHook("PlayerSpawn", function(p) if p.discord == nil then p.discord = true end end) hud.add(function(v, p) if not netgame return end if p.discord == true v.drawString(160, 0, TAKIS_INVITELINK,V_SNAPTOTOP|V_ALLOWLOWERCASE|V_30TRANS, "thin-center") end end) COM_AddCommand("displayInvite", function(p) if p.valid if p.discord p.discord = false else p.discord = true end end end, COM_ADMIN) COM_AddCommand("setinvite", function(p,link) if not p.valid return end if (link == nil) CONS_Printf(p,'Put your Discord invite link after the command. Put "" to hide the text.') CONS_Printf(p,'Current text is...') CONS_Printf(p,TAKIS_INVITELINK) return end TAKIS_INVITELINK = tostring(link) end, COM_ADMIN) addHook("NetVars",function(n) TAKIS_INVITELINK = n($) end) «LUA_MOTD