setContentIdIndex
SET_CONTENT_ID_INDEX0x4B82FA6F2D624634The 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.
setContentIdIndex(contentId: Hash, index: number): voidsetContentIdIndex(contentId: Hash, index: integer)Usage
JavaScript
setContentIdIndex(contentId, index);Lua
setContentIdIndex(contentId, index)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
contentId | Hash | number | integer |
index | int | number | integer |
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