The Lab
ENTITY native

DETACH_ENTITY

returns void3 paramsbuild 1207

Detaches the entity from whatever it is attached to, optionally restoring collision.

Signature

C
void DETACH_ENTITY(Entity entity, BOOL p1, BOOL collision); // 0x64CDE9D6BF8ECAD3 b1207

Parameters

#NameType
1entityEntity
2p1BOOL
3collisionBOOL

Facts

Facts about DETACH_ENTITY
Name
DETACH_ENTITY
Hash
0x64CDE9D6BF8ECAD3
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(0x64CDE9D6BF8ECAD3, -- DETACH_ENTITY
  PlayerPedId(), -- Entity entity
  false, -- BOOL p1
  false -- BOOL collision
)
JavaScript
Citizen.invokeNative("0x64CDE9D6BF8ECAD3", // DETACH_ENTITY
  PlayerPedId(), // Entity entity
  false, // BOOL p1
  false // BOOL collision
);
C#
Function.Call((Hash)0x64CDE9D6BF8ECAD3, // DETACH_ENTITY
  API.PlayerPedId(), // Entity entity
  false, // BOOL p1
  false // BOOL collision
);
All ENTITY natives

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