GM:CanUndo
Description
Called whenever a players tries to undo.
Arguments
Returns
Example
Here's a trick you can do to achieve the behavior of this function on the client.
hook.Add( "PlayerBindPress", "CanUndo", function( ply, bind )
if ply == LocalPlayer() and bind == "gmod_undo" then
return true -- false to allow, true to prevent
end
end )