Garry's Mod Wiki


notification.AddLegacy( string text, number type, number length )


Adds a standard notification to your screen.


1 string text
The text to display.
2 number type
Determines the notification method (e.g. icon) for displaying the notification. See the Enums/NOTIFY.
3 number length
The number of seconds to display the notification for.


Adds a prop undo notification to the screen, like in Sandbox.

notification.AddLegacy( "Undone Prop", NOTIFY_UNDO, 2 ) surface.PlaySound( "buttons/button15.wav" ) Msg( "Prop undone\n" )
Output: Adds a notice that says "Undone Prop", plays the undo sound, and adds a message to the console.

Page Links

Special Pages



Render Time: 40ms

DB GetPage 4
Generate Html 4
SaveChanges (1) 10
Render Body 0
Render Sidebar 19