Player/SuppressHint

From Garry's Mod
Jump to: navigation, search
 Player:SuppressHint( )

Contents

Description

Prevents a hint from showing up.

NOTE

This function is only available in Sandbox and its derivatives

Arguments

string name

Hint name/class/index to prevent from showing up

Examples

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


Personal tools
Navigation