IsCapsLockEnabled

From Multi Theft Auto: Wiki
Revision as of 22:13, 12 September 2022 by Lettify (talk | contribs) (add NOTOC)
Jump to navigation Jump to search

Syntax

bool isCapsLockEnabled()

Returns

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

Example

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

Requirements

Minimum server version n/a
Minimum client version 1.5.9-9.21266

Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.5.9-9.21266" />

See Also

Shared