<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.rage.mp/w/index.php?action=history&amp;feed=atom&amp;title=EntityOverlayBatch%3Avalid</id>
	<title>EntityOverlayBatch:valid - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.rage.mp/w/index.php?action=history&amp;feed=atom&amp;title=EntityOverlayBatch%3Avalid"/>
	<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=EntityOverlayBatch:valid&amp;action=history"/>
	<updated>2026-06-04T07:56:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=EntityOverlayBatch:valid&amp;diff=26305&amp;oldid=prev</id>
		<title>Shr0x: Created page with &quot; {{ClientsideJsFunction}} {{JSContainer| This property will return whether an entity overlay is valid or not. *Note: This property is readonly.  ===Return value=== *&#039;&#039;&#039; {{RageType|boolean}} &#039;&#039;&#039;  ==Syntax== &lt;syntaxhighlight lang=&quot;javascript&quot;&gt; batch.valid &lt;/syntaxhighlight&gt;  ==Example== &lt;syntaxhighlight lang=&quot;javascript&quot;&gt; //Enable entity overlay mp.game.graphics.setEntityOverlayPassEnabled(true);  //Create new entity overlay batch let batch = mp.game.graphics.createEntityO...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=EntityOverlayBatch:valid&amp;diff=26305&amp;oldid=prev"/>
		<updated>2024-08-04T10:56:57Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; {{ClientsideJsFunction}} {{JSContainer| This property will return whether an entity overlay is valid or not. *Note: This property is readonly.  ===Return value=== *&amp;#039;&amp;#039;&amp;#039; {{RageType|boolean}} &amp;#039;&amp;#039;&amp;#039;  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt; batch.valid &amp;lt;/syntaxhighlight&amp;gt;  ==Example== &amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt; //Enable entity overlay mp.game.graphics.setEntityOverlayPassEnabled(true);  //Create new entity overlay batch let batch = mp.game.graphics.createEntityO...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
{{ClientsideJsFunction}}&lt;br /&gt;
{{JSContainer|&lt;br /&gt;
This property will return whether an entity overlay is valid or not.&lt;br /&gt;
*Note: This property is readonly.&lt;br /&gt;
&lt;br /&gt;
===Return value===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039; {{RageType|boolean}} &amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
batch.valid&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
//Enable entity overlay&lt;br /&gt;
mp.game.graphics.setEntityOverlayPassEnabled(true);&lt;br /&gt;
&lt;br /&gt;
//Create new entity overlay batch&lt;br /&gt;
let batch = mp.game.graphics.createEntityOverlayBatch(overlayParams);&lt;br /&gt;
&lt;br /&gt;
//Add a vehicle to overlay batch once the player enters in them.&lt;br /&gt;
mp.events.add(&amp;#039;playerEnterVehicle&amp;#039;, (vehicle) =&amp;gt; {&lt;br /&gt;
    //check if entity overlay is valid before adding a new entity to it&lt;br /&gt;
    if (batch.valid) {&lt;br /&gt;
        batch.add(vehicle);&lt;br /&gt;
    }&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
==See also==&lt;br /&gt;
{{EntityOverlayBatch}}&lt;br /&gt;
[[Category:Clientside API]]&lt;/div&gt;</summary>
		<author><name>Shr0x</name></author>
	</entry>
</feed>