<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/RU/setPedDoingGangDriveby?action=history&amp;feed=atom</id>
	<title>RU/setPedDoingGangDriveby - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/RU/setPedDoingGangDriveby?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/setPedDoingGangDriveby&amp;action=history"/>
	<updated>2026-05-05T20:35:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/setPedDoingGangDriveby&amp;diff=23940&amp;oldid=prev</id>
		<title>Damage22: Created page with '{{RU/Server client function}} {{translate}} __NOTOC__ Эта функция устанавливает состояние &quot;драйв-бай&quot; для педа.  ==Syntax==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt;…'</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/setPedDoingGangDriveby&amp;diff=23940&amp;oldid=prev"/>
		<updated>2010-07-08T18:12:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;{{RU/Server client function}} {{translate}} __NOTOC__ Эта функция устанавливает состояние &amp;quot;драйв-бай&amp;quot; для педа.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{RU/Server client function}}&lt;br /&gt;
{{translate}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Эта функция устанавливает состояние &amp;quot;драйв-бай&amp;quot; для педа.&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 setPedDoingGangDriveby ( ped thePed, bool state )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePed:''' The [[ped]] element whose state is to be changed.&lt;br /&gt;
*'''state:''' A [[boolean]] value representing the drive-by state, ''true'' meaning enabled and ''false'' disabled.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the driveby state could be changed, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example turns on driveby mode when the local player types ''driveby'' in the console.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function setDoingDriveby ( )&lt;br /&gt;
        -- we check if local player isn't currently doing a gang driveby&lt;br /&gt;
        if not isPedDoingGangDriveby ( getLocalPlayer () ) then&lt;br /&gt;
                -- if he got driveby mode off, turn it on&lt;br /&gt;
                setPedWeaponSlot ( getLocalPlayer (), 4 )&lt;br /&gt;
                setPedDoingGangDriveby ( getLocalPlayer (), true )&lt;br /&gt;
        else&lt;br /&gt;
                -- otherwise, turn it off&lt;br /&gt;
                setPedWeaponSlot ( getLocalPlayer (), 0 )&lt;br /&gt;
                setPedDoingGangDriveby ( getLocalPlayer (), false )&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;driveby&amp;quot;, setDoingDriveby )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Смотрите также==&lt;br /&gt;
{{RU/Ped_functions}}&lt;br /&gt;
[[en:setPedDoingGangDriveby]]&lt;/div&gt;</summary>
		<author><name>Damage22</name></author>
	</entry>
</feed>