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

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

Page Links


Special Pages


Wikis

?

Render Time: 26ms

DB GetPage 3
Generate Html 2
SaveChanges (1) 11
Render Body 0
Render Sidebar 7