<?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=Task%3A%3AhandsUp</id>
	<title>Task::handsUp - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Task%3A%3AhandsUp"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Task::handsUp&amp;action=history"/>
	<updated>2026-07-24T20:09:18Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Task::handsUp&amp;diff=14468&amp;oldid=prev</id>
		<title>imported&gt;Shr0x в 16:59, 8 ноября 2024</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Task::handsUp&amp;diff=14468&amp;oldid=prev"/>
		<updated>2024-11-08T16:59:39Z</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;
===Explanation===  &lt;br /&gt;
The `mp.game.task.handsUp` function allows you to make a pedestrian (ped) raise their hands, simulating a surrender or defensive action. The duration parameter controls how long the ped will keep their hands raised, and the `facingPed` parameter defines which ped they will face while doing so. The `p4` boolean controls if the action can be interrupted by other tasks.  &lt;br /&gt;
&lt;br /&gt;
===Required Params===  &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;ped:&amp;#039;&amp;#039;&amp;#039; {{RageType|number}} — The pedestrian (ped) performing the action.  &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;duration:&amp;#039;&amp;#039;&amp;#039; {{RageType|number}} — The duration (in milliseconds) for which the pedestrian will raise their hands.  &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;facingPed:&amp;#039;&amp;#039;&amp;#039; {{RageType|number}} — The ped that the first ped will face while raising their hands.  &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;p3:&amp;#039;&amp;#039;&amp;#039; {{RageType|number}} — An optional parameter related to task handling (usually set to 0).  &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;p4:&amp;#039;&amp;#039;&amp;#039; {{RageType|boolean}} — A boolean that determines whether the action can be interrupted by other tasks.  &lt;br /&gt;
&lt;br /&gt;
===Return value===  &lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;{{RageType|void}}&amp;#039;&amp;#039;&amp;#039; — This function does not return any value.  &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.task.handsUp(ped, duration, facingPed, p3, p4)  &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==  &lt;br /&gt;
This example makes the specified ped raise their hands for 5 seconds, facing another ped, with the default interrupt settings.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;  &lt;br /&gt;
// Example to make a ped raise hands for 5 seconds facing another ped  &lt;br /&gt;
const ped = mp.players.local;  &lt;br /&gt;
const facingPed = mp.players.at(1); // Face the second player  &lt;br /&gt;
const duration = 5000; // 5 seconds  &lt;br /&gt;
mp.game.task.handsUp(ped.handle, duration, facingPed.handle, 0, false);  &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
==See also==  &lt;br /&gt;
{{Task_functions_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>