_HUD_CHECK_CLOSEST_HORSE
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
Entity _HUD_CHECK_CLOSEST_HORSE(BOOL p0); // 0x0501D52D24EA8934 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | p0 | BOOL |
Facts
| 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.
local entity = Citizen.InvokeNative(0x0501D52D24EA8934, -- _HUD_CHECK_CLOSEST_HORSE
false, -- BOOL p0
Citizen.ResultAsInteger()
)
print(entity)const entity = Citizen.invokeNative("0x0501D52D24EA8934", // _HUD_CHECK_CLOSEST_HORSE
false, // BOOL p0
Citizen.resultAsInteger()
);
console.log(entity)int entity = Function.Call<int>((Hash)0x0501D52D24EA8934, // _HUD_CHECK_CLOSEST_HORSE
false // BOOL p0
);Related HUD natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.