| Property | Value |
|---|---|
| Native Name | GET_SAFE_COORD_FOR_PED |
| Hash | 0xB61C8E878A4199CA |
| Return Type | BOOL |
| Parameters | x (float), y (float), z (float), onlyOnPavement (BOOL), outPosition (Vector3*), flags (int) |
Description: ```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 }
### Parameters
- **`x`** (`float`) — The X coordinate of the point to check.
- **`y`** (`float`) — The Y coordinate of the point to check.
- **`z`** (`float`) — The Z coordinate of the point to check.
- **`onlyOnPavement`** (`BOOL`) — Sets the `GSC_FLAG_ONLY_PAVEMENT` flag.
- **`outPosition`** (`Vector3*`) — The location of the safe coord.
- **`flags`** (`int`) — The search flags.