{"hash":"0x5B1A26BB18E7D451","ns":"VEHICLE","name":"_GET_NUM_DRAFT_VEHICLE_HARNESS_PED","slug":"_GET_NUM_DRAFT_VEHICLE_HARNESS_PED","official":false,"named":true,"luaName":"GetNumDraftVehicleHarnessPed","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"modelHash","type":"Hash"}],"summary":"Returns number of horses a wagon can have","descriptions":[{"source":"alloc8or","format":"text","body":"Returns number of horses a wagon can have"},{"source":"femga","format":"pre","body":"0x5b1a26bb18e7d451  (by Nikez)\nFound 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.\nFunction.Call<int>((Hash)0x5b1a26bb18e7d451, wagonHash);"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","femga"],"doc":2,"url":"https://natives.borderlinerp.com/natives/VEHICLE/_GET_NUM_DRAFT_VEHICLE_HARNESS_PED","markdownUrl":"https://natives.borderlinerp.com/natives/VEHICLE/_GET_NUM_DRAFT_VEHICLE_HARNESS_PED.md","snippets":{"lua":"local retval = GetNumDraftVehicleHarnessPed(modelHash)","luaInvoke":"local retval = Citizen.InvokeNative(0x5B1A26BB18E7D451, modelHash, Citizen.ResultAsInteger())","js":"const retval = GetNumDraftVehicleHarnessPed(modelHash);","jsInvoke":"const retval = Citizen.invokeNative('0x5B1A26BB18E7D451', modelHash, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x5B1A26BB18E7D451, modelHash);","notes":["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."]}}