PedFindRandomSpawnPosition
Description
Find a random spawn position for a ped. If ped production is stopped (using StopPedProduction), this will never return a position.
function PedFindRandomSpawnPosition(pedId) --[[ ... ]] end
Parameters
pedId:integer- The ID of the ped to find a spawn position for. (optional)
Return Values
x:number- X coordinate of the spawn position, or 9999 if no valid position found.y:number- Y coordinate of the spawn position.z:number- Z coordinate of the spawn position.
Example
None.