getContentIdIndex
GET_CONTENT_ID_INDEX0xECF041186C5A94DCThe 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.
getContentIdIndex(contentId: Hash): numbergetContentIdIndex(contentId: Hash): integerUsage
JavaScript
const result = getContentIdIndex(contentId);Lua
local result = getContentIdIndex(contentId)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
contentId | Hash | number | integer |
Returns
int JavaScript number, Lua integerReference
- 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