- Documentation
- Server functions
- getPedWalkTarget
Function
getPedWalkTarget
Returns the walk target set by setPedWalkTo.
Syntax
float, float, float getPedWalkTarget(ped ped)Arguments
pedped- The NPC.
Returns
x, y, z of the target; false if the NPC is not walking anywhere.
Example
if not getPedWalkTarget(guard) then setPedWalkTo(guard, 1540, -1675, 16) end