dont try new things on production !!!!!
This commit is contained in:
parent
d9c9923a7d
commit
2c4a72d3e2
@ -1,17 +1,19 @@
|
||||
|
||||
local DISCORD_URL = ""
|
||||
local COLLECTION_URL = ""
|
||||
-- from: ulx-custom-commands/lua/ulx/modules/sh/cc_menus.lua
|
||||
|
||||
CreateConVar("discord_url", "https://discord.gg/")
|
||||
CreateConVar("collection_url", "https://steamcommunity.com/sharedfiles/filedetails/?id=")
|
||||
|
||||
function ulx.discord(calling_ply)
|
||||
gui.OpenURL(DISCORD_URL)
|
||||
calling_ply:SendLua( [[gui.OpenURL("]] .. GetConVar("discord_url"):GetString() .. [[")]] )
|
||||
end
|
||||
local discord = ulx.command("Utility", "ulx discord", ulx.discord, {"!disc", "!discord"})
|
||||
local discord = ulx.command("Menus", "ulx discord", ulx.discord, {"!disc", "!discord"})
|
||||
discord:defaultAccess(ULib.ACCESS_ALL)
|
||||
discord:help("View Discord invite.")
|
||||
|
||||
function ulx.collection(calling_ply)
|
||||
gui.OpenURL(COLLECTION_URL)
|
||||
calling_ply:SendLua( [[gui.OpenURL("]] .. GetConVar("collection_url"):GetString() .. [[")]] )
|
||||
end
|
||||
local collection = ulx.command("Utility", "ulx collection", ulx.collection, "!collection")
|
||||
local collection = ulx.command("Menus", "ulx collection", ulx.collection, "!collection")
|
||||
collection:defaultAccess(ULib.ACCESS_ALL)
|
||||
collection:help("View server collection information.")
|
||||
|
Loading…
Reference in New Issue
Block a user