# PLAYER::SET_PED_AS_TEMP_PLAYER_HORSE

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

## Signature

```c
BOOL SET_PED_AS_TEMP_PLAYER_HORSE(Player player, Ped horse);
```

## Parameters

- `player` (`Player`)
- `horse` (`Ped`)

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval = SetPedAsTempPlayerHorse(player, horse)

-- always available, by hash
local retval = Citizen.InvokeNative(0x227B06324234FB09, player, horse, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = SetPedAsTempPlayerHorse(player, horse);

// by hash
const retval = Citizen.invokeNative('0x227B06324234FB09', player, horse, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x227B06324234FB09, player, horse);
```

*Sources: alloc8or RDR3 NativeDB.*
