MiscClient

setFadeOutAfterDeath

SET_FADE_OUT_AFTER_DEATH0x4A18E01DF2C87B86

The GTA V native SET_FADE_OUT_AFTER_DEATH of the MISC namespace, as LS:MP client scripts call it: the global function setFadeOutAfterDeath, in JavaScript and in Lua.

SignatureJavaScript
setFadeOutAfterDeath(toggle: boolean): void
SignatureLua
setFadeOutAfterDeath(toggle: boolean)

Usage

JavaScript
setFadeOutAfterDeath(toggle);
Lua
setFadeOutAfterDeath(toggle)

Parameters

ParameterTypeJavaScriptLua
toggleBOOLbooleanboolean

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.

Sets whether the game should fade out after the player dies.

Reference

Namespace
Misc MISC
In the game
void SET_FADE_OUT_AFTER_DEATH(BOOL toggle)
Hash
0x4A18E01DF2C87B86

Open in the interactive natives reference