Skip to content

setPedStandStill

Client-side

Available in Neon, not standard MTA

Queues GTA's simple stand-still task on a simulated ped.

Syntax

bool setPedStandStill(ped thePed [, int duration = 0])

GTA task mapping

ORIGINAL GTA TASK 05BA
CTaskSimpleStandStill

SCM equivalent: TASK_STAND_STILL

This is GTA's simple stand-still task, dispatched through the same script-command event path used by SCM tasks.

Arguments

thePedped

Living streamed ped simulated by this client.

durationintoptional · default 0

Non-negative native task duration in milliseconds; 0 preserves the SCM-style indefinite use.

Returns

true when the native task was queued; false for invalid ownership, streaming, liveness, duration, or task construction.

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.

OOP aliases

  • ped:setStandStill(duration)

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →