HolyLib Wiki

HolyLib:GetGModTags

  string HolyLib:GetGModTags( )

Description

This hook is called when Gmod is updating it's servertags.
You can override the servertags freely by simply returning the new string .

Returns

1string tags
The new tags to push

Example

Template for adding custom tags
hook.Add("HolyLib:GetGModTags", "Example", function() local tags = { "gm:sandbox", -- Gamemode name. (Not title!) "gmc:sandbox", -- Gamemode category "ver:"..VERSION, -- Server version "loc:de", -- server location "hltv:1", -- mark the server as a hltv server. "gmws:123456789", -- Gamemode workshop id (Do collectons work? idk) } return table.concat(tags, " ") end)