_SET_PELT_FOR_HORSE_BY_INVENTORY_ITEM
Adds a pelt to a horse from an inventoryItem hash and albedoHash, optionally normalHash textures.
Hash
0xC412AA1C73111FE0Runtime name
SetPeltForHorseByInventoryItemNamespacePED
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
| Name | Type | Description |
|---|---|---|
horse | Ped | — |
inventoryItem | Hash | — |
albedoHash | Hash | — |
normalHash | Hash | — |
p4 | BOOL | — |
Returns void
Description
Adds a pelt to a horse from an inventoryItem hash and albedoHash, optionally normalHash textures.
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
SetPeltForHorseByInventoryItem(horse, inventoryItem, albedoHash, normalHash, p4)
-- always works, by hash
Citizen.InvokeNative(0xC412AA1C73111FE0, horse, inventoryItem, albedoHash, normalHash, p4)JavaScript and C#
SetPeltForHorseByInventoryItem(horse, inventoryItem, albedoHash, normalHash, p4);
// by hash
Citizen.invokeNative('0xC412AA1C73111FE0', horse, inventoryItem, albedoHash, normalHash, p4);Function.Call((Hash)0xC412AA1C73111FE0, horse, inventoryItem, albedoHash, normalHash, p4);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("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
InvokeNativewith 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.