<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/ES/aclCreateGroup?action=history&amp;feed=atom</id>
	<title>ES/aclCreateGroup - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/ES/aclCreateGroup?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/aclCreateGroup&amp;action=history"/>
	<updated>2026-05-22T04:43:01Z</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=ES/aclCreateGroup&amp;diff=30610&amp;oldid=prev</id>
		<title>Kzman: Created page with &quot;__NOTOC__  {{Server function}} Esta función crea un grupo dentro del ACL. Un grupo ACL puede contener objetos como players o resources. Estos grupos especifican quien tiene acce...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/aclCreateGroup&amp;diff=30610&amp;oldid=prev"/>
		<updated>2012-05-12T20:22:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__  {{Server function}} Esta función crea un grupo dentro del ACL. Un grupo ACL puede contener objetos como players o resources. Estos grupos especifican quien tiene acce...&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;
{{Server function}}&lt;br /&gt;
Esta función crea un grupo dentro del ACL. Un grupo ACL puede contener objetos como players o resources. Estos grupos especifican quien tiene acceso a los ACL's en este grupo.&lt;br /&gt;
&lt;br /&gt;
==Sintaxis== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
aclgroup aclCreateGroup ( string nombreGrupo )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argumentos Requeridos=== &lt;br /&gt;
*'''nombreGrupo:''' El nombre del grupo a crear&lt;br /&gt;
&lt;br /&gt;
===Devuelve===&lt;br /&gt;
Si es satisfactorio, devuelve el puntero hacia el grupo ACL creado. Si falla, devuelve false.&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &lt;br /&gt;
En este ejemplo de añade un commando ''addobjecttogroup'' con el cual puedes fácilmente agregar nuevos objetos al grupo acl especificado.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function addACLGroupObject ( elJugador, nombreComando, nombreGrupo, nombreObjeto)&lt;br /&gt;
    local miGrupo = aclGetGroup ( nombreGrupo)&lt;br /&gt;
    -- si no hay un grupo anterior con este nombre, debemos crearlo&lt;br /&gt;
    if not miGrupo then&lt;br /&gt;
        miGrupo = aclCreateGroup ( nombreGrupo )&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    -- si no se le ha dado un nombre al objeto&lt;br /&gt;
    if not nombreObjetothen&lt;br /&gt;
        -- imprime un mensaje hacia la ventana de chat&lt;br /&gt;
        return outputChatBox ( &amp;quot;¡Necesitas especificar el objeto!&amp;quot;, elJugador )&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    -- y finalmente añadiremos el objeto a su grupo&lt;br /&gt;
    aclGroupAddObject ( miGrupo, nombreObjeto )&lt;br /&gt;
    -- don't forget to save the ACL after it has been modified&lt;br /&gt;
    aclSave ()&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;addobjecttogroup&amp;quot;, addACLGroupObject )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Vea también==&lt;br /&gt;
{{Funciones_de_ACL}}&lt;br /&gt;
&lt;br /&gt;
[[en:aclCreateGroup]]&lt;/div&gt;</summary>
		<author><name>Kzman</name></author>
	</entry>
</feed>