getKeyboardLayout | Multi Theft Auto: Wiki Skip to content

getKeyboardLayout

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

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

getKeyboardLayout ( )

Code Examples

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