setPedSuffersCriticalHits
SET_PED_SUFFERS_CRITICAL_HITS0xEBD76F2359F190ACThe 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.
setPedSuffersCriticalHits(ped: Ped, toggle: boolean): voidsetPedSuffersCriticalHits(ped: Ped, toggle: boolean)Usage
JavaScript
setPedSuffersCriticalHits(ped, toggle);Lua
setPedSuffersCriticalHits(ped, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
toggle | BOOL | boolean | boolean |
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