PedClient

enableMpLight

ENABLE_MP_LIGHT0xEE2476B9EE4A094F

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

SignatureJavaScript
enableMpLight(ped: Ped, toggle: boolean): void
SignatureLua
enableMpLight(ped: Ped, toggle: boolean)

Usage

JavaScript
enableMpLight(ped, toggle);
Lua
enableMpLight(ped, toggle)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Ped PED
In the game
void ENABLE_MP_LIGHT(Ped ped, BOOL toggle)
Hash
0xEE2476B9EE4A094F
Introduced
Game build 1493 legacy numbering
Formerly
_SET_ENABLE_SCUBA_GEAR_LIGHT

Open in the interactive natives reference