getKeyboardLayout | Multi Theft Auto: Wiki Skip to content

getKeyboardLayout

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 gets the player's keyboard layout settings, which they are currently (keyboard layout can be changed at any moment) using at the time of invocation.

Syntax

table getKeyboardLayout ( )

Returns

  • table: value

Returns a table with keyboard layout properties:

Code Examples

shared
addCommandHandler("layout", function()
outputConsole( inspect( getKeyboardLayout() ) )--output keyboard layout in console (F8)
end)