MiscClient

getContentIdIndex

GET_CONTENT_ID_INDEX0xECF041186C5A94DC

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

SignatureJavaScript
getContentIdIndex(contentId: Hash): number
SignatureLua
getContentIdIndex(contentId: Hash): integer

Usage

JavaScript
const result = getContentIdIndex(contentId);
Lua
local result = getContentIdIndex(contentId)

Parameters

ParameterTypeJavaScriptLua
contentIdHashnumberinteger

Returns

int JavaScript number, Lua integer

Reference

Namespace
Misc MISC
In the game
int GET_CONTENT_ID_INDEX(Hash contentId)
Hash
0xECF041186C5A94DC
Introduced
Game build 2612 legacy numbering
Formerly
_GET_CONTENT_MAP_INDEX

Open in the interactive natives reference