ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. isPlayerInputBusy

Function

isPlayerInputBusy

ClientInput and controlsTrilogy Hub only

Checks whether the player is typing or in a menu: chat, console, game menu, cursor or a text field. When true, action keys should be ignored.

Syntax

bool isPlayerInputBusy()

Returns

true if the player is busy.

Example

bindKey("e", "down", function()
    if isPlayerInputBusy() then return end
    triggerServerEvent("onPlayerUse", localPlayer)
end)

See also