<?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=Ibazooka</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=Ibazooka"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Ibazooka"/>
	<updated>2026-05-15T02:44:23Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/isPedOnFire&amp;diff=66603</id>
		<title>AR/isPedOnFire</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/isPedOnFire&amp;diff=66603"/>
		<updated>2020-05-18T21:32:35Z</updated>

		<summary type="html">&lt;p&gt;Ibazooka: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
هذه الوظيفة تتحقق إذا كانت الشخصية في النار أو لا&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool isPedOnFire ( ped thePed )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[ped]]:isOnFire|onFire|setPedOnFire}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed''': الشخصية الذي تود التحقق اذا كانت بالنار او لا&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the ped is on fire, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==مثال==&lt;br /&gt;
&amp;lt;section class=&amp;quot;server&amp;quot; name=&amp;quot;Server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
هذا المثال يتحقق من لاعب عشوائي اذا كان بالنار او لا ويعطيه طفاية الحريق&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local randomPlayer = getRandomPlayer() -- جلب لاعب عشوائي من السيرفر&lt;br /&gt;
if isPedOnFire ( randomPlayer ) then -- تحقق اذا كان اللاعب فوق النار&lt;br /&gt;
	giveWeapon ( randomPlayer, 42, 100, true ) -- اعطاء اللاعب طفاية الحريق&lt;br /&gt;
end -- إغلاق التحقق ..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
[[ar:isPedOnFire]]&lt;br /&gt;
==See Also==&lt;/div&gt;</summary>
		<author><name>Ibazooka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetElementFrozen&amp;diff=66589</id>
		<title>SetElementFrozen</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetElementFrozen&amp;diff=66589"/>
		<updated>2020-05-18T21:08:30Z</updated>

		<summary type="html">&lt;p&gt;Ibazooka: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function freezes an element (stops it in its position and disables movement) or unfreezes it.&lt;br /&gt;
{{Warning|This function cancels any animation set by setPedAnimation if you freeze the 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 setElementFrozen ( element theElement, bool freezeStatus )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[element]]:setFrozen|frozen|isElementFrozen}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The [[element]] whose freeze status we want to change.&lt;br /&gt;
*'''freezeStatus:''' A boolean denoting whether we want to freeze (''true'') or unfreeze (''false'') it.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the element was frozen, ''false'' if it wasn't or if invalid arguments are passed.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Serverside example&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example binds the &amp;quot;p&amp;quot; key to a function to freeze/unfreeze the player's current vehicle.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- This function freezes the specified player's vehicle, if he's in one&lt;br /&gt;
function toggleFreezeStatus ( thePlayer )&lt;br /&gt;
	-- if he is in a vehicle,&lt;br /&gt;
	if getPedOccupiedVehicle ( thePlayer ) then&lt;br /&gt;
		-- get the vehicle element&lt;br /&gt;
		local playerVehicle = getPlayerOccupiedVehicle ( thePlayer )&lt;br /&gt;
		-- get the current freeze status&lt;br /&gt;
		local currentFreezeStatus = isElementFrozen ( playerVehicle )&lt;br /&gt;
		-- get the new freeze status (the opposite of the previous state)&lt;br /&gt;
		local newFreezeStatus = not currentFreezeStatus&lt;br /&gt;
		-- set the new freeze status&lt;br /&gt;
		setElementFrozen ( playerVehicle, newFreezeStatus )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- now bind a key to this function for all players.&lt;br /&gt;
-- first get a list of all players&lt;br /&gt;
local connectedPlayers = getElementsByType ( &amp;quot;player&amp;quot; )&lt;br /&gt;
-- then, for each player,&lt;br /&gt;
for i, aPlayer in ipairs(connectedPlayers) do&lt;br /&gt;
	-- bind the player's &amp;quot;p&amp;quot; key to the toggleFreezeStatus function&lt;br /&gt;
	bindKey ( aPlayer, &amp;quot;p&amp;quot;, &amp;quot;down&amp;quot;, &amp;quot;Toggle freeze status&amp;quot;, toggleFreezeStatus )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Issues==&lt;br /&gt;
{{Issues|&lt;br /&gt;
{{Issue|9522|Freezing a [[ped]] or [[player]] whilst occupying a [[givePedJetPack|jetpack]] will remove their jetpack, but not the jetpack sound}}&lt;br /&gt;
}}&lt;br /&gt;
[[ar:SetElementFrozen]]&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Element_functions}}&lt;/div&gt;</summary>
		<author><name>Ibazooka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsPedOnFire&amp;diff=66588</id>
		<title>IsPedOnFire</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsPedOnFire&amp;diff=66588"/>
		<updated>2020-05-18T21:05:06Z</updated>

		<summary type="html">&lt;p&gt;Ibazooka: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function checks if the specified [[ped]] is on fire or not.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool isPedOnFire ( ped thePed )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[ped]]:isOnFire|onFire|setPedOnFire}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed''': The [[ped]] to check.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the ped is on fire, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section class=&amp;quot;server&amp;quot; name=&amp;quot;Server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example checks if a random player is on fire, and if so gives him a fire extinguisher.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local randomPlayer = getRandomPlayer() &lt;br /&gt;
