Garry's Mod Wiki


notification.AddProgress( any id, string strText, number frac = nil )


Adds a notification with an animated progress bar.


1 any id
Can be any type. It's used as an index.
2 string strText
The text to show
3 number frac = nil
If set, overrides the progress bar animation with given percentage. Range is 0 to 1.


Add a notification that says "Downloading file...", and remove after three seconds.

notification.AddProgress("FileDownload", "Downloading file...") timer.Simple(3, function() notification.Kill("FileDownload") end)

Page Links

Special Pages



Render Time: 129ms

DB GetPage 72
Generate Html 15
SaveChanges (1) 17
Render Body 0
Render Sidebar 20