Skip to content

function enableKeys (client-side)

Available since version: 0.0.0

Note

This function is similiar to disableControls function, but does not restrict movement.

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

Declaration

void enableKeys(bool toggle)

Parameters

  • bool toggle: false when you want to disable game keys actions, otherwise true.