Skip to content

getPedSuffersCriticalHits

Client-side

Available in Neon, not standard MTA

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

NATIVE GTA BEHAVIOR
No CTask is created

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

thePedped

Script 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.

Important behavior
  • Because invalid elements and a valid false policy both return false, validate the element separately when that distinction matters.

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →