<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/PT-BR/Visibility?action=history&amp;feed=atom</id>
	<title>PT-BR/Visibility - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/PT-BR/Visibility?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PT-BR/Visibility&amp;action=history"/>
	<updated>2026-04-14T14:56:48Z</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/Visibility&amp;diff=69095&amp;oldid=prev</id>
		<title>Myonlake: Myonlake moved page Visibility/PT-BR to PT-BR/Visibility</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PT-BR/Visibility&amp;diff=69095&amp;oldid=prev"/>
		<updated>2021-02-21T16:53:40Z</updated>

		<summary type="html">&lt;p&gt;Myonlake moved page &lt;a href=&quot;/wiki/Visibility/PT-BR&quot; class=&quot;mw-redirect&quot; title=&quot;Visibility/PT-BR&quot;&gt;Visibility/PT-BR&lt;/a&gt; to &lt;a href=&quot;/wiki/PT-BR/Visibility&quot; title=&quot;PT-BR/Visibility&quot;&gt;PT-BR/Visibility&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:53, 21 February 2021&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key wiki-wiki_dev_:diff::1.12:old-65193:rev-69095 --&gt;
&lt;/table&gt;</summary>
		<author><name>Myonlake</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PT-BR/Visibility&amp;diff=65193&amp;oldid=prev</id>
		<title>Lettify: Created page with &quot;O sistema de visibilidade para marker e blips funciona pela seguinte regra: se algo é visível para um determinado elemento, ele também é visível para todos os filhos dess...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PT-BR/Visibility&amp;diff=65193&amp;oldid=prev"/>
		<updated>2020-02-19T00:13:19Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;O sistema de visibilidade para marker e blips funciona pela seguinte regra: se algo é visível para um determinado elemento, ele também é visível para todos os filhos dess...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;O sistema de visibilidade para marker e blips funciona pela seguinte regra: se algo é visível para um determinado elemento, ele também é visível para todos os filhos desse elemento. Além disso, tudo fica visível para o elemento raiz por padrão.&lt;br /&gt;
&lt;br /&gt;
Isso significa que, se você quiser fazer, por exemplo, um blip visível apenas para alguns jogadores específicos, você precisa fazer duas coisas:&lt;br /&gt;
* Faça o blip ficar invisível para o elemento root (todos), usando [[setElementVisibleTo]]. Agora nenhum jogador está vendo o blip.&lt;br /&gt;
* Faça o blip ficar visível para os jogadores que forem especificados na função usada acima.&lt;br /&gt;
A mesma coisa pode ser feita para markers.&lt;br /&gt;
&lt;br /&gt;
Dica: Se você deseja que apenas algo seja visível para determinados jogadores, a coisa mais eficiente e com menos erros é, quando criar o elemento em vez da visibilidade padrão do root, defina isto para resourceRoot (nenhum jogador verá pois nenhum jogador é filho de resourceRoot) e então use [[setElementVisibleTo]] nos jogadores especificados. Caso contrário, há uma chance de que os jogadores vejam o blip por uma fração de segundo, pois o blip é criado, mas depois destruído.&lt;br /&gt;
&lt;br /&gt;
Isso é ruim (chance de ser visto no minimapa por cerca de 50ms):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
a = createBlip(0, 0, 0, 41)&lt;br /&gt;
setElementVisibleTo(a, root, false)&lt;br /&gt;
setElementVisibleTo(a, algumJogador, true)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Já a seguinte forma é bem mais adequada:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
a = createBlip(0, 0, 0, 41, 1, 2, 3, 4, 5, 6, 9999, resourceRoot)&lt;br /&gt;
setElementVisibleTo(a, algumJogador, true)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lettify</name></author>
	</entry>
</feed>