NetworkClient

getCommerceProductPrice

GET_COMMERCE_PRODUCT_PRICE0xCA94551B50B4932C

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
indexintnumberinteger

Returns

string JavaScript string, Lua string

Reference

Namespace
Network NETWORK
In the game
const char* GET_COMMERCE_PRODUCT_PRICE(int index)
Hash
0xCA94551B50B4932C

Open in the interactive natives reference