Garry's Mod Wiki



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


Owner [Player]

The player responsible who owns the undo

Name [string]

The name of the text to report to the player

Entities [table]

A table of entities to be removed by the undo

Functions [table]

A table of {function_to_call, func_arg2, func_arg3}

CustomUndoText [string]

A custom undo text to show the client

NiceName [string]

A "nice" name of the undo, which will be used for the UI