MiscClient

setContentIdIndex

SET_CONTENT_ID_INDEX0x4B82FA6F2D624634

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

SignatureJavaScript
setContentIdIndex(contentId: Hash, index: number): void
SignatureLua
setContentIdIndex(contentId: Hash, index: integer)

Usage

JavaScript
setContentIdIndex(contentId, index);
Lua
setContentIdIndex(contentId, index)

Parameters

ParameterTypeJavaScriptLua
contentIdHashnumberinteger
indexintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Misc MISC
In the game
void SET_CONTENT_ID_INDEX(Hash contentId, int index)
Hash
0x4B82FA6F2D624634
Introduced
Game build 2612 legacy numbering
Formerly
_SET_CONTENT_MAP_INDEX

Open in the interactive natives reference