<?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=Mr.Talal07</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=Mr.Talal07"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Mr.Talal07"/>
	<updated>2026-05-06T17:17:02Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPedWeapons&amp;diff=37063</id>
		<title>GetPedWeapons</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPedWeapons&amp;diff=37063"/>
		<updated>2013-09-07T12:01:55Z</updated>

		<summary type="html">&lt;p&gt;Mr.Talal07: /* Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function gets all ped weapons.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getPedWeapons ( ped thePed )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''thePed''': the ped you want to get his weapons.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a table contains the ID's of ped weapons.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Function source&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getPedWeapons(ped)&lt;br /&gt;
	local playerWeapons = {}&lt;br /&gt;
	if ped and isElement(ped) and getElementType(ped) == &amp;quot;ped&amp;quot; or getElementType(ped) == &amp;quot;player&amp;quot; then&lt;br /&gt;
		for i=2,9 do&lt;br /&gt;
			local wep = getPedWeapon(ped,i)&lt;br /&gt;
			if wep and wep ~= 0 then&lt;br /&gt;
				table.insert(playerWeapons,wep)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return playerWeapons&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&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 outputs all player weapons name.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;myWeapons&amp;quot;,&lt;br /&gt;
	function (player)&lt;br /&gt;
		outputChatBox(&amp;quot;- Your Weapons&amp;quot;,player,255,0,0)&lt;br /&gt;
		for i,wep in ipairs(getPedWeapons(player)) do&lt;br /&gt;
			outputChatBox(&amp;quot;You Have &amp;quot; .. getWeaponNameFromID(wep),player,0,255,0)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Author: |Mr|-Talal07-|&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Mr.Talal07</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPedWeapons&amp;diff=36968</id>
		<title>GetPedWeapons</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPedWeapons&amp;diff=36968"/>
		<updated>2013-08-25T22:08:53Z</updated>

		<summary type="html">&lt;p&gt;Mr.Talal07: /* Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function gets all ped weapons.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getPedWeapons ( ped thePed )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''thePed''': the ped you want to get his weapons.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a table contains the ID's of ped weapons.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Function source&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getPedWeapons(ped)&lt;br /&gt;
	local playerWeapons = {}&lt;br /&gt;
	if ped and isElement(ped) and getElementType(ped) == &amp;quot;ped&amp;quot; or getElementType(ped) == &amp;quot;player&amp;quot; then&lt;br /&gt;
		for i=2,9 do&lt;br /&gt;
			local wep = getPedWeapon(player,i)&lt;br /&gt;
			if wep and wep ~= 0 then&lt;br /&gt;
				table.insert(playerWeapons,wep)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return playerWeapons&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&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 outputs all player weapons name.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;myWeapons&amp;quot;,&lt;br /&gt;
	function (player)&lt;br /&gt;
		outputChatBox(&amp;quot;- Your Weapons&amp;quot;,player,255,0,0)&lt;br /&gt;
		for i,wep in ipairs(getPedWeapons(player)) do&lt;br /&gt;
			outputChatBox(&amp;quot;You Have &amp;quot; .. getWeaponNameFromID(wep),player,0,255,0)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Author: |Mr|-Talal07-|&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Mr.Talal07</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPedWeapons&amp;diff=36967</id>
		<title>GetPedWeapons</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPedWeapons&amp;diff=36967"/>
		<updated>2013-08-25T21:14:33Z</updated>

		<summary type="html">&lt;p&gt;Mr.Talal07: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function gets all ped weapons.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getPedWeapons ( ped thePed )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''thePed''': the ped you want to get his weapons.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a table contains the ID's of ped weapons.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Function source&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getPedWeapons(ped)&lt;br /&gt;
	local playerWeapons = {}&lt;br /&gt;
	if player and isElement(player) and getElementType(ped) == &amp;quot;ped&amp;quot; or getElementType(ped) == &amp;quot;player&amp;quot; then&lt;br /&gt;
		for i=2,9 do&lt;br /&gt;
			local wep = getPedWeapon(player,i)&lt;br /&gt;
			if wep and wep ~= 0 then&lt;br /&gt;
				table.insert(playerWeapons,wep)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return playerWeapons&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&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 outputs all player weapons name.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;myWeapons&amp;quot;,&lt;br /&gt;
	function (player)&lt;br /&gt;
		outputChatBox(&amp;quot;- Your Weapons&amp;quot;,player,255,0,0)&lt;br /&gt;
		for i,wep in ipairs(getPedWeapons(player)) do&lt;br /&gt;
			outputChatBox(&amp;quot;You Have &amp;quot; .. getWeaponNameFromID(wep),player,0,255,0)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Author: |Mr|-Talal07-|&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Mr.Talal07</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPedWeapons&amp;diff=36966</id>
		<title>GetPedWeapons</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPedWeapons&amp;diff=36966"/>
		<updated>2013-08-25T21:05:33Z</updated>

		<summary type="html">&lt;p&gt;Mr.Talal07: Created page with &amp;quot;{{Useful Function}} __NOTOC__ This function gets all ped weapons. ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getPedWeapons ( ped thePed )&amp;lt;/syntaxhighlight&amp;gt;  ===Required Arguments=== * '''thePed''': the ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function gets all ped weapons.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getPedWeapons ( ped thePed )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''thePed''': the ped you want to get his weapons.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a table contains the ID's of ped weapons.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Function source&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getPedWeapons(ped)&lt;br /&gt;
	local playerWeapons = {}&lt;br /&gt;
	if player and isElement(player) and getElementType(ped) == &amp;quot;ped&amp;quot; or getElementType(ped) == &amp;quot;player&amp;quot; then&lt;br /&gt;
		for i=2,9 do&lt;br /&gt;
			local wep = getPedWeapon(player,i)&lt;br /&gt;
			if wep and wep ~= 0 then&lt;br /&gt;
				table.insert(playerWeapons,wep)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
	return playerWeapons&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&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 outputs all player weapons name.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;myWeapons&amp;quot;,&lt;br /&gt;
	function (player)&lt;br /&gt;
		outputChatBox(&amp;quot;- Your Weapons&amp;quot;,player,255,0,0)&lt;br /&gt;
		for i,wep in ipairs(getPlayerWeapons(player)) do&lt;br /&gt;
			outputChatBox(&amp;quot;You Have &amp;quot; .. getWeaponNameFromID(wep),player,0,255,0)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Author: |Mr|-Talal07-|&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Mr.Talal07</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPlayersInMarker&amp;diff=36002</id>
		<title>GetPlayersInMarker</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPlayersInMarker&amp;diff=36002"/>
		<updated>2013-05-15T09:36:56Z</updated>

		<summary type="html">&lt;p&gt;Mr.Talal07: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle&amp;gt;&amp;lt;/lowercasetitle&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This Function get a number of the players in a marker.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int getPlayersInMarker(marker yourmarker)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''yourmarker:''' the marker to get the count from it.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Return a number of players in the marker.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Function source&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getPlayersInMarker(marker)&lt;br /&gt;
	local players = 0&lt;br /&gt;
	if marker and getElementType(marker) == &amp;quot;marker&amp;quot; then&lt;br /&gt;
		for i,player in ipairs(getElementsByType(&amp;quot;player&amp;quot;)) do&lt;br /&gt;
			if isElementWithinMarker(player,marker) then&lt;br /&gt;
				players = players + 1&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return players&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;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
mark = createMarker(123.23432,12.4324,3.0023,&amp;quot;cylinder&amp;quot;,5,255,0,0)&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;quot;count&amp;quot;,&lt;br /&gt;
	function (player)&lt;br /&gt;
		local count = getPlayersInMarker(mark)&lt;br /&gt;
		outputChatBox(&amp;quot;There is &amp;quot; .. count .. &amp;quot; in the marker&amp;quot;,player)&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Created By '''|Mr|-Talal07-|'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Mr.Talal07</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPlayersInMarker&amp;diff=36001</id>
		<title>GetPlayersInMarker</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPlayersInMarker&amp;diff=36001"/>
		<updated>2013-05-15T09:35:51Z</updated>

		<summary type="html">&lt;p&gt;Mr.Talal07: Created page with &amp;quot;{{Useful Function}} &amp;lt;lowercasetitle&amp;gt;&amp;lt;/lowercasetitle&amp;gt; __NOTOC__ This Function get a number of the players in a marker.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int getPlayersInMarker(marker your...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle&amp;gt;&amp;lt;/lowercasetitle&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This Function get a number of the players in a marker.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int getPlayersInMarker(marker yourmarker)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''yourmarker:''' the marker to get the count from it.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Return a number of players in the marker.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Function source&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getPlayersInMarker(marker)&lt;br /&gt;
	local players = 0&lt;br /&gt;
	if marker and getElementType(marker) == &amp;quot;marker&amp;quot; then&lt;br /&gt;
		for i,player in ipairs(getElementsByType(&amp;quot;player&amp;quot;)) do&lt;br /&gt;
			if isElementWithinMarker(player,marker) then&lt;br /&gt;
				players = players + 1&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return players&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;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
mark = createMarker(123.23432,12.4324,3.0023,&amp;quot;cylinder&amp;quot;,5,255,0,0)&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;quot;count&amp;quot;,&lt;br /&gt;
	function (player)&lt;br /&gt;
		local count = getPlayersInMarker(mark)&lt;br /&gt;
		outputChatBox(&amp;quot;There is &amp;quot; .. count .. &amp;quot; in the marker&amp;quot;,player)&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Create By '''|Mr|-Talal07-|'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Mr.Talal07</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetLoginPlayers&amp;diff=35557</id>
		<title>GetLoginPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetLoginPlayers&amp;diff=35557"/>
		<updated>2013-04-25T14:05:59Z</updated>

		<summary type="html">&lt;p&gt;Mr.Talal07: Created page with &amp;quot;{{Useful Function}} &amp;lt;lowercasetitle&amp;gt;&amp;lt;/lowercasetitle&amp;gt; __NOTOC__ This function gets all login players in the server  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getLoginPlayers()&amp;lt;/syntaxhighlight&amp;gt;  ==Code...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle&amp;gt;&amp;lt;/lowercasetitle&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function gets all login players in the server&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getLoginPlayers()&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Function source&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getLoginPlayers()&lt;br /&gt;
	local loginPlayers = {}&lt;br /&gt;
	for _,player in ipairs(getElementsByType(&amp;quot;player&amp;quot;)) do&lt;br /&gt;
		if not isGuestAccount(getPlayerAccount(player)) then&lt;br /&gt;
			table.insert(loginPlayers,player)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return loginPlayers&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;loginplayers&amp;quot;,&lt;br /&gt;
	function (player)&lt;br /&gt;
		outputChatBox(&amp;quot;- Login Players:&amp;quot;,player)&lt;br /&gt;
		for _,ply in ipairs(getLoginPlayers()) do&lt;br /&gt;
			outputChatBox(&amp;quot;- &amp;quot; .. getPlayerName(ply),player)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This Function Created By |Mr|-Talal07-|&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Mr.Talal07</name></author>
	</entry>
</feed>