Does anyone know how this native works? I’d like to determine if a spawn area is blocked and choose a different spawn location if it is. I though maybe the first three args are the x, y, z and 4-6 the radius, but and left everything else as false. Not knowing what the remaining args are for makes it unclear. So I always get false even when I have a car right on the location.
Actually I worked it out. IsPositionOccupied(…)
if not IsPositionOccupied(
garage.SpawnPoint.Pos.x,
garage.SpawnPoint.Pos.y,
garage.SpawnPoint.Pos.z,
1.5,
false, --[[ boolean Unkown ]]
true, --[[ boolean Check for any vehicles ]]
false, --[[ boolean Check for any peds ]]
false, --[[ Unkown ]]
false, --[[ Unkown ]]
0,
false --[[ Unkown ]]
) then
SpawnVehicle(vehicle.vehicle, garage)
end
``
2 Likes