| Property | Value |
|---|---|
| Native Name | IS_POINT_IN_ANGLED_AREA |
| Hash | 0x2A70BAE8883E4C81 |
| Return Type | BOOL |
| Build | 1207 |
| Parameters | xPos (float), yPos (float), zPos (float), x1 (float), y1 (float), z1 (float), x2 (float), y2 (float), z2 (float), width (float), p10 (BOOL), includez (BOOL) |
Description: An angled area is an X-Z oriented rectangle with three parameters:
- origin: the mid-point along a base edge of the rectangle;
- extent: the mid-point of opposite base edge on the other Z;
- width: the length of the base edge; (named derived from logging strings
CNetworkRoadNodeWorldStateData).
The oriented rectangle can then be derived from the direction of the two points (norm(origin - extent)), its orthonormal, and the width, e.g:
Parameters
xPos(float) — The x coordinate.yPos(float) — The y coordinate.zPos(float) — The z coordinate.x1(float) — X dimension of the angled area 'origin'y1(float) — Y dimension of the angled area 'origin'z1(float) — Z dimension of the angled area 'origin'x2(float) — X dimension of the angled area 'extent'y2(float) — Y dimension of the angled area 'extent'z2(float) — Z dimension of the angled area 'extent'width(float) — Width of the angled areap10(BOOL) — a debug flag invoking functions in the same path asDRAW_MARKERincludez(BOOL) — If true, include the Z dimension when doing the height check; otherwise the query becomes two-dimensional
Usage
Lua (Direct):
local result = IsPointInAngledArea(xPos, yPos, zPos, x1, y1, z1, x2, y2, z2, width, p10, includez)
Lua (Hash):
local result = Citizen.InvokeNative(0x2A70BAE8883E4C81, xPos, yPos, zPos, x1, y1, z1, x2, y2, z2, width, p10, includez)

