Revision Difference
engine.GetGamemodes#516951
<function name="GetGamemodes" parent="engine" type="libraryfunc">
<description>Returns a table containing info for all installed gamemodes</description>
<realm>Shared and Menu</realm>
<rets>
<ret name="" type="table">gamemodes</ret>
</rets>
</function>
⤶
{{Example⤶
| Description = Prints out a list of gamemodes and various info⤶
| Code = PrintTable( engine.GetGamemodes() )⤶
| Output = ⤶
```⤶
⤶
<example>⤶
<description>Prints out a list of gamemodes and various info</description>⤶
<code>PrintTable( engine.GetGamemodes() )</code>⤶
<output>⤶
⤶
```⤶
1:
title = Base
workshopid =
menusystem = false
maps =
name = base
2:
title = Sandbox
workshopid =
menusystem = true
maps = ^gm_| ^gmod_
name = sandbox
```
```
}}
</output>⤶
⤶
</example>