<?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-05-10T04:45:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</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=== *'''component:''' The component whose property you want to retrieve. See HUD Components. *'''property:''' 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;
*'''component:''' The component whose property you want to retrieve. See [[HUD Components]].&lt;br /&gt;
*'''property:''' 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 ''bool'', ''string'', ''int'', ''int int'', or ''int int int int''. If something goes wrong, it returns '''false'''.&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('clock', 'fillColor')&lt;br /&gt;
local w, h = getPlayerHudComponentProperty('health', 'size')&lt;br /&gt;
local outline = getPlayerHudComponentProperty('money', 'fontOutline')&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>