RedM Natives

_GET_PLAYER_MOUNT_IS_SPRINTING_ON_ROAD

Checks if the player is sprinting on a road while riding a horse.

Hash0xE631EAF35828FA67
Runtime nameGetPlayerMountIsSprintingOnRoad
NamespacePLAYER
SideClient
NameCommunity guess
Docs
Since build1207
Also known as_IS_PLAYER_MOUNT_ON_ROAD

Signature

BOOL _GET_PLAYER_MOUNT_IS_SPRINTING_ON_ROAD(Player player);

Parameters

NameTypeDescription
playerPlayer—

Returns BOOL

Description

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

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
local retval = GetPlayerMountIsSprintingOnRoad(player)

-- always works, by hash
local retval = Citizen.InvokeNative(0xE631EAF35828FA67, player, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = GetPlayerMountIsSprintingOnRoad(player);

// by hash
const retval = Citizen.invokeNative('0xE631EAF35828FA67', player, Citizen.returnResultAnyway());
C#
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

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.