{"hash":"0xD3151E53134595E5","ns":"ENTITY","name":"IS_ENTITY_IN_ANGLED_AREA","slug":"IS_ENTITY_IN_ANGLED_AREA","official":true,"named":true,"luaName":"IsEntityInAngledArea","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"entity","type":"Entity"},{"name":"originX","type":"float"},{"name":"originY","type":"float"},{"name":"originZ","type":"float"},{"name":"edgeX","type":"float"},{"name":"edgeY","type":"float"},{"name":"edgeZ","type":"float"},{"name":"angle","type":"float"},{"name":"p8","type":"BOOL"},{"name":"p9","type":"BOOL"},{"name":"p10","type":"Any"}],"summary":"Creates a spherical cone at origin that extends to surface with the angle specified.","descriptions":[{"source":"alloc8or","format":"text","body":"Creates a spherical cone at origin that extends to surface with the angle specified. Then returns true if the entity is inside the spherical cone\n\nAngle is measured in degrees."}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0x51210CED3DA1C78A","gtaJhash":"0x883622FA","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/ENTITY/IS_ENTITY_IN_ANGLED_AREA","markdownUrl":"https://natives.borderlinerp.com/natives/ENTITY/IS_ENTITY_IN_ANGLED_AREA.md","snippets":{"lua":"local retval = IsEntityInAngledArea(entity, originX, originY, originZ, edgeX, edgeY, edgeZ, angle, p8, p9, p10)","luaInvoke":"local retval = Citizen.InvokeNative(0xD3151E53134595E5, entity, originX, originY, originZ, edgeX, edgeY, edgeZ, angle, p8, p9, p10, Citizen.ReturnResultAnyway())","js":"const retval = IsEntityInAngledArea(entity, originX, originY, originZ, edgeX, edgeY, edgeZ, angle, p8, p9, p10);","jsInvoke":"const retval = Citizen.invokeNative('0xD3151E53134595E5', entity, originX + 0.0000001, originY + 0.0000001, originZ + 0.0000001, edgeX + 0.0000001, edgeY + 0.0000001, edgeZ + 0.0000001, angle + 0.0000001, p8, p9, p10, Citizen.returnResultAnyway());","csharp":"bool retval = Function.Call<bool>((Hash)0xD3151E53134595E5, entity, originX, originY, originZ, edgeX, edgeY, edgeZ, angle, p8, p9, p10);","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."]}}