<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Ped%3A%3AgetHeadOverlayNum</id>
	<title>Ped::getHeadOverlayNum - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Ped%3A%3AgetHeadOverlayNum"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Ped::getHeadOverlayNum&amp;action=history"/>
	<updated>2026-07-25T00:27:45Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Ped::getHeadOverlayNum&amp;diff=11116&amp;oldid=prev</id>
		<title>imported&gt;Shr0x в 09:27, 2 ноября 2024</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Ped::getHeadOverlayNum&amp;diff=11116&amp;oldid=prev"/>
		<updated>2024-11-02T09:27:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{ClientsideJsFunction}}&lt;br /&gt;
{{JSContainer|&lt;br /&gt;
&lt;br /&gt;
The `getHeadOverlayNum` function retrieves the number of available variations for a specified head overlay component on a pedestrian (ped). In GTA V and RAGEMP, &amp;quot;head overlays&amp;quot; refer to customizable facial features such as blemishes, facial hair, or makeup. By providing the `overlayID`, you can determine the number of available styles for a given overlay, allowing for more precise character customization options in your script.&lt;br /&gt;
&lt;br /&gt;
This function is particularly useful in character creation systems where you need to cycle through different overlay styles (e.g., beard types, makeup options) based on the player&amp;#039;s selection.&lt;br /&gt;
&lt;br /&gt;
=== Required Params ===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;overlayID:&amp;#039;&amp;#039;&amp;#039; {{RageType|number}} – The ID representing a specific head overlay component (e.g., 0 for blemishes, 1 for facial hair). &lt;br /&gt;
&lt;br /&gt;
=== Return Value ===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;{{RageType|number}}&amp;#039;&amp;#039;&amp;#039; – Returns the number of available variations for the specified head overlay component.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
mp.game.ped.getHeadOverlayNum(overlayID)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// Example usage of getHeadOverlayNum&lt;br /&gt;
&lt;br /&gt;
const overlayID = 1; // Facial hair overlay ID&lt;br /&gt;
&lt;br /&gt;
// Get the number of available facial hair styles&lt;br /&gt;
const numFacialHairStyles = mp.game.ped.getHeadOverlayNum(overlayID);&lt;br /&gt;
&lt;br /&gt;
// Output the number to chat for confirmation&lt;br /&gt;
mp.gui.chat.push(`Number of facial hair styles available: ${numFacialHairStyles}`);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
== See Also ==&lt;br /&gt;
{{Ped_s_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Shr0x</name></author>
	</entry>
</feed>