RedM Natives

SCRIPT_THREAD_ITERATOR_GET_NEXT_THREAD_ID

If the function returns 0, the end of the iteration has been reached.

Hash0x3CE3FB167E837D7C
Runtime nameScriptThreadIteratorGetNextThreadId
NamespaceSCRIPT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x30B4FA1C82DD4B9F

Signature

int SCRIPT_THREAD_ITERATOR_GET_NEXT_THREAD_ID();

Returns int

Description

If the function returns 0, the end of the iteration has been reached.

Usage

Lua
local retval = ScriptThreadIteratorGetNextThreadId()

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

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

Sources

alloc8or RDR3 NativeDB

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