PedClient

setPedSuffersCriticalHits

SET_PED_SUFFERS_CRITICAL_HITS0xEBD76F2359F190AC

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
toggleBOOLbooleanboolean

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.

Ped no longer takes critical damage modifiers if set to FALSE.
Example: Headshotting a player no longer one shots them. Instead they will take the same damage as a torso shot.

Reference

Namespace
Ped PED
In the game
void SET_PED_SUFFERS_CRITICAL_HITS(Ped ped, BOOL toggle)
Hash
0xEBD76F2359F190AC

Open in the interactive natives reference