<?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.setTextColour</id>
	<title>natives.setTextColour - 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.setTextColour"/>
	<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.setTextColour&amp;action=history"/>
	<updated>2026-04-29T06:18: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.setTextColour&amp;diff=11283&amp;oldid=prev</id>
		<title>ChrisGame20: Created page with &quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setTextColour |parameters = int r, int g, int b, int a |parameter1 = int r Red component (0–255) |parameter2 = int g Green component (0–255) |parameter3 = int b Blue component (0–255) |parameter4 = int a Alpha component (0–255), controls opacity (0 = fully transparent, 255 = fully opaque) |usage = Sets the RGBA colour and opacity of text drawn on the screen |notes =  - Must be called bef...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.setTextColour&amp;diff=11283&amp;oldid=prev"/>
		<updated>2025-11-28T12:19:34Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setTextColour |parameters = int r, int g, int b, int a |parameter1 = int r Red component (0–255) |parameter2 = int g Green component (0–255) |parameter3 = int b Blue component (0–255) |parameter4 = int a Alpha component (0–255), controls opacity (0 = fully transparent, 255 = fully opaque) |usage = Sets the RGBA colour and opacity of text drawn on the screen |notes =  - Must be called bef...&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.setTextColour&lt;br /&gt;
|parameters = int r, int g, int b, int a&lt;br /&gt;
|parameter1 = int r Red component (0–255)&lt;br /&gt;
|parameter2 = int g Green component (0–255)&lt;br /&gt;
|parameter3 = int b Blue component (0–255)&lt;br /&gt;
|parameter4 = int a Alpha component (0–255), controls opacity (0 = fully transparent, 255 = fully opaque)&lt;br /&gt;
|usage = Sets the RGBA colour and opacity of text drawn on the screen&lt;br /&gt;
|notes = &lt;br /&gt;
- Must be called before [[natives.displayTextWithLiteralString]] or similar text drawing functions&lt;br /&gt;
- The alpha channel defines transparency: 0 invisible, 255 fully visible&lt;br /&gt;
- Combine with [[natives.setTextScale]] and [[natives.setTextFont]] for complete styling&lt;br /&gt;
|return1 = void&lt;br /&gt;
|returnFail1 = void&lt;br /&gt;
|exampleJS = addEventHandler(&amp;quot;OnDrawnHUD&amp;quot;, function() {&lt;br /&gt;
    // White text with 80% opacity&lt;br /&gt;
    natives.setTextScale(0.30, 0.30);&lt;br /&gt;
    natives.setTextFont(0);&lt;br /&gt;
    natives.setTextColour(255, 255, 255, 200);&lt;br /&gt;
&lt;br /&gt;
    natives.displayTextWithLiteralString(new Vec2(0.05, 0.10), &amp;quot;STRING&amp;quot;, &amp;quot;Text with opacity 200/255&amp;quot;);&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
</feed>