RedM Natives

IS_ENTITY_TOUCHING_ENTITY

Hash0x9A2304A64C3C8423
Runtime nameIsEntityTouchingEntity
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x17FFC1B2BA35A494

Signature

BOOL IS_ENTITY_TOUCHING_ENTITY(Entity entity, Entity targetEntity);

Parameters

NameTypeDescription
entityEntity—
targetEntityEntity—

Returns BOOL

Usage

Lua
local retval = IsEntityTouchingEntity(entity, targetEntity)

-- always works, by hash
local retval = Citizen.InvokeNative(0x9A2304A64C3C8423, entity, targetEntity, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsEntityTouchingEntity(entity, targetEntity);

// by hash
const retval = Citizen.invokeNative('0x9A2304A64C3C8423', entity, targetEntity, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x9A2304A64C3C8423, entity, targetEntity);

Sources

alloc8or RDR3 NativeDB

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