<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Karer99</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Karer99"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Karer99"/>
	<updated>2026-04-12T02:38:15Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPedAnimationProgress&amp;diff=41633</id>
		<title>SetPedAnimationProgress</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPedAnimationProgress&amp;diff=41633"/>
		<updated>2014-08-25T13:37:29Z</updated>

		<summary type="html">&lt;p&gt;Karer99: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
{{Needs Checking|Progress always sets to 0, when used clientside since MTA 1.4}}&lt;br /&gt;
&lt;br /&gt;
Sets the current animation progress of a player or ped.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setPedAnimationProgress ( ped thePed [, string anim, float progress] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed:''' the player or ped you want to change animation progress.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''anim:''' the animation name currently applied to ped, if not supplied, the animation will stop&lt;br /&gt;
*'''progress:''' current animation progress you want to apply, value from 0.0 to 1.0, if not supplied will default to 0.0&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example creates a ped, apply animation to it, and &amp;quot;freeze&amp;quot; the animation at half of overall animation time.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function animRender( ped1 )&lt;br /&gt;
        setPedAnimationProgress(ped1, &amp;quot;M_SMKSTND_LOOP&amp;quot;, 0.5)&lt;br /&gt;
        setTimer ( animRender, 50, 1, ped1 )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function makePed()&lt;br /&gt;
    local ped1 = createPed(56, 1, 1, 4)&lt;br /&gt;
    setPedAnimation( ped1, &amp;quot;SMOKING&amp;quot;, &amp;quot;M_SMKSTND_LOOP&amp;quot;)&lt;br /&gt;
    setTimer ( animRender, 50, 1, ped1 )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;makemyped&amp;quot;, makePed)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Ped_functions}}&lt;br /&gt;
[[ru:setPedAnimationProgress]]&lt;/div&gt;</summary>
		<author><name>Karer99</name></author>
	</entry>
</feed>