RedM Natives

SET_HORSE_AVOIDANCE_LEVEL

-1 - HORSE_ASSIST__NO_CHANGE 0 - HORSE_ASSIST__MANUAL 1 - HORSE_ASSIST__SEMIASSIST 2 - HORSE_ASSIST__FULLASSIST

Hash0xDDCF6FEA5D7ACC17
Runtime nameSetHorseAvoidanceLevel
NamespacePED
SideClient
NameOfficial
Docs
Since build1207

Signature

void SET_HORSE_AVOIDANCE_LEVEL(Ped horse, int avoidanceLevel);

Parameters

NameTypeDescription
horsePed—
avoidanceLevelint—

Returns void

Description

-1 - HORSE_ASSIST__NO_CHANGE
0 - HORSE_ASSIST__MANUAL
1 - HORSE_ASSIST__SEMIASSIST
2 - HORSE_ASSIST__FULLASSIST

Usage

Lua
SetHorseAvoidanceLevel(horse, avoidanceLevel)

-- always works, by hash
Citizen.InvokeNative(0xDDCF6FEA5D7ACC17, horse, avoidanceLevel)
JavaScript and C#
JavaScript
SetHorseAvoidanceLevel(horse, avoidanceLevel);

// by hash
Citizen.invokeNative('0xDDCF6FEA5D7ACC17', horse, avoidanceLevel);
C#
Function.Call((Hash)0xDDCF6FEA5D7ACC17, horse, avoidanceLevel);

Sources

alloc8or RDR3 NativeDB

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