GraphicsClient

setFlash

SET_FLASH0x0AB84296FED9CFC6

The GTA V native SET_FLASH of the GRAPHICS namespace, as LS:MP client scripts call it: the global function setFlash, in JavaScript and in Lua.

SignatureJavaScript
setFlash(
  p0: number,
  p1: number,
  fadeIn: number,
  duration: number,
  fadeOut: number
): void
SignatureLua
setFlash(
  p0: number,
  p1: number,
  fadeIn: number,
  duration: number,
  fadeOut: number
)

Usage

JavaScript
setFlash(p0, p1, fadeIn, duration, fadeOut);
Lua
setFlash(p0, p1, fadeIn, duration, fadeOut)

Parameters

ParameterTypeJavaScriptLua
p0floatnumbernumber
p1floatnumbernumber
fadeInfloatnumbernumber
durationfloatnumbernumber
fadeOutfloatnumbernumber

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.

Purpose of p0 and p1 unknown.

Reference

Namespace
Graphics GRAPHICS
In the game
void SET_FLASH(float p0, float p1, float fadeIn, float duration, float fadeOut)
Hash
0x0AB84296FED9CFC6

Open in the interactive natives reference