Skip to content

getPedStayInSamePlace

Client-side

Available in Neon, not standard MTA

Reads the effective local stay-in-place flag for a script ped.

Syntax

bool getPedStayInSamePlace(ped thePed)

GTA task mapping

NATIVE GTA BEHAVIOR
No CTask is created

This is a policy query, not GTA's separate TASK_STAY_IN_SAME_PLACE command.

Arguments

thePedped

Script 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

RELATED NEON APIS

Continue exploring

Read the system guide →