getCommerceItemCat
GET_COMMERCE_ITEM_CAT0x6F44CBF56D79FAC0The 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.
getCommerceItemCat(index: number, index2: number): stringgetCommerceItemCat(index: integer, index2: integer): stringUsage
JavaScript
const text = getCommerceItemCat(index, index2);Lua
local text = getCommerceItemCat(index, index2)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
index | int | number | integer |
index2 | int | number | integer |
Returns
string JavaScript string, Lua stringNotes
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