Landing pageClientNot in this build

getLandingPageSelectedCharacterSlot

GET_LANDING_PAGE_SELECTED_CHARACTER_SLOT

The 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.

SignatureJavaScript
getLandingPageSelectedCharacterSlot(): number
SignatureLua
getLandingPageSelectedCharacterSlot(): 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 integer

Reference

Namespace
Landing page LANDINGPAGE
In the game
int GET_LANDING_PAGE_SELECTED_CHARACTER_SLOT()

Open in the interactive natives reference