Garry's Mod Wiki

Revision Difference

Player:SuppressHint#549820

<function name="SuppressHint" parent="Player" type="classfunc"> <description> Prevents a hint from showing up. <note>This function is only available in Sandbox and its derivatives</note> </description> <realm>Server</realm> <file line="129-L137">gamemodes/sandbox/gamemode/player_extension.lua</file>⤶ <args> <arg name="name" type="string">Hint name/class/index to prevent from showing up</arg> </args> </function> <example> <description>Removes three default Sandbox hints (taken from the source code of the Sandbox gamemode):</description> <code> -- Hint type: Show opening menu hint -- ... Suppress this hint => ply:SuppressHint( "OpeningMenu" ) -- Hint type: Tell them how to turn the hints off -- ... Suppress this hint => ply:SuppressHint( "Annoy1" ) ply:SuppressHint( "Annoy2" ) -- Other default Hint types: PhysgunFreeze, PhysgunUse, VehicleView ... </code> </example>