Garry's Mod Wiki

Undo

Description

Table structure used by undo.Do_Undo and GM:CanUndo.

Parameters

Player Owner
The player responsible who owns the undo
string Name
The name of the text to report to the player
table Entities
A table of entities to be removed by the undo
table Functions
A table of {function_to_call, func_arg2, func_arg3}
string CustomUndoText
A custom undo text to show the client
string NiceName
A "nice" name of the undo, which will be used for the UI