<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.gtaconnected.com/wiki/index.php?action=history&amp;feed=atom&amp;title=natives.drawRect</id>
	<title>natives.drawRect - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.gtaconnected.com/wiki/index.php?action=history&amp;feed=atom&amp;title=natives.drawRect"/>
	<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.drawRect&amp;action=history"/>
	<updated>2026-04-29T05:36:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.15</generator>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.drawRect&amp;diff=11265&amp;oldid=prev</id>
		<title>ChrisGame20: Created page with &quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.drawRect |parameters = Vec2 position, Vec2 size, int r, int g, int b, int a |parameter1 = Vec2 position Normalized screen coordinates (0.0–1.0) for the rectangle’s center |parameter2 = Vec2 size Rectangle size relative to screen (width, height) |parameter3 = int r Red color value (0–255) |parameter4 = int g Green color value (0–255) |parameter5 = int b Blue color value (0–255) |paramet...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.drawRect&amp;diff=11265&amp;oldid=prev"/>
		<updated>2025-11-24T07:47:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.drawRect |parameters = Vec2 position, Vec2 size, int r, int g, int b, int a |parameter1 = Vec2 position Normalized screen coordinates (0.0–1.0) for the rectangle’s center |parameter2 = Vec2 size Rectangle size relative to screen (width, height) |parameter3 = int r Red color value (0–255) |parameter4 = int g Green color value (0–255) |parameter5 = int b Blue color value (0–255) |paramet...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.drawRect&lt;br /&gt;
|parameters = Vec2 position, Vec2 size, int r, int g, int b, int a&lt;br /&gt;
|parameter1 = Vec2 position Normalized screen coordinates (0.0–1.0) for the rectangle’s center&lt;br /&gt;
|parameter2 = Vec2 size Rectangle size relative to screen (width, height)&lt;br /&gt;
|parameter3 = int r Red color value (0–255)&lt;br /&gt;
|parameter4 = int g Green color value (0–255)&lt;br /&gt;
|parameter5 = int b Blue color value (0–255)&lt;br /&gt;
|parameter6 = int a Alpha transparency value (0–255)&lt;br /&gt;
|usage = Draws a rectangle on the screen with the specified position, size, and color&lt;br /&gt;
|notes = This function must be called inside a rendering event such as [[OnDrawnHUD]] so the rectangle is drawn each frame&lt;br /&gt;
|return1 = void&lt;br /&gt;
|returnFail1 = void&lt;br /&gt;
|exampleJS = addEventHandler(&amp;quot;OnDrawnHUD&amp;quot;, function() {&lt;br /&gt;
    // Draw a semi-transparent red rectangle in the center of the screen&lt;br /&gt;
    natives.drawRect(new Vec2(0.5, 0.5), new Vec2(0.3, 0.2), 255, 0, 0, 150);&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
</feed>