CameraClient

doScreenFadeOut

DO_SCREEN_FADE_OUT0x891B5B39AC6302AF

The GTA V native DO_SCREEN_FADE_OUT of the CAM namespace, as LS:MP client scripts call it: the global function doScreenFadeOut, in JavaScript and in Lua.

SignatureJavaScript
doScreenFadeOut(duration: number): void
SignatureLua
doScreenFadeOut(duration: integer)

Usage

JavaScript
doScreenFadeOut(duration);
Lua
doScreenFadeOut(duration)

Parameters

ParameterTypeJavaScriptLuaDescription
durationintnumberintegerThe time the fade should take, in milliseconds.

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.

Fades the screen out.

Reference

Namespace
Camera CAM
In the game
void DO_SCREEN_FADE_OUT(int duration)
Hash
0x891B5B39AC6302AF

Open in the interactive natives reference