RedM Natives

_ATTACH_ENTITY_TO_COORDS_PHYSICALLY

Attach an entity to coordinates physically better name may be perfered?

Hash0x445D7D8EA66E373E
Runtime nameAttachEntityToCoordsPhysically
NamespaceENTITY
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

NameTypeDescription
entityEntity—
p1int—
xfloat—
yfloat—
zfloat—
offsetXfloat—
offsetYfloat—
offsetZfloat—
timerfloat—
p9BOOL—
p10int—
p11int—
p12int—
p13int—
p14int—
p15int—

Returns void

Description

VORPCORE RDR3natives

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

Lua
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#
JavaScript
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);
C#
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. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to 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 InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

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