_ATTACH_DRAFT_VEHICLE_HARNESS_PED
Hash
0x316CDB5B6E8F4110Runtime name
AttachDraftVehicleHarnessPedNamespaceVEHICLE
SideClient
NameCommunity guess
Docs
Since build1207
Signature
BOOL _ATTACH_DRAFT_VEHICLE_HARNESS_PED(Ped mount, Vehicle draft, int harnessId);Parameters
| Name | Type | Description |
|---|---|---|
mount | Ped | — |
draft | Vehicle | — |
harnessId | int | — |
Returns BOOL
Description
femga rdr3_discoveries · research notes
0x316cdb5b6e8f4110 (by Anthony229)
if you want to use the native to attach a horse in to a vehicle in MP
N_0x316cdb5b6e8f4110(horse,veh)
then when you create the ped(horse) put false in p6 (i think is "isNetwork")
CreatePed(pedHash, x, y, z, 0.0, false, true, true, true)
Third parameter in
Citizen.InvokeNative(0x316cdb5b6e8f4110, horse, wagon, position)
(position) is an int starting from 0, where you can choose, at what position the horse should be standing, if there are two and more horses can be attached.Usage
local retval = AttachDraftVehicleHarnessPed(mount, draft, harnessId)
-- always works, by hash
local retval = Citizen.InvokeNative(0x316CDB5B6E8F4110, mount, draft, harnessId, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = AttachDraftVehicleHarnessPed(mount, draft, harnessId);
// by hash
const retval = Citizen.invokeNative('0x316CDB5B6E8F4110', mount, draft, harnessId, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x316CDB5B6E8F4110, mount, draft, harnessId);- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
See also
Sources
alloc8or RDR3 NativeDB · femga rdr3_discoveries
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.