RedM Natives

_GET_TASK_PED_MOUNT_LEAP_STATE

Returns a coarse state for the mount-leap task (jumping from your mount onto another mount/wagon/train).

Hash0x9420FB11B8D77948
Runtime nameGetTaskPedMountLeapState
NamespaceTASK
SideClient
NameCommunity guess
Docs
Since build1207

Signature

int _GET_TASK_PED_MOUNT_LEAP_STATE(Ped ped);

Parameters

NameTypeDescription
pedPed—

Returns int

Description

alloc8or RDR3 NativeDB

Returns a coarse state for the mount-leap task (jumping from your mount onto another mount/wagon/train).
-1 = no task; 0 = in-air/ongoing; 1 = boarded/mounted; 2 = boarded rear train trailer.
Use with _GET_TASK_PED_MOUNT_LEAP_PROGRESS for timing.
Video demo: https://youtu.be/YZuw9lhqDms

VORPCORE RDR3natives

Returns a coarse state for the mount-leap task (jumping from your mount onto another mount/wagon/train).
-1 = no task; 0 = in-air/ongoing; 1 = boarded/mounted; 2 = boarded rear train trailer
Use with _GET_TASK_PED_MOUNT_LEAP_PROGRESS for timing

Usage

Lua
local retval = GetTaskPedMountLeapState(ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0x9420FB11B8D77948, ped, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetTaskPedMountLeapState(ped);

// by hash
const retval = Citizen.invokeNative('0x9420FB11B8D77948', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x9420FB11B8D77948, ped);
  • 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.