notification.AddProgress

From Garry's Mod
Jump to: navigation, search
 notification.AddProgress( )

Contents

Description

Adds a notification with an animated progress bar.

Arguments

any id

Can be any type. It's used as an index.

Arguments

string strText

The text to show

Examples

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)


Personal tools
Navigation