- Documentation
- Client functions
- isPlayerInputBusy
Function
isPlayerInputBusy
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)