_ATTACH_ENTITY_TO_COORDS_PHYSICALLY
Attach an entity to coordinates physically better name may be perfered?
Hash
0x445D7D8EA66E373ERuntime name
AttachEntityToCoordsPhysicallyNamespaceENTITY
SideClient
NameCommunity guess
Docs
Since build1207
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);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
p1 | int | — |
x | float | — |
y | float | — |
z | float | — |
offsetX | float | — |
offsetY | float | — |
offsetZ | float | — |
timer | float | — |
p9 | BOOL | — |
p10 | int | — |
p11 | int | — |
p12 | int | — |
p13 | int | — |
p14 | int | — |
p15 | int | — |
Returns void
Description
Attach an entity to coordinates physically better name may be perfered? seems to be used with boats p_skiff02x ? The last 6 params are always 0 everywhere in the base code. p7 = 500.0 some kind of time? p8 =1
Usage
AttachEntityToCoordsPhysically(entity, p1, x, y, z, offsetX, offsetY, offsetZ, timer, p9, p10, p11, p12, p13, p14, p15)
-- always works, by hash
Citizen.InvokeNative(0x445D7D8EA66E373E, entity, p1, x, y, z, offsetX, offsetY, offsetZ, timer, p9, p10, p11, p12, p13, p14, p15)JavaScript and C#
AttachEntityToCoordsPhysically(entity, p1, x, y, z, offsetX, offsetY, offsetZ, timer, p9, p10, p11, p12, p13, p14, p15);
// by hash
Citizen.invokeNative('0x445D7D8EA66E373E', entity, p1, x + 0.0000001, y + 0.0000001, z + 0.0000001, offsetX + 0.0000001, offsetY + 0.0000001, offsetZ + 0.0000001, timer + 0.0000001, p9, p10, p11, p12, p13, p14, p15);Function.Call((Hash)0x445D7D8EA66E373E, entity, p1, x, y, z, offsetX, offsetY, offsetZ, timer, p9, p10, p11, p12, p13, p14, p15);- 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. - 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
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.