NetworkClient

getCommerceItemCat

GET_COMMERCE_ITEM_CAT0x6F44CBF56D79FAC0

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

SignatureJavaScript
getCommerceItemCat(index: number, index2: number): string
SignatureLua
getCommerceItemCat(index: integer, index2: integer): string

Usage

JavaScript
const text = getCommerceItemCat(index, index2);
Lua
local text = getCommerceItemCat(index, index2)

Parameters

ParameterTypeJavaScriptLua
indexintnumberinteger
index2intnumberinteger

Returns

string JavaScript string, Lua string

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

index2 is unused

Reference

Namespace
Network NETWORK
In the game
const char* GET_COMMERCE_ITEM_CAT(int index, int index2)
Hash
0x6F44CBF56D79FAC0

Open in the interactive natives reference