<?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.setTextDropshadow</id>
	<title>natives.setTextDropshadow - 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.setTextDropshadow"/>
	<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.setTextDropshadow&amp;action=history"/>
	<updated>2026-04-29T17:58:32Z</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.setTextDropshadow&amp;diff=11296&amp;oldid=prev</id>
		<title>ChrisGame20: Created page with &quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setTextDropshadow |parameters = bool enable, int r, int g, int b, int a |parameter1 = bool enable True to enable dropshadow effect, false to disable |parameter2 = int r Red component of the shadow colour (0–255) |parameter3 = int g Green component of the shadow colour (0–255) |parameter4 = int b Blue component of the shadow colour (0–255) |parameter5 = int a Alpha component (opacity) of th...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.setTextDropshadow&amp;diff=11296&amp;oldid=prev"/>
		<updated>2025-11-28T16:56:21Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setTextDropshadow |parameters = bool enable, int r, int g, int b, int a |parameter1 = bool enable True to enable dropshadow effect, false to disable |parameter2 = int r Red component of the shadow colour (0–255) |parameter3 = int g Green component of the shadow colour (0–255) |parameter4 = int b Blue component of the shadow colour (0–255) |parameter5 = int a Alpha component (opacity) of th...&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.setTextDropshadow&lt;br /&gt;
|parameters = bool enable, int r, int g, int b, int a&lt;br /&gt;
|parameter1 = bool enable True to enable dropshadow effect, false to disable&lt;br /&gt;
|parameter2 = int r Red component of the shadow colour (0–255)&lt;br /&gt;
|parameter3 = int g Green component of the shadow colour (0–255)&lt;br /&gt;
|parameter4 = int b Blue component of the shadow colour (0–255)&lt;br /&gt;
|parameter5 = int a Alpha component (opacity) of the shadow colour (0–255)&lt;br /&gt;
|usage = Enables or disables a coloured dropshadow behind 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 dropshadow improves readability by adding a coloured shadow offset behind the text&lt;br /&gt;
- Alpha controls the opacity of the shadow; 255 = fully visible, 0 = invisible&lt;br /&gt;
- Can be combined with [[natives.setTextEdge]] for stronger contrast&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 a black dropshadow&lt;br /&gt;
    natives.setTextScale(0.30, 0.30);&lt;br /&gt;
    natives.setTextFont(0);&lt;br /&gt;
    natives.setTextColour(255, 255, 255, 255);&lt;br /&gt;
    natives.setTextDropshadow(true, 0, 0, 0, 200);&lt;br /&gt;
&lt;br /&gt;
    natives.displayTextWithLiteralString(new Vec2(0.05, 0.15), &amp;quot;STRING&amp;quot;, &amp;quot;Text with black shadow&amp;quot;);&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
</feed>