PedClient

getMpLightEnabled

GET_MP_LIGHT_ENABLED0x88274C11CF0D866D

The GTA V native GET_MP_LIGHT_ENABLED of the PED namespace, as LS:MP client scripts call it: the global function getMpLightEnabled, in JavaScript and in Lua.

SignatureJavaScript
getMpLightEnabled(ped: Ped): boolean
SignatureLua
getMpLightEnabled(ped: Ped): boolean

Usage

JavaScript
const result = getMpLightEnabled(ped);
Lua
local result = getMpLightEnabled(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Ped PED
In the game
BOOL GET_MP_LIGHT_ENABLED(Ped ped)
Hash
0x88274C11CF0D866D
Introduced
Game build 1493 legacy numbering
Formerly
_IS_SCUBA_GEAR_LIGHT_ENABLED

Open in the interactive natives reference