<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/GetPlayerHudComponentProperty?action=history&amp;feed=atom</id>
	<title>GetPlayerHudComponentProperty - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/GetPlayerHudComponentProperty?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPlayerHudComponentProperty&amp;action=history"/>
	<updated>2026-10-18T04:56:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.1</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPlayerHudComponentProperty&amp;diff=81598&amp;oldid=prev</id>
		<title>FileEX: Created page with &quot;__NOTOC__ {{Client function}} {{New feature/item|3.0161|1.6.0|22868|This function gets the value of the specified HUD property.}}  ==Syntax== &lt;syntaxhighlight lang=&quot;lua&quot;&gt; mixed getPlayerHudComponentProperty (string component, string property) &lt;/syntaxhighlight&gt;  {{OOP||player:getHudComponentProperty||setPlayerHudComponentProperty}}  ===Required Arguments=== *&#039;&#039;&#039;component:&#039;&#039;&#039; The component whose property you want to retrieve. See HUD Components. *&#039;&#039;&#039;property:&#039;&#039;&#039; T...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPlayerHudComponentProperty&amp;diff=81598&amp;oldid=prev"/>
		<updated>2024-12-31T19:27:22Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ {{Client function}} {{New feature/item|3.0161|1.6.0|22868|This function gets the value of the specified HUD property.}}  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; mixed getPlayerHudComponentProperty (string component, string property) &amp;lt;/syntaxhighlight&amp;gt;  {{OOP||&lt;a href=&quot;/wiki/Player&quot; class=&quot;mw-redirect&quot; title=&quot;Player&quot;&gt;player&lt;/a&gt;:getHudComponentProperty||setPlayerHudComponentProperty}}  ===Required Arguments=== *&amp;#039;&amp;#039;&amp;#039;component:&amp;#039;&amp;#039;&amp;#039; The component whose property you want to retrieve. See &lt;a href=&quot;/wiki/HUD_Components&quot; title=&quot;HUD Components&quot;&gt;HUD Components&lt;/a&gt;. *&amp;#039;&amp;#039;&amp;#039;property:&amp;#039;&amp;#039;&amp;#039; T...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0161|1.6.0|22868|This function gets the value of the specified HUD property.}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
mixed getPlayerHudComponentProperty (string component, string property)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[player]]:getHudComponentProperty||setPlayerHudComponentProperty}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;component:&amp;#039;&amp;#039;&amp;#039; The component whose property you want to retrieve. See [[HUD Components]].&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;property:&amp;#039;&amp;#039;&amp;#039; The name of the property you want to read. See [[HUD Components#Properties|HUD Properties]].&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns different values depending on the type. It can be &amp;#039;&amp;#039;bool&amp;#039;&amp;#039;, &amp;#039;&amp;#039;string&amp;#039;&amp;#039;, &amp;#039;&amp;#039;int&amp;#039;&amp;#039;, &amp;#039;&amp;#039;int int&amp;#039;&amp;#039;, or &amp;#039;&amp;#039;int int int int&amp;#039;&amp;#039;. If something goes wrong, it returns &amp;#039;&amp;#039;&amp;#039;false&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local r, g, b, a = getPlayerHudComponentProperty(&amp;#039;clock&amp;#039;, &amp;#039;fillColor&amp;#039;)&lt;br /&gt;
local w, h = getPlayerHudComponentProperty(&amp;#039;health&amp;#039;, &amp;#039;size&amp;#039;)&lt;br /&gt;
local outline = getPlayerHudComponentProperty(&amp;#039;money&amp;#039;, &amp;#039;fontOutline&amp;#039;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player_functions|client}}&lt;/div&gt;</summary>
		<author><name>FileEX</name></author>
	</entry>
</feed>