PedClient

setPedEnveffScale

SET_PED_ENVEFF_SCALE0xBF29516833893561

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

SignatureJavaScript
setPedEnveffScale(ped: Ped, value: number): void
SignatureLua
setPedEnveffScale(ped: Ped, value: number)

Usage

JavaScript
setPedEnveffScale(ped, value);
Lua
setPedEnveffScale(ped, value)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
valuefloatnumbernumber

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.

Values look to be between 0.0 and 1.0
From decompiled scripts: 0.0, 0.6, 0.65, 0.8, 1.0

You are correct, just looked in IDA it breaks from the function if it's less than 0.0f or greater than 1.0f.

Reference

Namespace
Ped PED
In the game
void SET_PED_ENVEFF_SCALE(Ped ped, float value)
Hash
0xBF29516833893561

Open in the interactive natives reference