Skip to content

function disableKey (client-side)

Available since version: 0.0.0

This function will disable/enable specified game key action, like: Game Menu on (ESC), Inventory on (TAB), etc.


void disableKey(int id, bool toggle)


  • int id: the id of the key. For more information see Key constants.
  • bool toggle: true when you want to disable specified game key action, otherwise false.