DRAW_RECT
Draws a rectangle on the screen. -x: The relative X point of the center of the rectangle. (0.0-1.0, 0.0 is the left edge of the screen, 1.0 is the right edge of the screen) -y: The relative Y point of the center of the rectangle. (0.0-1.0, 0.0 is the top edge of the screen, 1.0 is the bottom edge of the screen) -width: The relative width of the rectangle. (0.0-1.0, 1.0 means the whole screen width) -height: The relative height of the rectangle. (0.0-1.0, 1.0 means the whole screen height) -R: Red part of the color. (0-255) -G: Green part of the color. (0-255) -B: Blue part of the color. (0-255) -A: Alpha part of the color. (0-255, 0 means totally transparent, 255 means totally opaque)
Signature
DrawRect(0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, true, true)
-- returns voidParameters
| Name | Type | Description |
|---|---|---|
| float | — | |
| float | — | |
| float | — | |
| float | — | |
| int | — | |
| int | — | |
| int | — | |
| int | — | |
| BOOL | — | |
| BOOL | — |
Usage
DrawRect(0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, true, true)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- Joaat hash
- Source
- VORPCORE/RDR3natives
Source: VORPCORE/RDR3natives
