RedM Natives

TASK_DISMOUNT_ANIMAL

Dismounts the ped from the animal it's mounted on.

Hash0x48E92D3DDE23C23A
Runtime nameTaskDismountAnimal
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207

Signature

void TASK_DISMOUNT_ANIMAL(Ped rider, int taskFlag, Any p2, Any p3, Any p4, Ped targetPed);

Parameters

NameTypeDescription
riderPed—
taskFlagint—
p2Any—
p3Any—
p4Any—
targetPedPed—

Returns void

Description

Dismounts the ped from the animal it's mounted on. taskFlag affects what side the rider gets off. p2-p5 are almost always 0.
flags: See TASK_ENTER_VEHICLE

Usage

Lua
TaskDismountAnimal(rider, taskFlag, p2, p3, p4, targetPed)

-- always works, by hash
Citizen.InvokeNative(0x48E92D3DDE23C23A, rider, taskFlag, p2, p3, p4, targetPed)
JavaScript and C#
JavaScript
TaskDismountAnimal(rider, taskFlag, p2, p3, p4, targetPed);

// by hash
Citizen.invokeNative('0x48E92D3DDE23C23A', rider, taskFlag, p2, p3, p4, targetPed);
C#
Function.Call((Hash)0x48E92D3DDE23C23A, rider, taskFlag, p2, p3, p4, targetPed);

Enums and flags

Sources

alloc8or RDR3 NativeDB

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