Garry's Mod Wiki

Revision Difference

Player:SuppressHint#512557

<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>⤶ <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 =&amp;gt;⤶ ply:SuppressHint( "OpeningMenu" )⤶ ⤶ -- Hint type: Tell them how to turn the hints off⤶ -- ... Suppress this hint =&amp;gt;⤶ ply:SuppressHint( "Annoy1" )⤶ ply:SuppressHint( "Annoy2" )⤶ ⤶ -- Other default Hint types : PhysgunFreeze, PhysgunUse, VehicleView ...⤶ </code>⤶ ⤶ </example>