_GET_PLAYER_MOUNT_IS_SPRINTING_ON_ROAD
Checks if the player is sprinting on a road while riding a horse.
Hash
0xE631EAF35828FA67Runtime name
GetPlayerMountIsSprintingOnRoadNamespacePLAYER
SideClient
NameCommunity guess
Docs
Since build1207
Also known as
_IS_PLAYER_MOUNT_ON_ROADSignature
BOOL _GET_PLAYER_MOUNT_IS_SPRINTING_ON_ROAD(Player player);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
Returns BOOL
Description
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
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
local retval = GetPlayerMountIsSprintingOnRoad(player)
-- always works, by hash
local retval = Citizen.InvokeNative(0xE631EAF35828FA67, player, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = GetPlayerMountIsSprintingOnRoad(player);
// by hash
const retval = Citizen.invokeNative('0xE631EAF35828FA67', player, Citizen.returnResultAnyway());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
InvokeNativewith the hash — it always works.
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.