RedM Natives

NETWORK_GET_INSTANCE_ID_OF_THIS_SCRIPT

Hash0x638A3A81733086DB
Runtime nameNetworkGetInstanceIdOfThisScript
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x638A3A81733086DB

Signature

int NETWORK_GET_INSTANCE_ID_OF_THIS_SCRIPT();

Returns int

Usage

Lua
local retval = NetworkGetInstanceIdOfThisScript()

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

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

Sources

alloc8or RDR3 NativeDB

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