isFlashLightOn
IS_FLASH_LIGHT_ON0x4B7620C47217126CThe 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.
isFlashLightOn(ped: Ped): booleanisFlashLightOn(ped: Ped): booleanUsage
JavaScript
const result = isFlashLightOn(ped);Lua
local result = isFlashLightOn(ped)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Weapon WEAPON
- In the game
BOOL IS_FLASH_LIGHT_ON(Ped ped)- Hash
0x4B7620C47217126C- Formerly
SET_WEAPON_SMOKEGRENADE_ASSIGNED