WeaponClient

isFlashLightOn

IS_FLASH_LIGHT_ON0x4B7620C47217126C

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

SignatureJavaScript
isFlashLightOn(ped: Ped): boolean
SignatureLua
isFlashLightOn(ped: Ped): boolean

Usage

JavaScript
const result = isFlashLightOn(ped);
Lua
local result = isFlashLightOn(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Weapon WEAPON
In the game
BOOL IS_FLASH_LIGHT_ON(Ped ped)
Hash
0x4B7620C47217126C
Formerly
SET_WEAPON_SMOKEGRENADE_ASSIGNED

Open in the interactive natives reference