Gamemode.AddNotify
From GMod Wiki
Event Hook | |
Hook Name | AddNotify |
Syntax | GM:AddNotify( String Message, Number Type, Integer Duration ) |
Description | Sends a notice to the player |
Returns | Nil |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.AddNotify]Gamemode.AddNotify [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Displays the notification "Obey the rules" on the screen for 5 seconds with the generic icon in front of it. |
---|---|
Used on | |
Code | GAMEMODE:AddNotify("Obey the rules.", NOTIFY_GENERIC, 5); |
Output |
List of Types
Icons are shown in the image on the right:
CLIENT | 0 | 0000 | NOTIFY_GENERIC CLIENT | 1 | 0001 | NOTIFY_ERROR CLIENT | 2 | 0010 | NOTIFY_UNDO CLIENT | 3 | 0011 | NOTIFY_HINT CLIENT | 4 | 0100 | NOTIFY_CLEANUP