networkGetContentModifierListId
NETWORK_GET_CONTENT_MODIFIER_LIST_ID0x187382F8A3E0A6C3The GTA V native NETWORK_GET_CONTENT_MODIFIER_LIST_ID of the NETWORK namespace, as LS:MP client scripts call it: the global function networkGetContentModifierListId, in JavaScript and in Lua.
networkGetContentModifierListId(contentHash: Hash): numbernetworkGetContentModifierListId(contentHash: Hash): integerUsage
const result = networkGetContentModifierListId(contentHash);local result = networkGetContentModifierListId(contentHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
contentHash | Hash | number | integer |
Returns
int JavaScript number, Lua integerNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Return the content modifier id (the tunables context if you want) of a specific content.
It takes the content hash (which is the mission id hash), and return the content modifier id, used as the tunables context.
The mission id can be found on the Social club, for example, 'socialclub.rockstargames.com/games/gtav/jobs/job/A8M6Bz8MLEC5xngvDCzGwA'
'A8M6Bz8MLEC5xngvDCzGwA' is the mission id, so the game hash this and use it as the parameter for this native.
Reference
- Namespace
- Network NETWORK
- In the game
int NETWORK_GET_CONTENT_MODIFIER_LIST_ID(Hash contentHash)- Hash
0x187382F8A3E0A6C3- Formerly
_GET_TUNABLES_CONTENT_MODIFIER_ID