# TASK::TASK_PLACE_CARRIED_ENTITY_AT_COORD

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

## Signature

```c
void TASK_PLACE_CARRIED_ENTITY_AT_COORD(Ped ped, Entity entity, float x, float y, float z, float p5, int flags);
```

## Parameters

- `ped` (`Ped`)
- `entity` (`Entity`)
- `x` (`float`)
- `y` (`float`)
- `z` (`float`)
- `p5` (`float`)
- `flags` (`int`)

## Returns

`void`

## Description

*Source: femga rdr3_discoveries*

```
0xD806CD2A4F2C2996
0xC7F0B43DCDC57E3D
Not sure if somebody found this, but it just get's the carried entity. Also I did some research on the placing of the entity.
```

*Source: femga rdr3_discoveries*

```
// 0xC7F0B43DCDC57E3D
TASK_PLACE_CARRIED_ENTITY_AT_COORD(Ped ped, Entity carried, float x, float y, float z, float ukn, int flag)
/*
    flag: Determines the way the entity is placed.
*/
Code I used
local carried = Citizen.InvokeNative(0xD806CD2A4F2C2996, PlayerPedId())
Citizen.InvokeNative(0xC7F0B43DCDC57E3D, PlayerPedId(), carried, GetEntityCoords(PlayerPedId()), 10.0, flag)
```

## Usage

### Lua

```lua
TaskPlaceCarriedEntityAtCoord(ped, entity, x, y, z, p5, flags)

-- always available, by hash
Citizen.InvokeNative(0xC7F0B43DCDC57E3D, ped, entity, x, y, z, p5, flags)
```

### JavaScript

```js
TaskPlaceCarriedEntityAtCoord(ped, entity, x, y, z, p5, flags);

// by hash
Citizen.invokeNative('0xC7F0B43DCDC57E3D', ped, entity, x + 0.0000001, y + 0.0000001, z + 0.0000001, p5 + 0.0000001, flags);
```

### C#

```csharp
Function.Call((Hash)0xC7F0B43DCDC57E3D, ped, entity, x, y, z, p5, flags);
```

- 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, femga rdr3_discoveries.*
