getLandingPageSelectedCharacterSlot
GET_LANDING_PAGE_SELECTED_CHARACTER_SLOTThe GTA V native GET_LANDING_PAGE_SELECTED_CHARACTER_SLOT of the LANDINGPAGE namespace, as LS:MP client scripts call it: the global function getLandingPageSelectedCharacterSlot, in JavaScript and in Lua.
getLandingPageSelectedCharacterSlot(): numbergetLandingPageSelectedCharacterSlot(): 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 = getLandingPageSelectedCharacterSlot();Lua
local result = getLandingPageSelectedCharacterSlot()Parameters
None.
Returns
int JavaScript number, Lua integerReference
- Namespace
- Landing page LANDINGPAGE
- In the game
int GET_LANDING_PAGE_SELECTED_CHARACTER_SLOT()