PedFindInAreaXYZ
Description
Return all the peds in an area. Use a big number (like 9999999) to get all peds in the world.
Since this function can return many results, it is smart to wrap the call in a table (like { PedFindInAreaXYZ(0,0,0,9999999)}
).
If you do that, the table will be full of peds (except the first result, it is not a ped).
function PedFindInAreaXYZ(x, y, z, range) --[[ ... ]] end
Parameters
x
:number
- X coordinate of the center point.y
:number
- Y coordinate of the center point.z
:number
- Z coordinate of the center point.range
:number
- Radius around the point to search for peds.
Return Values
Multiple values: The first return value is an unknown number, followed by zero or more ped handles.
Example
None.