RedM Natives

_GET_CARCASS_FROM_PELT

Returns the original animal/carcass entity from which a pelt entity was obtained.

Hash0x2A77EF9BEC8518F4
Runtime nameGetCarcassFromPelt
NamespaceENTITY
SideClient
NameCommunity guess
Docs
Since build1207
Also known as_GET_ENTITY_FROM_PELT

Signature

Entity _GET_CARCASS_FROM_PELT(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns Entity

Description

alloc8or RDR3 NativeDB

Returns the original animal/carcass entity from which a pelt entity was obtained.
Observed after skinning an animal: passing the created pelt entity returns the original animal entity. Returns 0 if no valid source entity exists.

VORPCORE RDR3natives

Returns the original animal (carcass) entity from which a pelt entity was obtained if it still exists

Usage

Lua
local retval = GetCarcassFromPelt(entity)

-- always works, by hash
local retval = Citizen.InvokeNative(0x2A77EF9BEC8518F4, entity, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetCarcassFromPelt(entity);

// by hash
const retval = Citizen.invokeNative('0x2A77EF9BEC8518F4', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x2A77EF9BEC8518F4, entity);
  • 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

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