TASK_PLACE_CARRIED_ENTITY_AT_COORD
Hash
0xC7F0B43DCDC57E3DRuntime name
TaskPlaceCarriedEntityAtCoordNamespaceTASK
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
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
entity | Entity | — |
x | float | — |
y | float | — |
z | float | — |
p5 | float | — |
flags | int | — |
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
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#
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);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to 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.