How to disable Jump and X Glitch?

As you can see in the video, I’m spamming |spacebar| and |X| permanently and this creates this movement, I find it unnecessary or not appropriate on a FiveM Roleplay server
i tried already few things
This is a Loop Function from a Libary i also tested it with the normal and nothing changed
I can happily spam both buttons and nothing changes…

i disabled all emote menus etc…
I tested it on different servers, it’s the same there too

CreateLoop(function(loopId)
    DeleteStuntJump (ped)
    DisableControlAction("X")
    DisableControlForSeconds("x",  5)
end,1)