RedM Natives

_NET_RPC_GUID_TO_STRING

Returns "INVALID_NET_RPC_GUID" if netRpcGuid is invalid.

Hash0xAC9FF854BD4BA9B5
Runtime nameNetRpcGuidToString
NamespaceSCRIPT
SideClient
NameCommunity guess
Docs
Since build1311

Signature

const char* _NET_RPC_GUID_TO_STRING(Any* netRpcGuid);

Parameters

NameTypeDescription
netRpcGuidAny*—

Returns const char*

Description

Returns "INVALID_NET_RPC_GUID" if netRpcGuid is invalid.

Usage

Lua
local retval, netRpcGuid = NetRpcGuidToString(netRpcGuid)

-- always works, by hash
local retval, netRpcGuid = Citizen.InvokeNative(0xAC9FF854BD4BA9B5, Citizen.PointerValueIntInitialized(netRpcGuid), Citizen.ResultAsString())
JavaScript and C#
JavaScript
const [retval, netRpcGuid] = NetRpcGuidToString(netRpcGuid);

// by hash
const [retval, netRpcGuid] = Citizen.invokeNative('0xAC9FF854BD4BA9B5', Citizen.pointerValueIntInitialized(netRpcGuid), Citizen.returnResultAnyway(), Citizen.resultAsString());
C#
var netRpcGuid = new OutputArgument();
string retval = Function.Call<string>((Hash)0xAC9FF854BD4BA9B5, netRpcGuid);
// netRpcGuid.GetResult<int>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
  • Any* arguments are often structs. Build them with a DataView buffer and pass it with :Buffer() — see the examples and notes below.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.