<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://g1r-mp.com/wiki/index.php?action=history&amp;feed=atom&amp;title=OnPlayerFaceChange</id>
	<title>OnPlayerFaceChange - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://g1r-mp.com/wiki/index.php?action=history&amp;feed=atom&amp;title=OnPlayerFaceChange"/>
	<link rel="alternate" type="text/html" href="https://g1r-mp.com/wiki/index.php?title=OnPlayerFaceChange&amp;action=history"/>
	<updated>2026-09-19T08:21:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://g1r-mp.com/wiki/index.php?title=OnPlayerFaceChange&amp;diff=647&amp;oldid=prev</id>
		<title>QCherry: Document Protocol 23 voice and player presentation APIs</title>
		<link rel="alternate" type="text/html" href="https://g1r-mp.com/wiki/index.php?title=OnPlayerFaceChange&amp;diff=647&amp;oldid=prev"/>
		<updated>2026-08-24T06:14:59Z</updated>

		<summary type="html">&lt;p&gt;Document Protocol 23 voice and player presentation APIs&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated from the verified Lua event definition: onPlayerFaceChange. --&amp;gt;&lt;br /&gt;
= onPlayerFaceChange =&lt;br /&gt;
Triggered after a validated authoritative GTO face profile has changed.&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
This event is available in &amp;#039;&amp;#039;&amp;#039;server-side&amp;#039;&amp;#039;&amp;#039; scripts.&lt;br /&gt;
&lt;br /&gt;
== Callback signature ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
onPlayerFaceChange(playerId, previousFace, newFace, sourceResource)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;playerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || The affected connected player ID.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;previousFace&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || The previous stable face-profile key.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;newFace&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || The new stable face-profile key.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;sourceResource&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || The resource that requested the change.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Handle the event:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerFaceChange&amp;quot;, root, function(playerId, previousFace, newFace, sourceResource)&lt;br /&gt;
    outputDebugString(getPlayerName(playerId) .. &amp;quot; face: &amp;quot; .. previousFace .. &amp;quot; -&amp;gt; &amp;quot; .. newFace)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Head/hair and armor are independent from this state.&lt;br /&gt;
* The corresponding reliable visual state is replayed during relevance entry and late join.&lt;br /&gt;
&lt;br /&gt;
[[Category:Lua Events]]&lt;br /&gt;
[[Category:Server Events]]&lt;br /&gt;
[[Category:Player Events]]&lt;/div&gt;</summary>
		<author><name>QCherry</name></author>
	</entry>
</feed>