PlayerClient

forceCleanupForAllThreadsWithThisName

FORCE_CLEANUP_FOR_ALL_THREADS_WITH_THIS_NAME0x4C68DDDDF0097317

The GTA V native FORCE_CLEANUP_FOR_ALL_THREADS_WITH_THIS_NAME of the PLAYER namespace, as LS:MP client scripts call it: the global function forceCleanupForAllThreadsWithThisName, in JavaScript and in Lua.

SignatureJavaScript
forceCleanupForAllThreadsWithThisName(
  name: string,
  cleanupFlags: number
): void
SignatureLua
forceCleanupForAllThreadsWithThisName(name: string, cleanupFlags: integer)

Usage

JavaScript
forceCleanupForAllThreadsWithThisName(name, cleanupFlags);
Lua
forceCleanupForAllThreadsWithThisName(name, cleanupFlags)

Parameters

ParameterTypeJavaScriptLua
namestringstringstring
cleanupFlagsintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

forceCleanupForAllThreadsWithThisName("pb_prostitute", 1); // Found in decompilation

Reference

Namespace
Player PLAYER
In the game
void FORCE_CLEANUP_FOR_ALL_THREADS_WITH_THIS_NAME(const char* name, int cleanupFlags)
Hash
0x4C68DDDDF0097317

Open in the interactive natives reference