_GET_ENTITY_BY_DOORHASH
Returns the door entity matching the door hash doorHash.
Signature
Entity _GET_ENTITY_BY_DOORHASH(Hash doorHash, int p1); // 0xF7424890E4A094C0 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | doorHash | Hash |
| 2 | p1 | int |
Facts
| 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.
local entity = Citizen.InvokeNative(0xF7424890E4A094C0, -- _GET_ENTITY_BY_DOORHASH
GetHashKey("name"), -- Hash doorHash
0, -- int p1
Citizen.ResultAsInteger()
)
print(entity)const entity = Citizen.invokeNative("0xF7424890E4A094C0", // _GET_ENTITY_BY_DOORHASH
GetHashKey("name"), // Hash doorHash
0, // int p1
Citizen.resultAsInteger()
);
console.log(entity)int entity = Function.Call<int>((Hash)0xF7424890E4A094C0, // _GET_ENTITY_BY_DOORHASH
(uint)API.GetHashKey("name"), // Hash doorHash
0 // int p1
);Related ENTITY natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.