RedM Natives

NETWORK_GET_NETWORK_ID_FROM_ROPE_ID

Hash0x42871327315EDAE8
Runtime nameNetworkGetNetworkIdFromRopeId
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207

Signature

int NETWORK_GET_NETWORK_ID_FROM_ROPE_ID(int ropeId);

Parameters

NameTypeDescription
ropeIdint—

Returns int

Usage

Lua
local retval = NetworkGetNetworkIdFromRopeId(ropeId)

-- always works, by hash
local retval = Citizen.InvokeNative(0x42871327315EDAE8, ropeId, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = NetworkGetNetworkIdFromRopeId(ropeId);

// by hash
const retval = Citizen.invokeNative('0x42871327315EDAE8', ropeId, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x42871327315EDAE8, ropeId);

Sources

alloc8or RDR3 NativeDB

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