setPedEnveffColorModulator
SET_PED_ENVEFF_COLOR_MODULATOR0xD69411AA0CEBF9E9The 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.
setPedEnveffColorModulator(ped: Ped, p1: number, p2: number, p3: number): voidsetPedEnveffColorModulator(ped: Ped, p1: integer, p2: integer, p3: integer)Usage
JavaScript
setPedEnveffColorModulator(ped, p1, p2, p3);Lua
setPedEnveffColorModulator(ped, p1, p2, p3)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
p1 | int | number | integer |
p2 | int | number | integer |
p3 | int | number | integer |
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