PlayerClient

forceCleanup

FORCE_CLEANUP0xBC8983F38F78ED51

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

SignatureJavaScript
forceCleanup(cleanupFlags: number): void
SignatureLua
forceCleanup(cleanupFlags: integer)

Usage

JavaScript
forceCleanup(cleanupFlags);
Lua
forceCleanup(cleanupFlags)

Parameters

ParameterTypeJavaScriptLua
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.

used with 1,2,8,64,128 in the scripts

Reference

Namespace
Player PLAYER
In the game
void FORCE_CLEANUP(int cleanupFlags)
Hash
0xBC8983F38F78ED51

Open in the interactive natives reference