PedClient

setPedSweat

SET_PED_SWEAT0x27B0405F59637D1F

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

SignatureJavaScript
setPedSweat(ped: Ped, sweat: number): void
SignatureLua
setPedSweat(ped: Ped, sweat: number)

Usage

JavaScript
setPedSweat(ped, sweat);
Lua
setPedSweat(ped, sweat)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
sweatfloatnumbernumber

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.

Sweat is set to 100.0 or 0.0 in the decompiled scripts.

Reference

Namespace
Ped PED
In the game
void SET_PED_SWEAT(Ped ped, float sweat)
Hash
0x27B0405F59637D1F

Open in the interactive natives reference