<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/PT-BR/IsPlayerIncludedOn?action=history&amp;feed=atom</id>
	<title>PT-BR/IsPlayerIncludedOn - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/PT-BR/IsPlayerIncludedOn?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PT-BR/IsPlayerIncludedOn&amp;action=history"/>
	<updated>2026-04-18T16:48:51Z</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=PT-BR/IsPlayerIncludedOn&amp;diff=72938&amp;oldid=prev</id>
		<title>𝐕𝐢𝐜𝐭𝐨𝐫: Created page with &quot;__NOTOC__ {{PT-BR/Função Útil}} Esta função retorna se o player está em um grupo descrito em uma tabela.  ==Sintaxe== &lt;syntaxhighlight lang=&quot;lua&quot;&gt;bool isPlayerIncludedOn...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PT-BR/IsPlayerIncludedOn&amp;diff=72938&amp;oldid=prev"/>
		<updated>2021-10-19T22:15:10Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ {{PT-BR/Função Útil}} Esta função retorna se o player está em um grupo descrito em uma tabela.  ==Sintaxe== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool isPlayerIncludedOn...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
{{PT-BR/Função Útil}}&lt;br /&gt;
Esta função retorna se o player está em um grupo descrito em uma tabela.&lt;br /&gt;
&lt;br /&gt;
==Sintaxe==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool isPlayerIncludedOn(player thePlayer, table Groups)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Argumentos Necessários===&lt;br /&gt;
* '''thePlayer''': Elemento Player a ser verificado.&lt;br /&gt;
* '''Groups''': Tabela de grupos da acl para ser verificada.&lt;br /&gt;
&lt;br /&gt;
==Código-fonte==&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;
&lt;br /&gt;
function isPlayerIncludedOn(thePlayer, Groups)&lt;br /&gt;
    for i , v in ipairs(Groups) do &lt;br /&gt;
        if aclGetGroup(v) and isObjectInACLGroup('user.'..getAccountName(getPlayerAccount(thePlayer))) then &lt;br /&gt;
            return true&lt;br /&gt;
        end&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;
==Exemplo==&lt;br /&gt;
Este exemplo retorna se o jogador está em algum dos grupos da tabela, caso estiver ação irá continuar.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
local aclGroup = {&lt;br /&gt;
    'Console',&lt;br /&gt;
    'Admin',&lt;br /&gt;
    'Moderador',&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
addCommandHandler('money', function(player)&lt;br /&gt;
    if isPlayerIncludedOn(player, aclGroup) then &lt;br /&gt;
        givePlayerMoney(player, 500)&lt;br /&gt;
    end&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Veja também==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>𝐕𝐢𝐜𝐭𝐨𝐫</name></author>
	</entry>
</feed>