RedM Natives

SCRIPT_THREAD_ITERATOR_RESET

Starts a new iteration of the current threads.

Hash0x39382EB8DCD8684D
Runtime nameScriptThreadIteratorReset
NamespaceSCRIPT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xDADFADA5A20143A8

Signature

void SCRIPT_THREAD_ITERATOR_RESET();

Returns void

Description

Starts a new iteration of the current threads.
Call this first, then SCRIPT_THREAD_ITERATOR_GET_NEXT_THREAD_ID (0x30B4FA1C82DD4B9F)

Usage

Lua
ScriptThreadIteratorReset()

-- always works, by hash
Citizen.InvokeNative(0x39382EB8DCD8684D)
JavaScript and C#
JavaScript
ScriptThreadIteratorReset();

// by hash
Citizen.invokeNative('0x39382EB8DCD8684D');
C#
Function.Call((Hash)0x39382EB8DCD8684D);

Sources

alloc8or RDR3 NativeDB

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