TaskWanderInArea — FiveM Natives
0xE054346CA3A0F315 · TASK · all
Makes a ped wander/patrol around the specified area. The ped will continue to wander after getting distracted, but only if this additional task is temporary, ie. killing a target, after killing the target it will continue to wander around. Use GetIsTaskActive(ped, 222) to check if the ped is still wandering the area.
Parameters
| Name | Type | Description |
|---|---|---|
| ped | Ped | The ped which will wander the area. |
| x | float | The X coordinate. |
| y | float | The Y coordinate |
| z | float | The Z coordinate |
| radius | float | The radius of the area to wander around in |
| minimalLength | int | The minimal length it will wander before waiting timeBetweenWalks seconds before continuing |
| timeBetweenWalks | float | The length of time the ped will stand still/rest between walks |
Returns
void