{"hash":"0xF7424890E4A094C0","ns":"ENTITY","name":"_GET_ENTITY_BY_DOORHASH","slug":"_GET_ENTITY_BY_DOORHASH","official":false,"named":true,"luaName":"GetEntityByDoorhash","game":"rdr3","apiset":"client","returnType":"Entity","params":[{"name":"doorHash","type":"Hash"},{"name":"p1","type":"int"}],"summary":"","descriptions":[{"source":"alloc8or","format":"text","body":"Params: p1 = 0 in R* Scripts (GET_DOOR_ENTITY_FROM_ID)\nhttps://github.com/femga/rdr3_discoveries/blob/master/doorHashes/doorhashes.lua"},{"source":"femga","format":"pre","body":"// 0xF7424890E4A094C0\n _GET_ENTITY_FROM_DOORHASH(doorhash,0)\n    -------------------------------------------------------------------"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","femga"],"doc":2,"url":"https://natives.borderlinerp.com/natives/ENTITY/_GET_ENTITY_BY_DOORHASH","markdownUrl":"https://natives.borderlinerp.com/natives/ENTITY/_GET_ENTITY_BY_DOORHASH.md","snippets":{"lua":"local retval = GetEntityByDoorhash(doorHash, p1)","luaInvoke":"local retval = Citizen.InvokeNative(0xF7424890E4A094C0, doorHash, p1, Citizen.ResultAsInteger())","js":"const retval = GetEntityByDoorhash(doorHash, p1);","jsInvoke":"const retval = Citizen.invokeNative('0xF7424890E4A094C0', doorHash, p1, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0xF7424890E4A094C0, doorHash, p1);","notes":["Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat(\"name\")` or a backtick literal like `` `name` ``.","The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}