NetworkClientBlocked

networkSendInviteViaPresence

NETWORK_SEND_INVITE_VIA_PRESENCE0xC3C7A6AFDB244624

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

SignatureJavaScript
networkSendInviteViaPresence(
  gamerHandle: null,
  p1: string,
  dataCount: number,
  p3: number
): boolean
SignatureLua
networkSendInviteViaPresence(
  gamerHandle: nil,
  p1: string,
  dataCount: integer,
  p3: integer
): boolean
✕
Blocked for scripts: Raw memory and structures

This native reads or fills a memory structure a script has no way to provide, so it is not callable. For entity lists, use lsmp.getGamePool. For JSON, use lsmp.json.

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
Network NETWORK
In the game
BOOL NETWORK_SEND_INVITE_VIA_PRESENCE(Any* gamerHandle, const char* p1, int dataCount, int p3)
Hash
0xC3C7A6AFDB244624
Formerly
_NETWORK_SEND_PRESENCE_INVITE

Open in the interactive natives reference