PlayerClient

getCauseOfMostRecentForceCleanup

GET_CAUSE_OF_MOST_RECENT_FORCE_CLEANUP0x9A41CF4674A12272

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

SignatureJavaScript
getCauseOfMostRecentForceCleanup(): number
SignatureLua
getCauseOfMostRecentForceCleanup(): integer

Usage

JavaScript
const result = getCauseOfMostRecentForceCleanup();
Lua
local result = getCauseOfMostRecentForceCleanup()

Parameters

None.

Returns

int JavaScript number, Lua integer

Reference

Namespace
Player PLAYER
In the game
int GET_CAUSE_OF_MOST_RECENT_FORCE_CLEANUP()
Hash
0x9A41CF4674A12272

Open in the interactive natives reference