if isPedOnFire ( randomPlayer ) then &lt;br /&gt;
	giveWeapon ( randomPlayer, 42, 100, true ) &lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
[[ar:isPedOnFire]]&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Ped functions}}&lt;/div&gt;</summary>
		<author><name>Ibazooka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsPedOnFire&amp;diff=66587</id>
		<title>IsPedOnFire</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsPedOnFire&amp;diff=66587"/>
		<updated>2020-05-18T21:04:16Z</updated>

		<summary type="html">&lt;p&gt;Ibazooka: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function checks if the specified [[ped]] is on fire or not.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool isPedOnFire ( ped thePed )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[ped]]:isOnFire|onFire|setPedOnFire}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed''': The [[ped]] to check.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the ped is on fire, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==مثال==&lt;br /&gt;
&amp;lt;section class=&amp;quot;server&amp;quot; name=&amp;quot;Server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example checks if a random player is on fire, and if so gives him a fire extinguisher.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local randomPlayer = getRandomPlayer() &lt;br /&gt;
if isPedOnFire ( randomPlayer ) then &lt;br /&gt;
	giveWeapon ( randomPlayer, 42, 100, true ) &lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
[[ar:isPedOnFire]]&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Ped functions}}&lt;/div&gt;</summary>
		<author><name>Ibazooka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AR/isPedOnFire&amp;diff=66586</id>
		<title>AR/isPedOnFire</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AR/isPedOnFire&amp;diff=66586"/>
		<updated>2020-05-18T21:02:26Z</updated>

		<summary type="html">&lt;p&gt;Ibazooka: Created page with &amp;quot;__NOTOC__ {{Server client function}} هذه الوظيفة تتحقق إذا كانت الشخصية في النار أو لار ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool is...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
هذه الوظيفة تتحقق إذا كانت الشخصية في النار أو لار&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool isPedOnFire ( ped thePed )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[ped]]:isOnFire|onFire|setPedOnFire}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed''': الشخصية الذي تود التحقق اذا كانت بالنار او لا&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the ped is on fire, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==مثال==&lt;br /&gt;
&amp;lt;section class=&amp;quot;server&amp;quot; name=&amp;quot;Server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
هذا المثال يتحقق من لاعب عشوائي اذا كان بالنار او لا ويعطيه طفاية الحريق&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local randomPlayer = getRandomPlayer() -- جلب لاعب عشوائي من السيرفر&lt;br /&gt;
if isPedOnFire ( randomPlayer ) then -- تحقق اذا كان اللاعب فوق النار&lt;br /&gt;
	giveWeapon ( randomPlayer, 42, 100, true ) -- اعطاء اللاعب طفاية الحريق&lt;br /&gt;
end -- إغلاق التحقق ..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
[[ar:isPedOnFire]]&lt;br /&gt;
==See Also==&lt;/div&gt;</summary>
		<author><name>Ibazooka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsPedOnFire&amp;diff=66585</id>
		<title>IsPedOnFire</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsPedOnFire&amp;diff=66585"/>
		<updated>2020-05-18T20:59:13Z</updated>

		<summary type="html">&lt;p&gt;Ibazooka: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
هذه الوظيفة تتحقق إذا كانت الشخصية في النار أو لار&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool isPedOnFire ( ped thePed )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[ped]]:isOnFire|onFire|setPedOnFire}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed''': الشخصية الذي تود التحقق اذا كانت بالنار او لا&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the ped is on fire, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==مثال==&lt;br /&gt;
&amp;lt;section class=&amp;quot;server&amp;quot; name=&amp;quot;Server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
هذا المثال يتحقق من لاعب عشوائي اذا كان بالنار او لا ويعطيه طفاية الحريق&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local randomPlayer = getRandomPlayer() -- جلب لاعب عشوائي من السيرفر&lt;br /&gt;
if isPedOnFire ( randomPlayer ) then -- تحقق اذا كان اللاعب فوق النار&lt;br /&gt;
	giveWeapon ( randomPlayer, 42, 100, true ) -- اعطاء اللاعب طفاية الحريق&lt;br /&gt;
end -- إغلاق التحقق ..&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
[[ar:isPedOnFire]]&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Ped functions}}&lt;/div&gt;</summary>
		<author><name>Ibazooka</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsPedOnFire&amp;diff=66584</id>
		<title>IsPedOnFire</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsPedOnFire&amp;diff=66584"/>
		<updated>2020-05-18T20:52:50Z</updated>

		<summary type="html">&lt;p&gt;Ibazooka: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function checks if the specified [[ped]] is on fire or not.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool isPedOnFire ( ped thePed )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[ped]]:isOnFire|onFire|setPedOnFire}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed''': The [[ped]] to check.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the ped is on fire, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section class=&amp;quot;server&amp;quot; name=&amp;quot;Server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example checks if a random player is on fire, and if so gives him a fire extinguisher.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local randomPlayer = getRandomPlayer()&lt;br /&gt;
if isPedOnFire ( randomPlayer ) then&lt;br /&gt;
	giveWeapon ( randomPlayer, 42, 100, true )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
[[ar:isPedOnFire]]&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Ped functions}}&lt;/div&gt;</summary>
		<author><name>Ibazooka</name></author>
	</entry>
</feed>