_GET_CARCASS_FROM_PELT
Returns the original animal/carcass entity from which a pelt entity was obtained.
Hash
0x2A77EF9BEC8518F4Runtime name
GetCarcassFromPeltNamespaceENTITY
SideClient
NameCommunity guess
Docs
Since build1207
Also known as
_GET_ENTITY_FROM_PELTSignature
Entity _GET_CARCASS_FROM_PELT(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns Entity
Description
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.
Returns the original animal (carcass) entity from which a pelt entity was obtained if it still exists
Usage
local retval = GetCarcassFromPelt(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0x2A77EF9BEC8518F4, entity, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetCarcassFromPelt(entity);
// by hash
const retval = Citizen.invokeNative('0x2A77EF9BEC8518F4', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());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
InvokeNativewith the hash — it always works.
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.