Remove existing buttons like Z.


How do i remove the extisting button Z, so you cant undo items you placed?

use the hook for when players press binds, search the bind string for “undo”, if you find it return true to prevent it

he’s asking how to remove buttons like z in the thread title, but in reality he wants to not allow people to undo/remove their own props.

using your method you could simply just type gmod_undo in console and it would bypass it. do it the right way please.

you’re right, I don’t know much about the undo system, and PBP is clientside anyway, would the best way be to overwrite undo.Do_Undo?