switchPcScriptedControls
SWITCH_PC_SCRIPTED_CONTROLS0x4683149ED1DDE7A1The GTA V native SWITCH_PC_SCRIPTED_CONTROLS of the PAD namespace, as LS:MP client scripts call it: the global function switchPcScriptedControls, in JavaScript and in Lua.
switchPcScriptedControls(schemeName: string): booleanswitchPcScriptedControls(schemeName: string): boolean✕
Blocked for scripts: Shared menus and input
LS:MP manages the shared frontend, text-entry dialog and input layout. Use the LS:MP page and input APIs for resource UI.
Calling it raises disabled by LSMP script policy, which try / catch (JavaScript) or pcall (Lua) can intercept. Nothing reaches the game. See Blocked natives.
Reference
- Namespace
- Controls PAD
- In the game
BOOL SWITCH_PC_SCRIPTED_CONTROLS(const char* schemeName)- Hash
0x4683149ED1DDE7A1- Formerly
_SWITCH_TO_INPUT_MAPPING_SCHEME_2