getPedSuffersCriticalHits
Reads the locally persisted critical-hit policy for a script ped, including while it is streamed out.
Syntax
bool getPedSuffersCriticalHits(ped thePed)GTA task mapping
This is a Neon policy query, not a CTask or SCM command. It reads the value retained on the MTA ped rather than requiring a streamed GTA instance.
Arguments
thePedpedScript ped only; players are rejected.
Returns
The stored policy; true before any override, and false when critical hits are disabled or the element is not a script ped.
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.
- Because invalid elements and a valid false policy both return false, validate the element separately when that distinction matters.
Where this comes from
Continue exploring
← Back to the Neon Lua API · How Native ped tasks and gang tags works →