Player.SendHint
From GMod Wiki
Gamemode Function: Player.SendHint | |
---|---|
Player.SendHint is a function that is defined in the Sandbox Gamemode and its derivatives. |
Function | |
Syntax | Player:SendHint( String Message, Number delay ( In seconds before displayed ) ) |
Description: | |
Prints a message to user in a hint box. | |
Returns: | nil |
In Object: | Player |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.SendHint]Player.SendHint [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | Sends a hint to everyone in the server |
---|---|
Used on | |
Code | for k,ply in pairs(player.GetAll()) do ply:SendHint( "This is a hint!",5) end |
Output | Shows everyone a hint with the text "This is a hint!" |
Additional Notes
- Prints #Hint_ before message.
- Appears to be broken in a recent update, use this instead: Gamemode.AddNotify