# TASK::TASK_GO_STRAIGHT_TO_COORD_RELATIVE_TO_ENTITY

- **Hash:** `0x61E360B7E040D12E`
- **Namespace:** TASK
- **Runtime name (Lua/JS):** `TaskGoStraightToCoordRelativeToEntity`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/TASK/TASK_GO_STRAIGHT_TO_COORD_RELATIVE_TO_ENTITY

## Signature

```c
void TASK_GO_STRAIGHT_TO_COORD_RELATIVE_TO_ENTITY(Ped ped, Entity entity, float xOffset, float yOffset, float zOffset, int moveBlendRatio, int timeBeforeTeleport, int p7);
```

## Parameters

- `ped` (`Ped`)
- `entity` (`Entity`)
- `xOffset` (`float`)
- `yOffset` (`float`)
- `zOffset` (`float`)
- `moveBlendRatio` (`int`)
- `timeBeforeTeleport` (`int`)
- `p7` (`int`)

## Returns

`void`

## Description

*Source: alloc8or RDR3 NativeDB*

Go to coords relative to entity wihtout using navmesh, if timeBeforeTeleport is -1 then it never teleports; p7 is 1 or 0 still unknown.

*Source: VORPCORE RDR3natives*

Tells the ped to go to an offset coord from an entity, without using the navmesh. if timeBeforeTeleport is -1 the ped will never warp, p7 is 1 or 0 still unknown param

## Usage

### Lua

```lua
TaskGoStraightToCoordRelativeToEntity(ped, entity, xOffset, yOffset, zOffset, moveBlendRatio, timeBeforeTeleport, p7)

-- always available, by hash
Citizen.InvokeNative(0x61E360B7E040D12E, ped, entity, xOffset, yOffset, zOffset, moveBlendRatio, timeBeforeTeleport, p7)
```

### JavaScript

```js
TaskGoStraightToCoordRelativeToEntity(ped, entity, xOffset, yOffset, zOffset, moveBlendRatio, timeBeforeTeleport, p7);

// by hash
Citizen.invokeNative('0x61E360B7E040D12E', ped, entity, xOffset + 0.0000001, yOffset + 0.0000001, zOffset + 0.0000001, moveBlendRatio, timeBeforeTeleport, p7);
```

### C#

```csharp
Function.Call((Hash)0x61E360B7E040D12E, ped, entity, xOffset, yOffset, zOffset, moveBlendRatio, timeBeforeTeleport, p7);
```

- 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, VORPCORE RDR3natives.*
