RedM Natives

_GET_WHISTLE_RANGE_MIN_FOR_BONDING_LEVEL

Returns the minimum (baseline) whistle/call distance for the given horse bonding level.

Hash0xEB67D4E056C85A81
Runtime nameGetWhistleRangeMinForBondingLevel
NamespaceTASK
SideClient
NameCommunity guess
Docs
Since build1207

Signature

float _GET_WHISTLE_RANGE_MIN_FOR_BONDING_LEVEL(int bondingLevel);

Parameters

NameTypeDescription
bondingLevelint—

Returns float

Description

alloc8or RDR3 NativeDB

Returns the minimum (baseline) whistle/call distance for the given horse bonding level.
This value represents the lower bound used when computing whether a horse is considered "near" or "far" relative to the player, and is interpolated against the next level's max.

VORPCORE RDR3natives

Returns the minimum (baseline) whistle/call distance for the given horse bonding level.
This value represents the lower bound used when computing whether a horse is considered near or far relative to the player, and is interpolated against the next level's max.

Usage

Lua
local retval = GetWhistleRangeMinForBondingLevel(bondingLevel)

-- always works, by hash
local retval = Citizen.InvokeNative(0xEB67D4E056C85A81, bondingLevel, Citizen.ResultAsFloat())
JavaScript and C#
JavaScript
const retval = GetWhistleRangeMinForBondingLevel(bondingLevel);

// by hash
const retval = Citizen.invokeNative('0xEB67D4E056C85A81', bondingLevel, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
C#
float retval = Function.Call<float>((Hash)0xEB67D4E056C85A81, bondingLevel);
  • 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.