setPedStandStill
Queues GTA's simple stand-still task on a simulated ped.
Syntax
bool setPedStandStill(ped thePed [, int duration = 0])GTA task mapping
05BA CTaskSimpleStandStillSCM 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
thePedpedLiving streamed ped simulated by this client.
durationintoptional · default 0Non-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
Continue exploring
← Back to the Neon Lua API · How Native ped tasks and gang tags works →