Garry's Mod Wiki

Revision Difference

Player:SuppressHint#527171

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