NetworkClient

getCommerceItemId

GET_COMMERCE_ITEM_ID0x662635855957C411

The GTA V native GET_COMMERCE_ITEM_ID of the NETWORK namespace, as LS:MP client scripts call it: the global function getCommerceItemId, in JavaScript and in Lua.

SignatureJavaScript
getCommerceItemId(index: number): string
SignatureLua
getCommerceItemId(index: integer): string

Usage

JavaScript
const text = getCommerceItemId(index);
Lua
local text = getCommerceItemId(index)

Parameters

ParameterTypeJavaScriptLua
indexintnumberinteger

Returns

string JavaScript string, Lua string

Reference

Namespace
Network NETWORK
In the game
const char* GET_COMMERCE_ITEM_ID(int index)
Hash
0x662635855957C411

Open in the interactive natives reference