The Lab
ENTITY native

IS_ENTITY_TOUCHING_MODEL

returns BOOL2 paramsbuild 1207

Returns true if the entity is touching any entity of modelHash.

Signature

C
BOOL IS_ENTITY_TOUCHING_MODEL(Entity entity, Hash modelHash); // 0x2AE3EBC8DEB9768B b1207

Parameters

#NameType
1entityEntity
2modelHashHash

Facts

Facts about IS_ENTITY_TOUCHING_MODEL
Name
IS_ENTITY_TOUCHING_MODEL
Hash
0x2AE3EBC8DEB9768B
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(0x2AE3EBC8DEB9768B, -- IS_ENTITY_TOUCHING_MODEL
  PlayerPedId(), -- Entity entity
  GetHashKey("a_c_horse_arabian_white") -- Hash modelHash
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x2AE3EBC8DEB9768B", // IS_ENTITY_TOUCHING_MODEL
  PlayerPedId(), // Entity entity
  GetHashKey("a_c_horse_arabian_white"), // Hash modelHash
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x2AE3EBC8DEB9768B, // IS_ENTITY_TOUCHING_MODEL
  API.PlayerPedId(), // Entity entity
  (uint)API.GetHashKey("a_c_horse_arabian_white") // Hash modelHash
);
All ENTITY natives

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