PedClient

setPedUpperBodyDamageOnly

SET_PED_UPPER_BODY_DAMAGE_ONLY0xAFC976FD0580C7B3

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

SignatureJavaScript
setPedUpperBodyDamageOnly(ped: Ped, toggle: boolean): void
SignatureLua
setPedUpperBodyDamageOnly(ped: Ped, toggle: boolean)

Usage

JavaScript
setPedUpperBodyDamageOnly(ped, toggle);
Lua
setPedUpperBodyDamageOnly(ped, toggle)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Ped PED
In the game
void SET_PED_UPPER_BODY_DAMAGE_ONLY(Ped ped, BOOL toggle)
Hash
0xAFC976FD0580C7B3

Open in the interactive natives reference