getPedStayInSamePlace
Reads the effective local stay-in-place flag for a script ped.
Syntax
bool getPedStayInSamePlace(ped thePed)GTA task mapping
This is a policy query, not GTA's separate TASK_STAY_IN_SAME_PLACE command.
Arguments
thePedpedScript ped only; players are rejected.
Returns
The persisted value when one exists, otherwise the live native flag; false also covers a disabled flag, streamed-out ped without an override, 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 →