<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.quasar-rce.com/index.php?action=history&amp;feed=atom&amp;title=Vendetta%2FAPI%2Frequire</id>
	<title>Vendetta/API/require - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.quasar-rce.com/index.php?action=history&amp;feed=atom&amp;title=Vendetta%2FAPI%2Frequire"/>
	<link rel="alternate" type="text/html" href="https://wiki.quasar-rce.com/index.php?title=Vendetta/API/require&amp;action=history"/>
	<updated>2026-04-07T09:53:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.quasar-rce.com/index.php?title=Vendetta/API/require&amp;diff=58&amp;oldid=prev</id>
		<title>Wikiadmin: added require</title>
		<link rel="alternate" type="text/html" href="https://wiki.quasar-rce.com/index.php?title=Vendetta/API/require&amp;diff=58&amp;oldid=prev"/>
		<updated>2025-03-03T15:44:28Z</updated>

		<summary type="html">&lt;p&gt;added require&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Definition ===&lt;br /&gt;
lib.require (requirements, callback) :: nil&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
Delays a function from executing until the requirements are met. &lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
# table requirements: A list of {mod_IDs, mod_versions} that must be met; these must be loaded and activated, not just present.&lt;br /&gt;
# function callback: The function to be executed if/when all requirements are fulfilled.&lt;br /&gt;
&lt;br /&gt;
=== Returns ===&lt;br /&gt;
# nil&lt;br /&gt;
&lt;br /&gt;
=== Other notes ===&lt;br /&gt;
* Added in LME 2.x (Neoloader indev)&lt;br /&gt;
* This function provides a method to introduce &amp;quot;soft dependencies&amp;quot; - extended functionality for mods that your plugin can utilize but aren&amp;#039;t neccesary for its load state.&lt;br /&gt;
* The function lib.check_queue is called every time a mod is activated; it is this function that tests if the dependency table provided has been met or not, utilizing lib.resolve_dep_table&lt;br /&gt;
* If you need to make a range of versions valid, add a key ver_max=&amp;quot;version&amp;quot; to the table. the previous version=&amp;quot;version&amp;quot; will become a minimum requirement.&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
</feed>