For my gamemode, I need to disable ducking and jumping. This is my code so far:
function GM:PlayerBindPress(Player, Bind, bPressed)
if(string.find(Bind, “jump”) or string.find(Bind, “duck”)) then
But that doesn’t disable it being ran from console. I don’t think I can run alias on the player, because that would screw up the commands until they restart the game.