# TASK::SET_PED_WAYPOINT_ROUTE_OFFSET

- **Hash:** `0xED98E10B0AFCE4B4`
- **Namespace:** TASK
- **Runtime name (Lua/JS):** `SetPedWaypointRouteOffset`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/TASK/SET_PED_WAYPOINT_ROUTE_OFFSET

## Signature

```c
BOOL SET_PED_WAYPOINT_ROUTE_OFFSET(Ped ped, float p1, float p2, float p3);
```

## Parameters

- `ped` (`Ped`)
- `p1` (`float`)
- `p2` (`float`)
- `p3` (`float`)

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval = SetPedWaypointRouteOffset(ped, p1, p2, p3)

-- always available, by hash
local retval = Citizen.InvokeNative(0xED98E10B0AFCE4B4, ped, p1, p2, p3, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = SetPedWaypointRouteOffset(ped, p1, p2, p3);

// by hash
const retval = Citizen.invokeNative('0xED98E10B0AFCE4B4', ped, p1 + 0.0000001, p2 + 0.0000001, p3 + 0.0000001, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0xED98E10B0AFCE4B4, ped, p1, p2, p3);
```

- Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.

*Sources: alloc8or RDR3 NativeDB.*
