forceCleanupForAllThreadsWithThisName
FORCE_CLEANUP_FOR_ALL_THREADS_WITH_THIS_NAME0x4C68DDDDF0097317The 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.
forceCleanupForAllThreadsWithThisName(
name: string,
cleanupFlags: number
): voidforceCleanupForAllThreadsWithThisName(name: string, cleanupFlags: integer)Usage
JavaScript
forceCleanupForAllThreadsWithThisName(name, cleanupFlags);Lua
forceCleanupForAllThreadsWithThisName(name, cleanupFlags)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
name | string | string | string |
cleanupFlags | int | number | integer |
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 decompilationReference
- Namespace
- Player PLAYER
- In the game
void FORCE_CLEANUP_FOR_ALL_THREADS_WITH_THIS_NAME(const char* name, int cleanupFlags)- Hash
0x4C68DDDDF0097317