GET_ID_OF_THIS_THREAD
Hash
0x55525C346BEF6960Runtime name
GetIdOfThisThreadNamespaceSCRIPT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xC30338E8088E2E21Signature
int GET_ID_OF_THIS_THREAD();Returns int
Usage
local retval = GetIdOfThisThread()
-- always works, by hash
local retval = Citizen.InvokeNative(0x55525C346BEF6960, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetIdOfThisThread();
// by hash
const retval = Citizen.invokeNative('0x55525C346BEF6960', Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x55525C346BEF6960);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.