isCapsLockEnabled | Multi Theft Auto: Wiki Skip to content

isCapsLockEnabled

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function returns the state of the caps lock.

Syntax

bool isCapsLockEnabled ( )

Returns

  • bool: value

Returns true if caps lock is toggled (on), false otherwise.

Code Examples

shared
function checkCaps()
iprint(isCapsLockEnabled(), getTickCount())
end
addCommandHandler("caps", checkCaps)