The Lab
ENTITY native

IS_AN_ENTITY

returns BOOL1 parambuild 1207

Returns true if the handle refers to an entity.

Signature

C
BOOL IS_AN_ENTITY(ScrHandle handle); // 0x27CFF3E5A286D3DF b1207

Parameters

#NameType
1handleScrHandle

Facts

Facts about IS_AN_ENTITY
Name
IS_AN_ENTITY
Hash
0x27CFF3E5A286D3DF
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(0x27CFF3E5A286D3DF, -- IS_AN_ENTITY
  0 -- ScrHandle handle
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x27CFF3E5A286D3DF", // IS_AN_ENTITY
  0, // ScrHandle handle
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x27CFF3E5A286D3DF, // IS_AN_ENTITY
  0 // ScrHandle handle
);
All ENTITY natives

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