isPedNeverTargeted
Reads the effective local never-targeted policy for a script ped.
Syntax
bool isPedNeverTargeted(ped thePed)GTA task mapping
This is a state query, not a CTask or SCM command.
Arguments
thePedpedScript 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
Continue exploring
← Back to the Neon Lua API · How Native ped tasks and gang tags works →