<?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.setTextCentre</id>
	<title>natives.setTextCentre - 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.setTextCentre"/>
	<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.setTextCentre&amp;action=history"/>
	<updated>2026-04-29T17:58:59Z</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.setTextCentre&amp;diff=11294&amp;oldid=prev</id>
		<title>ChrisGame20: Created page with &quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setTextCentre |parameters = bool centre |parameter1 = bool centre True to center the text horizontally, false to align normally (left by default) |usage = Sets whether text drawn on the screen should be horizontally centered |notes =  - Must be called before natives.displayTextWithLiteralString or similar text drawing functions - Only affects horizontal alignment; vertical alignment is contr...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.setTextCentre&amp;diff=11294&amp;oldid=prev"/>
		<updated>2025-11-28T16:50:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setTextCentre |parameters = bool centre |parameter1 = bool centre True to center the text horizontally, false to align normally (left by default) |usage = Sets whether text drawn on the screen should be horizontally centered |notes =  - Must be called before &lt;a href=&quot;/natives.displayTextWithLiteralString&quot; title=&quot;natives.displayTextWithLiteralString&quot;&gt;natives.displayTextWithLiteralString&lt;/a&gt; or similar text drawing functions - Only affects horizontal alignment; vertical alignment is contr...&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.setTextCentre&lt;br /&gt;
|parameters = bool centre&lt;br /&gt;
|parameter1 = bool centre True to center the text horizontally, false to align normally (left by default)&lt;br /&gt;
|usage = Sets whether text drawn on the screen should be horizontally centered&lt;br /&gt;
|notes = &lt;br /&gt;
- Must be called before [[natives.displayTextWithLiteralString]] or similar text drawing functions&lt;br /&gt;
- Only affects horizontal alignment; vertical alignment is controlled separately&lt;br /&gt;
- Useful for HUD elements or messages that need to be centered on screen&lt;br /&gt;
|return1 = void&lt;br /&gt;
|returnFail1 = void&lt;br /&gt;
|exampleJS = addEventHandler(&amp;quot;OnDrawnHUD&amp;quot;, function() {&lt;br /&gt;
    // Centered text example&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.setTextCentre(true);&lt;br /&gt;
&lt;br /&gt;
    natives.displayTextWithLiteralString(new Vec2(0.50, 0.10), &amp;quot;STRING&amp;quot;, &amp;quot;Text centered on screen&amp;quot;);&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
</feed>