RedM Natives

_GET_NUM_DRAFT_VEHICLE_HARNESS_PED

Returns number of horses a wagon can have

Hash0x5B1A26BB18E7D451
Runtime nameGetNumDraftVehicleHarnessPed
NamespaceVEHICLE
SideClient
NameCommunity guess
Docs
Since build1207

Signature

int _GET_NUM_DRAFT_VEHICLE_HARNESS_PED(Hash modelHash);

Parameters

NameTypeDescription
modelHashHash—

Returns int

Description

alloc8or RDR3 NativeDB

Returns number of horses a wagon can have

femga rdr3_discoveries · research notes

0x5b1a26bb18e7d451  (by Nikez)
Found this hash -- this will return an int with the number of horses a wagon can have. Pass in the hashkey of the vehicle you want to check.
Function.Call<int>((Hash)0x5b1a26bb18e7d451, wagonHash);

Usage

Lua
local retval = GetNumDraftVehicleHarnessPed(modelHash)

-- always works, by hash
local retval = Citizen.InvokeNative(0x5B1A26BB18E7D451, modelHash, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetNumDraftVehicleHarnessPed(modelHash);

// by hash
const retval = Citizen.invokeNative('0x5B1A26BB18E7D451', modelHash, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x5B1A26BB18E7D451, modelHash);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.
  • 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 · femga rdr3_discoveries

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