setCutscenesWeaponFlashlightOnThisFrame
SET_CUTSCENES_WEAPON_FLASHLIGHT_ON_THIS_FRAME0xBCE595371A5FBAAFThe GTA V native SET_CUTSCENES_WEAPON_FLASHLIGHT_ON_THIS_FRAME of the OBJECT namespace, as LS:MP client scripts call it: the global function setCutscenesWeaponFlashlightOnThisFrame, in JavaScript and in Lua.
setCutscenesWeaponFlashlightOnThisFrame(object: Object, toggle: boolean): voidsetCutscenesWeaponFlashlightOnThisFrame(object: Object, toggle: boolean)Usage
JavaScript
setCutscenesWeaponFlashlightOnThisFrame(object, toggle);Lua
setCutscenesWeaponFlashlightOnThisFrame(object, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
object | Object | 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.
Requires a component_at_*_flsh to be attached to the weapon object
Reference
- Namespace
- Object OBJECT
- In the game
void SET_CUTSCENES_WEAPON_FLASHLIGHT_ON_THIS_FRAME(Object object, BOOL toggle)- Hash
0xBCE595371A5FBAAF- Formerly
_SET_CREATE_WEAPON_OBJECT_LIGHT_SOURCE