Garry's Mod Wiki

notification.AddProgress

notification.AddProgress( any id, string strText )

Description

Adds a notification with an animated progress bar.

Arguments

1 any id
Can be any type. It's used as an index.
2 string strText
The text to show

Example

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


Wikis

?

Render Time: 32ms

Session 0
DB GetPage 3
Generate Html 6
SaveChanges 11
Render Body 0
Render Sidebar 9