{"hash":"0xC057F02B837A27F6","ns":"ENTITY","name":"IS_ENTITY_AT_ENTITY","slug":"IS_ENTITY_AT_ENTITY","official":true,"named":true,"luaName":"IsEntityAtEntity","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"entity1","type":"Entity"},{"name":"entity2","type":"Entity"},{"name":"xSize","type":"float"},{"name":"ySize","type":"float"},{"name":"zSize","type":"float"},{"name":"p5","type":"BOOL"},{"name":"p6","type":"BOOL"},{"name":"p7","type":"int"}],"summary":"Checks if entity1 is within the box defined by x/y/zSize of entity2.","descriptions":[{"source":"alloc8or","format":"text","body":"Checks if entity1 is within the box defined by x/y/zSize of entity2.\n\nLast three parameters are almost always p5 = 0, p6 = 1, p7 = 0"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0x751B70C3D034E187","gtaJhash":"0xDABDCB52","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/ENTITY/IS_ENTITY_AT_ENTITY","markdownUrl":"https://natives.borderlinerp.com/natives/ENTITY/IS_ENTITY_AT_ENTITY.md","snippets":{"lua":"local retval = IsEntityAtEntity(entity1, entity2, xSize, ySize, zSize, p5, p6, p7)","luaInvoke":"local retval = Citizen.InvokeNative(0xC057F02B837A27F6, entity1, entity2, xSize, ySize, zSize, p5, p6, p7, Citizen.ReturnResultAnyway())","js":"const retval = IsEntityAtEntity(entity1, entity2, xSize, ySize, zSize, p5, p6, p7);","jsInvoke":"const retval = Citizen.invokeNative('0xC057F02B837A27F6', entity1, entity2, xSize + 0.0000001, ySize + 0.0000001, zSize + 0.0000001, p5, p6, p7, Citizen.returnResultAnyway());","csharp":"bool retval = Function.Call<bool>((Hash)0xC057F02B837A27F6, entity1, entity2, xSize, ySize, zSize, p5, p6, p7);","notes":["Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason."]}}