The Lab
ENTITY native

_GET_ENTITY_BY_DOORHASH

returns Entity2 paramsbuild 1207

Returns the door entity matching the door hash doorHash.

Signature

C
Entity _GET_ENTITY_BY_DOORHASH(Hash doorHash, int p1); // 0xF7424890E4A094C0 b1207

Parameters

#NameType
1doorHashHash
2p1int

Facts

Facts about _GET_ENTITY_BY_DOORHASH
Name
_GET_ENTITY_BY_DOORHASH
Hash
0xF7424890E4A094C0
Namespace
Returns
Entity
Game build
1207

Examples

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

Lua
local entity = Citizen.InvokeNative(0xF7424890E4A094C0, -- _GET_ENTITY_BY_DOORHASH
  GetHashKey("name"), -- Hash doorHash
  0, -- int p1
  Citizen.ResultAsInteger()
)
print(entity)
JavaScript
const entity = Citizen.invokeNative("0xF7424890E4A094C0", // _GET_ENTITY_BY_DOORHASH
  GetHashKey("name"), // Hash doorHash
  0, // int p1
  Citizen.resultAsInteger()
);
console.log(entity)
C#
int entity = Function.Call<int>((Hash)0xF7424890E4A094C0, // _GET_ENTITY_BY_DOORHASH
  (uint)API.GetHashKey("name"), // Hash doorHash
  0 // int p1
);
All ENTITY natives

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