{"hash":"0x14FF0C2545527F9B","ns":"WEAPON","name":"_ATTACH_WEAPON_TO_HORSE_HOLSTER","slug":"_ATTACH_WEAPON_TO_HORSE_HOLSTER","official":false,"named":true,"luaName":"AttachWeaponToHorseHolster","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"horse","type":"Ped"},{"name":"weaponHash","type":"Hash"},{"name":"ownerPed","type":"Ped"}],"summary":"Visually attaches the specified weapon to a horse holster/rack (shows the weapon model on the horse), even when the caller is not near the horse.","descriptions":[{"source":"alloc8or","format":"text","body":"Visually attaches the specified weapon to a horse holster/rack (shows the weapon model on the horse), even when the caller is not near the horse.\n\nTypical flow:\n\t1) Move/assign the weapon into the horse inventory context first (commonly via 0xE9BD19F8121ADE3E).\n\t2) Call this native to force the visible attachment on the horse.\n\nNotes:\n- This is about the *visible* holster/rack state; it is often paired with 0xE9BD19F8121ADE3E because that makes the weapon available in inventory terms, while this makes it appear on the horse.\n- Validate `horse` and `ownerPed` exist and are alive/valid before calling.\n\nRelated:\n- 0xE9BD19F8121ADE3E (commonly used before this)\n- 0xD4C6E24D955FF061 (_DELETE_WEAPON_OBJECTS_ON_HORSE)"},{"source":"vorp","format":"text","body":"Puts the gun visibly in your horse's holster without having to be close to the horse. Use 0xE9BD19F8121ADE3E before using this native\nNotes:\n- Must call _SEND_WEAPON_TO_INVENTORY (0xE9BD19F8121ADE3E) beforehand to move the weapon into the horse inventory. That native makes it accessible from the weapon wheel but not visible; this native makes it visible on the horse.\n- Works at a distance; proximity to the horse is not required."}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/WEAPON/_ATTACH_WEAPON_TO_HORSE_HOLSTER","markdownUrl":"https://natives.borderlinerp.com/natives/WEAPON/_ATTACH_WEAPON_TO_HORSE_HOLSTER.md","snippets":{"lua":"AttachWeaponToHorseHolster(horse, weaponHash, ownerPed)","luaInvoke":"Citizen.InvokeNative(0x14FF0C2545527F9B, horse, weaponHash, ownerPed)","js":"AttachWeaponToHorseHolster(horse, weaponHash, ownerPed);","jsInvoke":"Citizen.invokeNative('0x14FF0C2545527F9B', horse, weaponHash, ownerPed);","csharp":"Function.Call((Hash)0x14FF0C2545527F9B, horse, weaponHash, ownerPed);","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."]}}