getGamepadType
_GET_GAMEPAD_TYPE0x18E474F40EF05F10The GTA V native _GET_GAMEPAD_TYPE of the PAD namespace, as LS:MP client scripts call it: the global function getGamepadType, in JavaScript and in Lua.
getGamepadType(): numbergetGamepadType(): integer⚠
Not in this game build
The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.
Usage
JavaScript
const result = getGamepadType();Lua
local result = getGamepadType()Parameters
None.
Returns
int JavaScript number, Lua integerNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Always returns zero.
Reference
- Namespace
- Controls PAD
- In the game
int _GET_GAMEPAD_TYPE()- Hash
0x18E474F40EF05F10- Introduced
- Game build 3570 legacy numbering