<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.gtaconnected.com/wiki/index.php?action=history&amp;feed=atom&amp;title=natives.hasScriptLoaded</id>
	<title>natives.hasScriptLoaded - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.gtaconnected.com/wiki/index.php?action=history&amp;feed=atom&amp;title=natives.hasScriptLoaded"/>
	<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.hasScriptLoaded&amp;action=history"/>
	<updated>2026-04-29T17:53:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.15</generator>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.hasScriptLoaded&amp;diff=11293&amp;oldid=prev</id>
		<title>ChrisGame20: Created page with &quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.hasScriptLoaded |parameters = string scriptName |parameter1 = string scriptName Name of the script to check |usage = Checks if a requested script has finished loading into memory |notes =  - Returns true if the script is loaded and ready to start - Must be used after natives.requestScript to confirm the script is available - Useful to avoid errors when calling natives.startNewScript |ret...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.hasScriptLoaded&amp;diff=11293&amp;oldid=prev"/>
		<updated>2025-11-28T16:45:34Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.hasScriptLoaded |parameters = string scriptName |parameter1 = string scriptName Name of the script to check |usage = Checks if a requested script has finished loading into memory |notes =  - Returns true if the script is loaded and ready to start - Must be used after &lt;a href=&quot;/natives.requestScript&quot; title=&quot;natives.requestScript&quot;&gt;natives.requestScript&lt;/a&gt; to confirm the script is available - Useful to avoid errors when calling &lt;a href=&quot;/natives.startNewScript&quot; title=&quot;natives.startNewScript&quot;&gt;natives.startNewScript&lt;/a&gt; |ret...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.hasScriptLoaded&lt;br /&gt;
|parameters = string scriptName&lt;br /&gt;
|parameter1 = string scriptName Name of the script to check&lt;br /&gt;
|usage = Checks if a requested script has finished loading into memory&lt;br /&gt;
|notes = &lt;br /&gt;
- Returns true if the script is loaded and ready to start&lt;br /&gt;
- Must be used after [[natives.requestScript]] to confirm the script is available&lt;br /&gt;
- Useful to avoid errors when calling [[natives.startNewScript]]&lt;br /&gt;
|return1 = bool True if the script is loaded&lt;br /&gt;
|returnFail1 = bool False if the script is not loaded&lt;br /&gt;
|exampleJS = bindEventHandler(&amp;quot;OnResourceReady&amp;quot;, thisResource, function() {&lt;br /&gt;
    // Request and check script&lt;br /&gt;
    natives.requestScript(&amp;quot;trafficControl&amp;quot;);&lt;br /&gt;
    if (natives.hasScriptLoaded(&amp;quot;trafficControl&amp;quot;)) {&lt;br /&gt;
        natives.startNewScript(&amp;quot;trafficControl&amp;quot;, 1024);&lt;br /&gt;
        console.log(&amp;quot;trafficControl script started successfully.&amp;quot;);&lt;br /&gt;
    } else {&lt;br /&gt;
        console.log(&amp;quot;Script trafficControl is not yet loaded.&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
</feed>