_ATTACH_ENTITY_TO_COORDS_PHYSICALLY
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
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 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | p1 | int |
| 3 | x | float |
| 4 | y | float |
| 5 | z | float |
| 6 | offsetX | float |
| 7 | offsetY | float |
| 8 | offsetZ | float |
| 9 | timer | float |
| 10 | p9 | BOOL |
| 11 | p10 | int |
| 12 | p11 | int |
| 13 | p12 | int |
| 14 | p13 | int |
| 15 | p14 | int |
| 16 | p15 | int |
Facts
| 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.
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
)// 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
);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
);Related ENTITY natives
- ATTACH_ENTITY_TO_ENTITY_PHYSICALLY
- ATTACH_ENTITY_TO_ENTITY
- _GET_LAST_ENTITY_TO_DAMAGE_ENTITY
- HAS_ENTITY_CLEAR_LOS_TO_ENTITY
- HAS_ENTITY_CLEAR_LOS_TO_ENTITY_IN_FRONT
- IS_ENTITY_ATTACHED_TO_ENTITY
- _SET_ENTITY_COORDS_AND_HEADING
- _SET_ENTITY_COORDS_AND_HEADING_NO_OFFSET
- _SET_ENTITY_ROTATION_PARALLEL_TO_LINE
- APPLY_FORCE_TO_ENTITY
- APPLY_FORCE_TO_ENTITY_CENTER_OF_MASS
- CLEAR_ENTITY_LAST_DAMAGE_ENTITY
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.