This commit is contained in:
github-actions[bot] committed 2022-03-02 14:22:13 +00:00
1 parent 27be7e8648
commit 7e77d89ba1
37 files changed
+73 -73

No files matched your search

+2 -2
View File
@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="generator" content="Docusaurus v2.0.0-beta.16">
<title data-rh="true">Getting Started | Overextended</title><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:url" content="https://overextended.github.io/docs/ox_inventory/installation"><meta data-rh="true" name="docsearch:language" content="en"><meta data-rh="true" name="docsearch:version" content="current"><meta data-rh="true" name="docsearch:docusaurus_tag" content="docs-default-current"><meta data-rh="true" property="og:title" content="Getting Started | Overextended"><meta data-rh="true" name="description" content="This resource is being designed with the intention of providing advanced functionality while remaining easy to use,"><meta data-rh="true" property="og:description" content="This resource is being designed with the intention of providing advanced functionality while remaining easy to use,"><link data-rh="true" rel="icon" href="/img/ox.ico"><link data-rh="true" rel="canonical" href="https://overextended.github.io/docs/ox_inventory/installation"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_inventory/installation" hreflang="en"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_inventory/installation" hreflang="x-default"><link rel="stylesheet" href="/assets/css/styles.5598516b.css">
<link rel="preload" href="/assets/js/runtime~main.f804f4dd.js" as="script">
<link rel="preload" href="/assets/js/runtime~main.1d1d5180.js" as="script">
<link rel="preload" href="/assets/js/main.f557d0b9.js" as="script">
</head>
<body class="navigation-with-keyboard">
@@ -30,7 +30,7 @@ and <a href="https://github.com/overextended/ox_inventory/blob/main/setup/vehicl
<!-- -->Start the server and execute the <code>convertinventory</code> linden command from the console<br>
<!-- -->Remove the conversion file</p></div><div role="tabpanel" hidden=""><p>Work in progress.</p><p>Refer to the &quot;bridge&quot; module to get an idea of how you setup support for any framework.<br>
<!-- -->Modifications will need to be made for licenses, owned vehicles, and jobs.</p></div></div></div><div class="admonition admonition-caution alert alert--warning"><div class="admonition-heading"><h5><span class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"></path></svg></span>caution</h5></div><div class="admonition-content"><p>You should restart your server after the first startup to ensure everything has been correctly setup</p></div></div><h2 class="anchor anchorWithStickyNavbar_mojV" id="upgrading-esx">Upgrading ESX<a class="hash-link" href="#upgrading-esx" title="Direct link to heading">​</a></h2><p>Ox Inventory provides a complete suite of tools to replace the built-in items and inventory system from ESX, and is not intended to be used with resources designed around it.</p><ul><li>ESX loadouts do not exist - resources that use them need to remove references or be modified to look for the weapon as an item</li><li>Stashes from resources such as esx_policejob, esx_ambulancejob, etc. should be removed</li><li>Shops from esx_shops or the armoury from esx_policejob should be removed</li><li>Resources like esx_inventoryhud, esx_trunkinventory, esx_addoninventory, etc. should be removed</li></ul><h3 class="anchor anchorWithStickyNavbar_mojV" id="optional-optimisation">Optional optimisation<a class="hash-link" href="#optional-optimisation" title="Direct link to heading">​</a></h3><p>All item related functions from xPlayer, such as <code>xPlayer.getInventoryItem</code>, have been modified for compatibility purposes; however they are considered deprecated.</p><p>The reasoning is fairly simple - there&#x27;s now additional function references and overhead to consider. Fortunately, the new Inventory functions can be used directly and offer a great deal of improvements over the old ones.</p><p>You should read through the functions section for further information, but the following should give you a decent idea.</p><div class="tabs-container"><ul role="tablist" aria-orientation="horizontal" class="tabs"><li role="tab" tabindex="0" aria-selected="true" class="tabs__item tabItem_LplD tabs__item--active">ESX</li><li role="tab" tabindex="-1" aria-selected="false" class="tabs__item tabItem_LplD">Inventory</li></ul><div class="margin-vert--md"><div role="tabpanel"><div class="codeBlockContainer_I0IT language-lua theme-code-block"><div class="codeBlockContent_wNvx lua"><pre tabindex="0" class="prism-code language-lua codeBlock_jd64 thin-scrollbar" style="background-color:#282c34;color:#ffffff"><code class="codeBlockLines_mRuA"><span class="token-line" style="color:#ffffff"><span class="token keyword" style="color:#c5a5c5">if</span><span class="token plain"> xPlayer</span><span class="token punctuation" style="color:#8dc891">.</span><span class="token function" style="color:#79b6f2">getInventoryItem</span><span class="token punctuation" style="color:#8dc891">(</span><span class="token string" style="color:#8dc891">&#x27;acetone&#x27;</span><span class="token punctuation" style="color:#8dc891">)</span><span class="token punctuation" style="color:#8dc891">.</span><span class="token plain">count </span><span class="token operator" style="color:#d7deea">&gt;</span><span class="token plain"> </span><span class="token number" style="color:#5a9bcf">2</span><span class="token plain"> </span><span class="token keyword" style="color:#c5a5c5">and</span><span class="token plain"> xPlayer</span><span class="token punctuation" style="color:#8dc891">.</span><span class="token function" style="color:#79b6f2">getInventoryItem</span><span class="token punctuation" style="color:#8dc891">(</span><span class="token string" style="color:#8dc891">&#x27;antifreeze&#x27;</span><span class="token punctuation" style="color:#8dc891">)</span><span class="token punctuation" style="color:#8dc891">.</span><span class="token plain">count </span><span class="token operator" style="color:#d7deea">&gt;</span><span class="token plain"> </span><span class="token number" style="color:#5a9bcf">4</span><span class="token plain"> </span><span class="token keyword" style="color:#c5a5c5">and</span><span class="token plain"> xPlayer</span><span class="token punctuation" style="color:#8dc891">.</span><span class="token function" style="color:#79b6f2">getInventoryItem</span><span class="token punctuation" style="color:#8dc891">(</span><span class="token string" style="color:#8dc891">&#x27;sudo&#x27;</span><span class="token punctuation" style="color:#8dc891">)</span><span class="token punctuation" style="color:#8dc891">.</span><span class="token plain">count </span><span class="token operator" style="color:#d7deea">&gt;</span><span clLine truncated
<script src="/assets/js/runtime~main.f804f4dd.js"></script>
<script src="/assets/js/runtime~main.1d1d5180.js"></script>
<script src="/assets/js/main.f557d0b9.js"></script>
</body>
</html>