RedM Natives

GET_ID_OF_THIS_THREAD

Hash0x55525C346BEF6960
Runtime nameGetIdOfThisThread
NamespaceSCRIPT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xC30338E8088E2E21

Signature

int GET_ID_OF_THIS_THREAD();

Returns int

Usage

Lua
local retval = GetIdOfThisThread()

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

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

Sources

alloc8or RDR3 NativeDB

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