Disable f8 commands

How can I disable players on my server from giving commands via the “F8” and using only chat to carry out the commands

You don’t, in what scenario would you need to do that?

No, I would like the commands like / carry to work only in the “T” chat and not in F8

whats the point lmaoo

I know it’s doable somehow (a server I played on a lot did just that), but I too fail to see the actual point of such a limitation.

The real point is to disable “Binds” on the server

Just disable the console through the FiveM Controls docs?

Citizen.CreateThread(function()
    while true do
        Wait(0)
        DisableControlAction(0, 169, true)
    end
end)

I tested it but it didn’t work

It does work, just make a server side event with DropPlayer and kick the player if he is pressing the key.