RedM Natives

_GET_OPTIMAL_CARRY_CONFIG

Valid indices: 0 - 3 Index 1 always returns a `hogtied` config, doesn't matter the entity.

Hash0x34F008A7E48C496B
Runtime nameGetOptimalCarryConfig
NamespaceENTITY
SideClient
NameCommunity guess
Docs
Since build1207

Signature

Hash _GET_OPTIMAL_CARRY_CONFIG(Entity entity, int index);

Parameters

NameTypeDescription
entityEntity—
indexint—

Returns Hash

Description

Valid indices: 0 - 3
Index 1 always returns a hogtied config, doesn't matter the entity.
It's for humans only and the ped must be resurrected first if it's dead.

Usage

Lua
local retval = GetOptimalCarryConfig(entity, index)

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

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

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