WeaponClient

setFlashLightFadeDistance

SET_FLASH_LIGHT_FADE_DISTANCE0xCEA66DAD478CD39B

The GTA V native SET_FLASH_LIGHT_FADE_DISTANCE of the WEAPON namespace, as LS:MP client scripts call it: the global function setFlashLightFadeDistance, in JavaScript and in Lua.

SignatureJavaScript
setFlashLightFadeDistance(distance: number): boolean
SignatureLua
setFlashLightFadeDistance(distance: number): boolean

Usage

JavaScript
const result = setFlashLightFadeDistance(distance);
Lua
local result = setFlashLightFadeDistance(distance)

Parameters

ParameterTypeJavaScriptLua
distancefloatnumbernumber

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Weapon WEAPON
In the game
BOOL SET_FLASH_LIGHT_FADE_DISTANCE(float distance)
Hash
0xCEA66DAD478CD39B

Open in the interactive natives reference