<?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=GetPlayerAnimationInfo</id>
	<title>GetPlayerAnimationInfo - 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=GetPlayerAnimationInfo"/>
	<link rel="alternate" type="text/html" href="https://g1r-mp.com/wiki/index.php?title=GetPlayerAnimationInfo&amp;action=history"/>
	<updated>2026-10-01T10:37:33Z</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=GetPlayerAnimationInfo&amp;diff=951&amp;oldid=prev</id>
		<title>QCherry: Document 0.1.4 expanded animation catalog and Lua metadata APIs; confirmed in-game</title>
		<link rel="alternate" type="text/html" href="https://g1r-mp.com/wiki/index.php?title=GetPlayerAnimationInfo&amp;diff=951&amp;oldid=prev"/>
		<updated>2026-09-20T21:16:28Z</updated>

		<summary type="html">&lt;p&gt;Document 0.1.4 expanded animation catalog and Lua metadata APIs; confirmed in-game&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= getPlayerAnimationInfo =&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;New server-side function since 0.1.4 BUILD127.&amp;#039;&amp;#039;&amp;#039; See [[Update 0.1.4]] for release status.&lt;br /&gt;
&lt;br /&gt;
Returns catalog metadata for a named player animation. This is a catalog lookup, not the current animation state of a particular player. The expanded animation catalog has been confirmed working in-game by the project owner.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table|false getPlayerAnimationInfo(string animation)&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;
! Parameter !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;animation&amp;lt;/code&amp;gt; || A case-insensitive alias from [[getPlayerAnimationNames]] or the [[Player animation catalog]]. Unknown or invalid aliases return false. Unreal asset paths are not accepted.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Return fields ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Field !! Type !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; || string || Canonical lowercase alias.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;group&amp;lt;/code&amp;gt; || string || work, rest, daily, pose or legacy. Existing work/mine belong to work; the other original 25 aliases belong to legacy. The 91 additions comprise 35 work, 19 rest, 19 daily and 18 pose entries.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;looped&amp;lt;/code&amp;gt; || boolean || Recommended default: true for a hold animation, false for a one-shot. This does not change startAnim&amp;#039;s default; pass it explicitly.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;entrySeconds&amp;lt;/code&amp;gt; || number || For new entries, duration of the selected introduction. For original entries, the legacy loop-start metadata. Seconds.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;durationSeconds&amp;lt;/code&amp;gt; || number || For new entries, duration of the selected introduction, one loop and exit. Original entries return 0 because this duration is not provided by this metadata; it does not mean a zero-length animation.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;visualOnly&amp;lt;/code&amp;gt; || boolean || True for the 91 entries using the new controlled presentation path. False identifies the legacy playback path, not permission to perform crafting or alter gameplay state.&lt;br /&gt;
|}&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 info = getPlayerAnimationInfo(&amp;quot;lieground&amp;quot;)&lt;br /&gt;
if info then&lt;br /&gt;
    if not startAnim(playerId, info.name, info.looped, 0.15) then&lt;br /&gt;
        outputDebugString(&amp;quot;Animation request rejected&amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
-- When the activity should end:&lt;br /&gt;
-- stopAnim(playerId)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are visual activities; furniture and workstations must be positioned separately. Querying metadata does not change the player. See [[Player animation catalog]] for the complete list and [[startAnim]] for the request/return-value contract.&lt;br /&gt;
&lt;br /&gt;
[[Category:Lua Functions]]&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Animation Functions]]&lt;/div&gt;</summary>
		<author><name>QCherry</name></author>
	</entry>
</feed>