# PLAYER::_GET_PLAYER_MOUNT_IS_SPRINTING_ON_ROAD

- **Hash:** `0xE631EAF35828FA67`
- **Namespace:** PLAYER
- **Runtime name (Lua/JS):** `GetPlayerMountIsSprintingOnRoad`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **Other names:** `_IS_PLAYER_MOUNT_ON_ROAD`
- **URL:** https://natives.borderlinerp.com/natives/PLAYER/_GET_PLAYER_MOUNT_IS_SPRINTING_ON_ROAD

## Signature

```c
BOOL _GET_PLAYER_MOUNT_IS_SPRINTING_ON_ROAD(Player player);
```

## Parameters

- `player` (`Player`)

## Returns

`BOOL`

## Description

*Source: alloc8or RDR3 NativeDB*

Checks if the player is sprinting on a road while riding a horse.
This function only checks sprinting status when the player is on a road.

Video: https://youtu.be/cGyh0AXPu1E

*Source: VORPCORE RDR3natives*

returns true if the player is on a road while riding a horse but at a certain speed, if you go off road then it returns false or if you go too slow like walking state it also returns false

## Usage

### Lua

```lua
local retval = GetPlayerMountIsSprintingOnRoad(player)

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

### JavaScript

```js
const retval = GetPlayerMountIsSprintingOnRoad(player);

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

### C#

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

- 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.

*Sources: alloc8or RDR3 NativeDB, VORPCORE RDR3natives.*
