_NET_RPC_GUID_TO_STRING
Returns "INVALID_NET_RPC_GUID" if netRpcGuid is invalid.
Hash
0xAC9FF854BD4BA9B5Runtime name
NetRpcGuidToStringNamespaceSCRIPT
SideClient
NameCommunity guess
Docs
Since build1311
Signature
const char* _NET_RPC_GUID_TO_STRING(Any* netRpcGuid);Parameters
| Name | Type | Description |
|---|---|---|
netRpcGuid | Any* | — |
Returns const char*
Description
Returns "INVALID_NET_RPC_GUID" if netRpcGuid is invalid.
Usage
local retval, netRpcGuid = NetRpcGuidToString(netRpcGuid)
-- always works, by hash
local retval, netRpcGuid = Citizen.InvokeNative(0xAC9FF854BD4BA9B5, Citizen.PointerValueIntInitialized(netRpcGuid), Citizen.ResultAsString())JavaScript and C#
const [retval, netRpcGuid] = NetRpcGuidToString(netRpcGuid);
// by hash
const [retval, netRpcGuid] = Citizen.invokeNative('0xAC9FF854BD4BA9B5', Citizen.pointerValueIntInitialized(netRpcGuid), Citizen.returnResultAnyway(), Citizen.resultAsString());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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.