local fn = _gn(0xB61C8E878A4199CA)
--- cpp
-- enum eSafePositionFlags {
-- // Only navmesh polygons marked as pavement
-- GSC_FLAG_ONLY_PAVEMENT = 1,
-- // Only navmesh polygons not marked as "isolated"
-- GSC_FLAG_NOT_ISOLATED = 2,
-- // No navmesh polygons created from interiors
-- GSC_FLAG_NOT_INTERIOR = 4,
-- // No navmesh polygons marked as water
-- GSC_FLAG_NOT_WATER = 8,
-- // Only navmesh polygons marked as "network spawn candidate"
-- GSC_FLAG_ONLY_NETWORK_SPAWN = 16,
-- // Specify whether to use a flood-fill from the starting position, as opposed to scanning all polygons within the search volume
-- GSC_FLAG_USE_FLOOD_FILL = 32
-- }
-- @param x The X coordinate of the point to check.
-- @param y The Y coordinate of the point to check.
-- @param z The Z coordinate of the point to check.
-- @param onlyOnPavement Sets the `GSC_FLAG_ONLY_PAVEMENT` flag.
-- @param outPosition The location of the safe coord.
-- @param flags The search flags.
-- @return Returns true if a safe coord was found and false otherwise.
function Global.GetSafeCoordForPed(x, y, z, onlyOnPavement, flags)
	return fn(x, y, z, onlyOnPavement, _v, flags, _r)
end
