enableMpLight
ENABLE_MP_LIGHT0xEE2476B9EE4A094FThe 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.
enableMpLight(ped: Ped, toggle: boolean): voidenableMpLight(ped: Ped, toggle: boolean)Usage
JavaScript
enableMpLight(ped, toggle);Lua
enableMpLight(ped, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
toggle | BOOL | boolean | boolean |
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