<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.rage.mp/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Oggymot</id>
	<title>RAGE Multiplayer Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.rage.mp/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Oggymot"/>
	<link rel="alternate" type="text/html" href="https://wiki.rage.mp/wiki/Special:Contributions/Oggymot"/>
	<updated>2026-06-04T20:57:55Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Player::getAmmoInClip&amp;diff=20054</id>
		<title>Player::getAmmoInClip</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Player::getAmmoInClip&amp;diff=20054"/>
		<updated>2020-10-14T08:55:03Z</updated>

		<summary type="html">&lt;p&gt;Oggymot: Created page with &amp;quot;==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;player.getAmmoInClip(weapon_hash);&amp;lt;/syntaxhighlight&amp;gt; === Required Arguments === *&amp;#039;&amp;#039;&amp;#039;weapon_hash&amp;#039;&amp;#039;&amp;#039; - Weapon hash ===Return value=...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;player.getAmmoInClip(weapon_hash);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;weapon_hash&#039;&#039;&#039; - Weapon hash&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;int&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
let weapon_hash = mp.players.local.weapon;&lt;br /&gt;
let ammoClip = mp.players.local.getAmmoInClip(weapon_hash);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Oggymot</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Entity::getAnimCurrentTime&amp;diff=20053</id>
		<title>Entity::getAnimCurrentTime</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Entity::getAnimCurrentTime&amp;diff=20053"/>
		<updated>2020-10-14T08:51:25Z</updated>

		<summary type="html">&lt;p&gt;Oggymot: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Returns a float value representing animation&#039;s current playtime with respect to its total playtime. This value increasing in a range from [0 to 1] and wrap back to 0 when it reach 1.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Example:&amp;lt;br&amp;gt;0.000000 - mark the starting of animation.&amp;lt;br&amp;gt;0.500000 - mark the midpoint of the animation.&amp;lt;br&amp;gt;1.000000 - mark the end of animation.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;entity.getAnimCurrentTime(animDict, animName);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;animDict:&#039;&#039;&#039; String&lt;br /&gt;
*&#039;&#039;&#039;animName:&#039;&#039;&#039; String&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;float&#039;&#039;&#039;&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
// Example of stopping animation at the end and prevent loop.&lt;br /&gt;
&lt;br /&gt;
let player = mp.players.local;&lt;br /&gt;
&lt;br /&gt;
setInterval(() =&amp;gt; {&lt;br /&gt;
	if(player.getAnimCurrentTime(path, name) &amp;gt; 0.95){&lt;br /&gt;
		player.stopAnimTask(path, name, 3.0);&lt;br /&gt;
		clearInterval(this);&lt;br /&gt;
	}&lt;br /&gt;
}, 1);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Entity_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>Oggymot</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Player::stopAnimTask&amp;diff=20052</id>
		<title>Player::stopAnimTask</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Player::stopAnimTask&amp;diff=20052"/>
		<updated>2020-10-14T08:48:30Z</updated>

		<summary type="html">&lt;p&gt;Oggymot: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;player.stopAnimTask(animDictionary, animationName, p3);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;animDictionary:&#039;&#039;&#039; String&lt;br /&gt;
*&#039;&#039;&#039;animationName:&#039;&#039;&#039; String&lt;br /&gt;
*&#039;&#039;&#039;p3:&#039;&#039;&#039; float&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;Undefined&#039;&#039;&#039;&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
mp.players.local.stopAnimTask(&amp;quot;random@shop_robbery&amp;quot;, &amp;quot;robbery_action_f&amp;quot;, 3.0);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Player_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>Oggymot</name></author>
	</entry>
</feed>