Skip to content

isPedNeverTargeted

Client-side

Available in Neon, not standard MTA

Reads the effective local never-targeted policy for a script ped.

Syntax

bool isPedNeverTargeted(ped thePed)

GTA task mapping

NATIVE GTA BEHAVIOR
No CTask is created

This is a state query, not a CTask or SCM command.

Arguments

thePedped

Script ped only; players are rejected.

Returns

The persisted scalar value when present, otherwise the live grouped/native flag; false also covers a disabled policy, unavailable native state, 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.

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →