Garry's Mod Wiki

Revision Difference

engine.ActiveGamemode#528488

<function name="ActiveGamemode" parent="engine" type="libraryfunc"> <description>Returns the name of the currently running gamemode.</description> <realm>Shared and Menu</realm> <rets> <ret name="" type="string">The active gamemode's name. This is the name of the gamemode's folder.</ret> </rets> </function> <example> <description>Prints out the name of the active gamemode.</description> <code>print( engine.ActiveGamemode() )</code> <outputfixedwidth>Fixed width</outputfixedwidth>⤶ <output>sandbox</output>⤶ <output>⤶ ```⤶ sandbox⤶ ```⤶ </output>⤶ </example>