Net shoppingClientBlocked

netGameserverGetPrice

NET_GAMESERVER_GET_PRICE0xC27009422FCCA88D

The GTA V native NET_GAMESERVER_GET_PRICE of the NETSHOPPING namespace, as LS:MP client scripts call it: the global function netGameserverGetPrice, in JavaScript and in Lua.

SignatureJavaScript
netGameserverGetPrice(itemHash: Hash, categoryHash: Hash, p2: boolean): number
SignatureLua
netGameserverGetPrice(
  itemHash: Hash,
  categoryHash: Hash,
  p2: boolean
): integer
✕
Blocked for scripts: Rockstar accounts and commerce

Resources do not touch Rockstar accounts, Social Club data, GTA$ or the game's online shops. Keep your own economy and profiles on your server, with storage.

Calling it raises disabled by LSMP script policy, which try / catch (JavaScript) or pcall (Lua) can intercept. Nothing reaches the game. See Blocked natives.

Reference

Namespace
Net shopping NETSHOPPING
In the game
int NET_GAMESERVER_GET_PRICE(Hash itemHash, Hash categoryHash, BOOL p2)
Hash
0xC27009422FCCA88D
Formerly
_NETWORK_SHOP_GET_PRICE

Open in the interactive natives reference