Garry's Mod Wiki

GM:CanCreateUndo

  boolean GM:CanCreateUndo( Player ply, table undo )

Description

Called whenever a players tries to create an undo.

Arguments

1 Player ply
The player who tried to create something.
2 table undo
The undo table as a Undo structure.

Returns

1 boolean
Return false to disallow creation of the undo.