SCRIPT_THREAD_ITERATOR_GET_NEXT_THREAD_ID
If the function returns 0, the end of the iteration has been reached.
Hash
0x3CE3FB167E837D7CRuntime name
ScriptThreadIteratorGetNextThreadIdNamespaceSCRIPT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x30B4FA1C82DD4B9FSignature
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
local retval = ScriptThreadIteratorGetNextThreadId()
-- always works, by hash
local retval = Citizen.InvokeNative(0x3CE3FB167E837D7C, Citizen.ResultAsInteger())JavaScript and C#
const retval = ScriptThreadIteratorGetNextThreadId();
// by hash
const retval = Citizen.invokeNative('0x3CE3FB167E837D7C', Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x3CE3FB167E837D7C);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.