Garry's Mod Wiki

Revision Difference

GM:GetGameDescription#528215

<function name="GetGameDescription" parent="GM" type="hook"> <ishook>yes</ishook> <description>Called when the game(server) needs to update the text shown in the server browser as the gamemode. <note>This hook (and the `sv_gamename_override` command) may not work on some popular gamemodes like `DarkRP` or `Trouble Terrorist Town`. This is not a bug, it's just how it works. See [here](https://github.com/Facepunch/garrysmod-issues/issues/4637#issuecomment-677884989) for more information.</note> <note>This hook (and the sv_gamename_override command) may not work on some popular gamemodes like DarkRP or Trouble Terrorist Town. This is not a bug, it's just how it works. See [here](https://github.com/Facepunch/garrysmod-issues/issues/4637#issuecomment-677884989) for more information.</note> <warning>This hook only works on dedicated servers.</warning> </description> <realm>Shared</realm> <predicted>No</predicted> <rets> <ret name="" type="string">The text to be shown in the server browser as the gamemode.</ret> </rets> </function>