The Lab
SCRIPT native

_NET_RPC_GUID_TO_STRING

returns const char*1 parambuild 1311

Converts the network RPC GUID netRpcGuid to a printable string, mainly for debugging.

Signature

C
const char* _NET_RPC_GUID_TO_STRING(Any* netRpcGuid); // 0xAC9FF854BD4BA9B5 b1311

Parameters

#NameType
1netRpcGuidAny* (out pointer)

Facts

Facts about _NET_RPC_GUID_TO_STRING
Name
_NET_RPC_GUID_TO_STRING
Hash
0xAC9FF854BD4BA9B5
Namespace
Returns
const char*
Game build
1311

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result, netRpcGuid = Citizen.InvokeNative(0xAC9FF854BD4BA9B5, -- _NET_RPC_GUID_TO_STRING
  Citizen.PointerValueInt(), -- Any* netRpcGuid
  Citizen.ResultAsString()
)
print(result, netRpcGuid)
JavaScript
const [result, netRpcGuid] = Citizen.invokeNative("0xAC9FF854BD4BA9B5", // _NET_RPC_GUID_TO_STRING
  Citizen.pointerValueInt(), // Any* netRpcGuid
  Citizen.resultAsString()
);
console.log(result, netRpcGuid)
C#
var netRpcGuidArg = new OutputArgument();
string result = Function.Call<string>((Hash)0xAC9FF854BD4BA9B5, // _NET_RPC_GUID_TO_STRING
  netRpcGuidArg // Any* netRpcGuid
);
int netRpcGuid = netRpcGuidArg.GetResult<int>();
All SCRIPT natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.