RedM Natives

_SET_PELT_FOR_HORSE_BY_INVENTORY_ITEM

Adds a pelt to a horse from an inventoryItem hash and albedoHash, optionally normalHash textures.

Hash0xC412AA1C73111FE0
Runtime nameSetPeltForHorseByInventoryItem
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _SET_PELT_FOR_HORSE_BY_INVENTORY_ITEM(Ped horse, Hash inventoryItem, Hash albedoHash, Hash normalHash, BOOL p4);

Parameters

NameTypeDescription
horsePed—
inventoryItemHash—
albedoHashHash—
normalHashHash—
p4BOOL—

Returns void

Description

alloc8or RDR3 NativeDB

Adds a pelt to a horse from an inventoryItem hash and albedoHash, optionally normalHash textures.

VORPCORE RDR3natives

Set the pelt of the animal to the back of the horse
EXAMPLE:
local mount = GetMountOwnedByPlayer(PlayerId())
Citizen.InvokeNative(0xC412AA1C73111FE0,mount,GetHashKey('PROVISION_DEER_HIDE_POOR'),GetHashKey('a_c_deer_01_uppr_000_c0_001_ab'),0,0)

femga rdr3_discoveries · research notes

0xC412AA1C73111FE0(by Ultimation)
Adds a pelt to a horse from an itemHash and the albedo, (optional) normal textures.

local mount = GetMountOwnedByPlayer(PlayerId())
local itemhash = GetHashKey('PROVISION_DEER_HIDE_POOR')
local albedo = GetHashKey('a_c_deer_01_uppr_000_c0_001_ab')
local normal = 0
local param5 = 0 -- always appears to be 0

Citizen.InvokeNative(0xC412AA1C73111FE0,mount,itemHash,albedo,normal,0,param5)

Usage

Lua
SetPeltForHorseByInventoryItem(horse, inventoryItem, albedoHash, normalHash, p4)

-- always works, by hash
Citizen.InvokeNative(0xC412AA1C73111FE0, horse, inventoryItem, albedoHash, normalHash, p4)
JavaScript and C#
JavaScript
SetPeltForHorseByInventoryItem(horse, inventoryItem, albedoHash, normalHash, p4);

// by hash
Citizen.invokeNative('0xC412AA1C73111FE0', horse, inventoryItem, albedoHash, normalHash, p4);
C#
Function.Call((Hash)0xC412AA1C73111FE0, horse, inventoryItem, albedoHash, normalHash, p4);
  • 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 · VORPCORE RDR3natives · femga rdr3_discoveries

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