RedM Natives

IS_FLASH_LIGHT_ON

Hash0x76876154
Runtime nameIsFlashLightOn
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

bool IS_FLASH_LIGHT_ON(Ped ped);

Parameters

NameTypeDescription
pedPed

The target ped.

Returns bool — Whether or not the ped's flash light is on.

Usage

Lua
local retval = IsFlashLightOn(ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0x76876154, ped, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsFlashLightOn(ped);

// by hash
const retval = Citizen.invokeNative('0x76876154', ped, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x76876154, ped);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.