Garry's Mod Wiki

Revision Difference

GM:CanUndo#527423

<function name="CanUndo" parent="GM" type="hook"> <ishook>yes</ishook> <description>Called whenever a players tries to undo.</description> <realm>Client</realm> <added>2020.06.24</added> <args> <arg name="ply" type="Player">The player who tried to undo something</arg> <arg name="undo" type="table">The undo table</arg>⤶ <arg name="undo" type="table">The undo table as a <page>Structures/Undo</page></arg>⤶ </args> <rets> <ret name="" type="boolean">Return false to disallow the undo</ret> </rets> </function>