setPedSuffersCriticalHits
Persists GTA's critical-hit policy on a script ped without enabling the broader story-protection tuple.
Syntax
bool setPedSuffersCriticalHits(ped thePed, bool suffersCriticalHits)GTA task mapping
0446 SCM equivalent: SET_CHAR_SUFFERS_CRITICAL_HITS
This does not create a CTask. GTA stores the setting as the inverse no-critical-hits bit; Neon keeps the requested positive policy on the MTA ped and reapplies it after recreation.
Arguments
thePedpedScript ped only; players are rejected.
suffersCriticalHitsbooltrue to allow critical hits, false to set GTA's inverse no-critical-hits bit.
Returns
true when the client-local policy was stored; false for a player or invalid element.
Ownership and lifecycle
Low-level ped task calls require the client that simulates the living, streamed ped. Driving tasks also require control of the streamed vehicle. They do not create lifecycle handles; the optional native-task-runtime adds server-owned route epochs and reconstruction for drive_to routes. Gang-tag ownership is resource-exclusive, survives object streaming and recreation, and is released automatically when the owner stops.
- The policy may be set while the native ped is streamed out and is reapplied after native recreation.
- This is a last-writer-wins local override, not a resource lease. Set the intended value explicitly before relinquishing a surviving ped.
Where this comes from
Continue exploring
← Back to the Neon Lua API · How Native ped tasks and gang tags works →