RedM Natives

FORCE_CLEANUP_FOR_THREAD_WITH_THIS_ID

Hash0xF4C9512A2F0A3031
Runtime nameForceCleanupForThreadWithThisId
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xF745B37630DF176B

Signature

void FORCE_CLEANUP_FOR_THREAD_WITH_THIS_ID(int id, int cleanupFlags);

Parameters

NameTypeDescription
idint—
cleanupFlagsint—

Returns void

Usage

Lua
ForceCleanupForThreadWithThisId(id, cleanupFlags)

-- always works, by hash
Citizen.InvokeNative(0xF4C9512A2F0A3031, id, cleanupFlags)
JavaScript and C#
JavaScript
ForceCleanupForThreadWithThisId(id, cleanupFlags);

// by hash
Citizen.invokeNative('0xF4C9512A2F0A3031', id, cleanupFlags);
C#
Function.Call((Hash)0xF4C9512A2F0A3031, id, cleanupFlags);

Sources

alloc8or RDR3 NativeDB

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