Net shoppingClientBlocked

netGameserverBeginService

NET_GAMESERVER_BEGIN_SERVICE0x3C5FD37B5499582E

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

SignatureJavaScript
netGameserverBeginService(
  categoryHash: Hash,
  itemHash: Hash,
  actionTypeHash: Hash,
  value: number,
  flags: number
): [ok: boolean, transactionId: number]
SignatureLua
netGameserverBeginService(
  categoryHash: Hash,
  itemHash: Hash,
  actionTypeHash: Hash,
  value: integer,
  flags: integer
): 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
BOOL NET_GAMESERVER_BEGIN_SERVICE(int* transactionId, Hash categoryHash, Hash itemHash, Hash actionTypeHash, int value, int flags)
Hash
0x3C5FD37B5499582E
Formerly
_NETWORK_SHOP_BEGIN_SERVICE

Open in the interactive natives reference