The Lab
HUD native

_HUD_CHECK_CLOSEST_HORSE

returns Entity1 parambuild 1207

Based on its name and signature, here is our best reading:

Returns the horse entity the HUD considers closest to the player. The meaning of p0 is not documented.

Signature

C
Entity _HUD_CHECK_CLOSEST_HORSE(BOOL p0); // 0x0501D52D24EA8934 b1207

Parameters

#NameType
1p0BOOL

Facts

Facts about _HUD_CHECK_CLOSEST_HORSE
Name
_HUD_CHECK_CLOSEST_HORSE
Hash
0x0501D52D24EA8934
Namespace
Returns
Entity
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local entity = Citizen.InvokeNative(0x0501D52D24EA8934, -- _HUD_CHECK_CLOSEST_HORSE
  false, -- BOOL p0
  Citizen.ResultAsInteger()
)
print(entity)
JavaScript
const entity = Citizen.invokeNative("0x0501D52D24EA8934", // _HUD_CHECK_CLOSEST_HORSE
  false, // BOOL p0
  Citizen.resultAsInteger()
);
console.log(entity)
C#
int entity = Function.Call<int>((Hash)0x0501D52D24EA8934, // _HUD_CHECK_CLOSEST_HORSE
  false // BOOL p0
);
All HUD natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.