_GET_OPTIMAL_CARRY_CONFIG
Valid indices: 0 - 3 Index 1 always returns a `hogtied` config, doesn't matter the entity.
Hash
0x34F008A7E48C496BRuntime name
GetOptimalCarryConfigNamespaceENTITY
SideClient
NameCommunity guess
Docs
Since build1207
Signature
Hash _GET_OPTIMAL_CARRY_CONFIG(Entity entity, int index);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
index | int | — |
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
local retval = GetOptimalCarryConfig(entity, index)
-- always works, by hash
local retval = Citizen.InvokeNative(0x34F008A7E48C496B, entity, index, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetOptimalCarryConfig(entity, index);
// by hash
const retval = Citizen.invokeNative('0x34F008A7E48C496B', entity, index, Citizen.returnResultAnyway(), Citizen.resultAsInteger());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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.