The Lab
ENTITY native

IS_ENTITY_ATTACHED_TO_ENTITY

returns BOOL2 paramsbuild 1207

Returns true if from is attached to to.

Signature

C
BOOL IS_ENTITY_ATTACHED_TO_ENTITY(Entity from, Entity to); // 0x154A3C529497053E b1207

Parameters

#NameType
1fromEntity
2toEntity

Facts

Facts about IS_ENTITY_ATTACHED_TO_ENTITY
Name
IS_ENTITY_ATTACHED_TO_ENTITY
Hash
0x154A3C529497053E
Namespace
Returns
BOOL
Game build
1207

Examples

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

Lua
local result = Citizen.InvokeNative(0x154A3C529497053E, -- IS_ENTITY_ATTACHED_TO_ENTITY
  PlayerPedId(), -- Entity from
  PlayerPedId() -- Entity to
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x154A3C529497053E", // IS_ENTITY_ATTACHED_TO_ENTITY
  PlayerPedId(), // Entity from
  PlayerPedId(), // Entity to
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x154A3C529497053E, // IS_ENTITY_ATTACHED_TO_ENTITY
  API.PlayerPedId(), // Entity from
  API.PlayerPedId() // Entity to
);
All ENTITY natives

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