isPedStoryProtected
Reports the locally persisted grouped story-actor protection policy.
Syntax
bool isPedStoryProtected(ped thePed)GTA task mapping
This is a policy query, not a task constructor. It reads Neon's persisted state even while the native GTA ped is streamed out.
Arguments
thePedpedScript ped only.
Returns
true when enabled; false when disabled or when the target 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.
Where this comes from
Continue exploring
← Back to the Neon Lua API · How Native ped tasks and gang tags works →