setFlashLightActiveHistory
SET_FLASH_LIGHT_ACTIVE_HISTORY0x988DB6FE9B3AC000The 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.
setFlashLightActiveHistory(ped: Ped, toggle: boolean): voidsetFlashLightActiveHistory(ped: Ped, toggle: boolean)Usage
JavaScript
setFlashLightActiveHistory(ped, toggle);Lua
setFlashLightActiveHistory(ped, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
toggle | BOOL | boolean | boolean |
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