# VEHICLE::_ATTACH_DRAFT_VEHICLE_HARNESS_PED

- **Hash:** `0x316CDB5B6E8F4110`
- **Namespace:** VEHICLE
- **Runtime name (Lua/JS):** `AttachDraftVehicleHarnessPed`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/VEHICLE/_ATTACH_DRAFT_VEHICLE_HARNESS_PED

## Signature

```c
BOOL _ATTACH_DRAFT_VEHICLE_HARNESS_PED(Ped mount, Vehicle draft, int harnessId);
```

## Parameters

- `mount` (`Ped`)
- `draft` (`Vehicle`)
- `harnessId` (`int`)

## Returns

`BOOL`

## Description

*Source: femga rdr3_discoveries*

```
0x316cdb5b6e8f4110 (by Anthony229)

if you want to use the native to attach a horse in to a vehicle in MP
N_0x316cdb5b6e8f4110(horse,veh)

then when you create the ped(horse) put false in p6 (i think is "isNetwork")
CreatePed(pedHash, x, y, z, 0.0, false, true, true, true)

Third parameter in
Citizen.InvokeNative(0x316cdb5b6e8f4110, horse, wagon, position)

(position) is an int starting from 0, where you can choose, at what position the horse should be standing, if there are two and more horses can be attached.
```

## Usage

### Lua

```lua
local retval = AttachDraftVehicleHarnessPed(mount, draft, harnessId)

-- always available, by hash
local retval = Citizen.InvokeNative(0x316CDB5B6E8F4110, mount, draft, harnessId, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = AttachDraftVehicleHarnessPed(mount, draft, harnessId);

// by hash
const retval = Citizen.invokeNative('0x316CDB5B6E8F4110', mount, draft, harnessId, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x316CDB5B6E8F4110, mount, draft, harnessId);
```

- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

## See also

- [VEHICLE::_DETACH_DRAFT_VEHICLE_HARNESS_PED](https://natives.borderlinerp.com/natives/VEHICLE/_DETACH_DRAFT_VEHICLE_HARNESS_PED.md)

*Sources: alloc8or RDR3 NativeDB, femga rdr3_discoveries.*
