Garry's Mod Wiki

Player:SuppressHint

  Player:SuppressHint( string name )

Description

Prevents a hint from showing up.

This function is only available in Sandbox and its derivatives

Arguments

1 string name
Hint name/class/index to prevent from showing up. You can find a list of hint names for this function here.

Example

Removes three default Sandbox hints (taken from the source code of the Sandbox gamemode):

-- 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 ...