MiscClientNot in this build

getChosenCriminalCareer

GET_CHOSEN_CRIMINAL_CAREER

The GTA V native GET_CHOSEN_CRIMINAL_CAREER of the MISC namespace, as LS:MP client scripts call it: the global function getChosenCriminalCareer, in JavaScript and in Lua.

SignatureJavaScript
getChosenCriminalCareer(): number
SignatureLua
getChosenCriminalCareer(): 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 = getChosenCriminalCareer();
Lua
local result = getChosenCriminalCareer()

Parameters

None.

Returns

int JavaScript number, Lua integer

Reference

Namespace
Misc MISC
In the game
int GET_CHOSEN_CRIMINAL_CAREER()

Open in the interactive natives reference