ObjectClient

setCutscenesWeaponFlashlightOnThisFrame

SET_CUTSCENES_WEAPON_FLASHLIGHT_ON_THIS_FRAME0xBCE595371A5FBAAF

The 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.

SignatureJavaScript
setCutscenesWeaponFlashlightOnThisFrame(object: Object, toggle: boolean): void
SignatureLua
setCutscenesWeaponFlashlightOnThisFrame(object: Object, toggle: boolean)

Usage

JavaScript
setCutscenesWeaponFlashlightOnThisFrame(object, toggle);
Lua
setCutscenesWeaponFlashlightOnThisFrame(object, toggle)

Parameters

ParameterTypeJavaScriptLua
objectObjectnumberinteger
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.

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

Open in the interactive natives reference