The Lab
ENTITY native

_ATTACH_ENTITY_TO_COORDS_PHYSICALLY

returns void16 paramsbuild 1207

Based on its name and signature, here is our best reading:

Physically attaches the entity to a fixed world position with the given offset. Most of the extra parameters are not documented.

Signature

C
void _ATTACH_ENTITY_TO_COORDS_PHYSICALLY(Entity entity, int p1, float x, float y, float z, float offsetX, float offsetY, float offsetZ, float timer, BOOL p9, int p10, int p11, int p12, int p13, int p14, int p15); // 0x445D7D8EA66E373E b1207

Parameters

#NameType
1entityEntity
2p1int
3xfloat
4yfloat
5zfloat
6offsetXfloat
7offsetYfloat
8offsetZfloat
9timerfloat
10p9BOOL
11p10int
12p11int
13p12int
14p13int
15p14int
16p15int

Facts

Facts about _ATTACH_ENTITY_TO_COORDS_PHYSICALLY
Name
_ATTACH_ENTITY_TO_COORDS_PHYSICALLY
Hash
0x445D7D8EA66E373E
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x445D7D8EA66E373E, -- _ATTACH_ENTITY_TO_COORDS_PHYSICALLY
  PlayerPedId(), -- Entity entity
  0, -- int p1
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  0.0, -- float offsetX
  0.0, -- float offsetY
  0.0, -- float offsetZ
  0.0, -- float timer
  false, -- BOOL p9
  0, -- int p10
  0, -- int p11
  0, -- int p12
  0, -- int p13
  0, -- int p14
  0 -- int p15
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x445D7D8EA66E373E", // _ATTACH_ENTITY_TO_COORDS_PHYSICALLY
  PlayerPedId(), // Entity entity
  0, // int p1
  0.0, // float x
  0.0, // float y
  0.0, // float z
  0.0, // float offsetX
  0.0, // float offsetY
  0.0, // float offsetZ
  0.0, // float timer
  false, // BOOL p9
  0, // int p10
  0, // int p11
  0, // int p12
  0, // int p13
  0, // int p14
  0 // int p15
);
C#
Function.Call((Hash)0x445D7D8EA66E373E, // _ATTACH_ENTITY_TO_COORDS_PHYSICALLY
  API.PlayerPedId(), // Entity entity
  0, // int p1
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  0.0f, // float offsetX
  0.0f, // float offsetY
  0.0f, // float offsetZ
  0.0f, // float timer
  false, // BOOL p9
  0, // int p10
  0, // int p11
  0, // int p12
  0, // int p13
  0, // int p14
  0 // int p15
);
All ENTITY natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.