Garry's Mod Wiki

FireProblem

  FireProblem( table prob )

Description

Fires a Problem with the given Data.

Arguments

1 table prob
The Problem table. See Structures/Problem

Example

Creating a custom Problem

local problem = { ["id"] = "Example", ["text"] = "This is an Example Problem.", ["type"] = "addons", ["fix"] = function() ClearProblem("Example") print("Fixed Problem.") end } FireProblem(problem)