RedM Natives

TASK_PLACE_CARRIED_ENTITY_AT_COORD

Hash0xC7F0B43DCDC57E3D
Runtime nameTaskPlaceCarriedEntityAtCoord
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207

Signature

void TASK_PLACE_CARRIED_ENTITY_AT_COORD(Ped ped, Entity entity, float x, float y, float z, float p5, int flags);

Parameters

NameTypeDescription
pedPed—
entityEntity—
xfloat—
yfloat—
zfloat—
p5float—
flagsint—

Returns void

Description

femga rdr3_discoveries · research notes

0xD806CD2A4F2C2996
0xC7F0B43DCDC57E3D
Not sure if somebody found this, but it just get's the carried entity. Also I did some research on the placing of the entity.

femga rdr3_discoveries · research notes

// 0xC7F0B43DCDC57E3D
TASK_PLACE_CARRIED_ENTITY_AT_COORD(Ped ped, Entity carried, float x, float y, float z, float ukn, int flag)
/*
    flag: Determines the way the entity is placed.
*/
Code I used
local carried = Citizen.InvokeNative(0xD806CD2A4F2C2996, PlayerPedId())
Citizen.InvokeNative(0xC7F0B43DCDC57E3D, PlayerPedId(), carried, GetEntityCoords(PlayerPedId()), 10.0, flag)

Usage

Lua
TaskPlaceCarriedEntityAtCoord(ped, entity, x, y, z, p5, flags)

-- always works, by hash
Citizen.InvokeNative(0xC7F0B43DCDC57E3D, ped, entity, x, y, z, p5, flags)
JavaScript and C#
JavaScript
TaskPlaceCarriedEntityAtCoord(ped, entity, x, y, z, p5, flags);

// by hash
Citizen.invokeNative('0xC7F0B43DCDC57E3D', ped, entity, x + 0.0000001, y + 0.0000001, z + 0.0000001, p5 + 0.0000001, flags);
C#
Function.Call((Hash)0xC7F0B43DCDC57E3D, ped, entity, x, y, z, p5, flags);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Sources

alloc8or RDR3 NativeDB · femga rdr3_discoveries

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