NetworkClient

networkGetContentModifierListId

NETWORK_GET_CONTENT_MODIFIER_LIST_ID0x187382F8A3E0A6C3

The 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.

SignatureJavaScript
networkGetContentModifierListId(contentHash: Hash): number
SignatureLua
networkGetContentModifierListId(contentHash: Hash): integer

Usage

JavaScript
const result = networkGetContentModifierListId(contentHash);
Lua
local result = networkGetContentModifierListId(contentHash)

Parameters

ParameterTypeJavaScriptLua
contentHashHashnumberinteger

Returns

int JavaScript number, Lua integer

Notes

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

Open in the interactive natives reference