PedClient

setPedEnveffColorModulator

SET_PED_ENVEFF_COLOR_MODULATOR0xD69411AA0CEBF9E9

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

SignatureJavaScript
setPedEnveffColorModulator(ped: Ped, p1: number, p2: number, p3: number): void
SignatureLua
setPedEnveffColorModulator(ped: Ped, p1: integer, p2: integer, p3: integer)

Usage

JavaScript
setPedEnveffColorModulator(ped, p1, p2, p3);
Lua
setPedEnveffColorModulator(ped, p1, p2, p3)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
p1intnumberinteger
p2intnumberinteger
p3intnumberinteger

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.

Something related to the environmental effects natives.
In the "agency_heist3b" script, p1 - p3 are always under 100 - usually they are {87, 81, 68}. If setPedEnveffScale is set to 0.65 (instead of the usual 1.0), they use {74, 69, 60}

Reference

Namespace
Ped PED
In the game
void SET_PED_ENVEFF_COLOR_MODULATOR(Ped ped, int p1, int p2, int p3)
Hash
0xD69411AA0CEBF9E9

Open in the interactive natives reference