WeaponClient

setFlashLightActiveHistory

SET_FLASH_LIGHT_ACTIVE_HISTORY0x988DB6FE9B3AC000

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

SignatureJavaScript
setFlashLightActiveHistory(ped: Ped, toggle: boolean): void
SignatureLua
setFlashLightActiveHistory(ped: Ped, toggle: boolean)

Usage

JavaScript
setFlashLightActiveHistory(ped, toggle);
Lua
setFlashLightActiveHistory(ped, toggle)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
toggleBOOLbooleanboolean

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.

Enables/disables flashlight on ped's weapon.

Reference

Namespace
Weapon WEAPON
In the game
void SET_FLASH_LIGHT_ACTIVE_HISTORY(Ped ped, BOOL toggle)
Hash
0x988DB6FE9B3AC000
Introduced
Game build 2060 legacy numbering
Formerly
_SET_FLASH_LIGHT_ENABLED

Open in the interactive natives reference