DrawTexturedPoly — FiveM Natives
0x29280002282F1928 · GRAPHICS · all
This native draws a textured polygon between three vectors in the game world. It's commonly utilized for rendering deadline trailing lights, with additional details available in the deadline.ytd file. UVW mapping details (u,v,w parameters) can be found on various internet resources. This native is specifically used for drawing textured polygons on the screen, where UV coordinates define the texture mapping and color/alpha parameters define the appearance of the polygon. This native should be called every frame for continuous rendering. `` NativeDB Introduced: v877 ``
Parameters
| Name | Type | Description |
|---|---|---|
| x1 | float | The x-coordinate of the first vector. |
| y1 | float | The y-coordinate of the first vector. |
| z1 | float | The z-coordinate of the first vector. |
| x2 | float | The x-coordinate of the second vector. |
| y2 | float | The y-coordinate of the second vector. |
| z2 | float | The z-coordinate of the second vector. |
| x3 | float | The x-coordinate of the third vector. |
| y3 | float | The y-coordinate of the third vector. |
| z3 | float | The z-coordinate of the third vector. |
| red | int | The red color component of the polygon (0 - 255). |
| green | int | The green color component of the polygon (0 - 255). |
| blue | int |