mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 06:28:54 +00:00
deploy: 1adceb5820
This commit is contained in:
1 parent
e902c0a5c2
commit
e2697581ef
73 files changed
+144
-144
No files matched your search
@@ -5,7 +5,7 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="generator" content="Docusaurus v2.0.0-beta.17">
|
||||
<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/"><meta data-rh="true" name="docusaurus_locale" content="en"><meta data-rh="true" name="docusaurus_version" content="current"><meta data-rh="true" name="docusaurus_tag" content="docs-default-current"><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/"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_inventory/" hreflang="en"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_inventory/" hreflang="x-default"><link rel="stylesheet" href="/assets/css/styles.ac5cd038.css">
|
||||
<link rel="preload" href="/assets/js/runtime~main.b89f24ba.js" as="script">
|
||||
<link rel="preload" href="/assets/js/runtime~main.d04d4d7e.js" as="script">
|
||||
<link rel="preload" href="/assets/js/main.012cc0a2.js" as="script">
|
||||
</head>
|
||||
<body class="navigation-with-keyboard">
|
||||
@@ -19,18 +19,18 @@ You either need to build the package yourself (more information in <a href="/doc
|
||||
It is being updated alongside Ox Inventory to improve support as well as add compatibility when using QBCore or migrating from bt-target.
|
||||
All stashes and shops will utilise PolyZone's instead of markers to interact with them.</p><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>If you wish to use it first you must ensure that qtarget is enabled in the resource convars.
|
||||
You will need to enable compatibility manually by adjusting your config - more information provided below.</p><p>You must start qtarget before the inventory and after your framework.</p></div></div><div style="display:flex"><a href="https://www.github.com/overextended/qtarget" target="_blank" rel="noopener noreferrer" style="margin-right:0.6rem"><div style="width:fit-content;height:3rem;padding:0.8rem;border-radius:0.2rem;vertical-align:baseline;text-align:center;display:flex;justify-content:center;align-items:center;color:white" class="icon-button"><div style="font-size:1.7rem;padding-right:0.6rem;padding-left:;vertical-align:center;display:flex"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path></svg></div><div>GitHub</div></div></a><a href="https://overextended.github.io/qtarget/" target="_blank" rel="noopener noreferrer"><div style="width:fit-content;height:3rem;padding:0.8rem;border-radius:0.2rem;vertical-align:baseline;text-align:center;display:flex;justify-content:center;align-items:center;color:white" class="icon-button"><div style="font-size:1.7rem;padding-right:0.6rem;padding-left:;vertical-align:center;display:flex"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M8.5 2.687c.654-.689 1.782-.886 3.112-.752 1.234.124 2.503.523 3.388.893v9.923c-.918-.35-2.107-.692-3.287-.81-1.094-.111-2.278-.039-3.213.492V2.687zM8 1.783C7.015.936 5.587.81 4.287.94c-1.514.153-3.042.672-3.994 1.105A.5.5 0 0 0 0 2.5v11a.5.5 0 0 0 .707.455c.882-.4 2.303-.881 3.68-1.02 1.409-.142 2.59.087 3.223.877a.5.5 0 0 0 .78 0c.633-.79 1.814-1.019 3.222-.877 1.378.139 2.8.62 3.681 1.02A.5.5 0 0 0 16 13.5v-11a.5.5 0 0 0-.293-.455c-.952-.433-2.48-.952-3.994-1.105C10.413.809 8.985.936 8 1.783z"></path></svg></div><div>Documentation</div></div></a></div><h3 class="anchor anchorWithStickyNavbar_mojV" id="npwd">NPWD<a class="hash-link" href="#npwd" title="Direct link to heading"></a></h3><p>A standalone and feature-rich phone created by Project Error.</p><p>The inventory will handle disabling the phone when the player has no item, and supports toggling the phone through item use.</p><div style="display:flex"><a href="https://www.github.com/project-error/npwd" target="_blank" rel="noopener noreferrer" style="margin-right:0.6rem"><div style="width:fit-content;height:3rem;padding:0.8rem;border-radius:0.2rem;vertical-align:baseline;text-align:center;display:flex;justify-content:center;align-items:center;color:white" class="icon-button"><div style="font-size:1.7rem;padding-right:0.6rem;padding-left:;vertical-align:center;display:flex"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path></svg></div><div>GitHub</div></div></a><a href="https://projecterror.dev/docs" target="_blank" rel="noopener noreferrer"><div style="width:fit-content;height:3rem;padding:0.8rem;border-radius:0.2rem;vertical-align:baseline;text-align:center;display:flex;justify-content:center;align-items:center;color:white" class="icon-button"><div style="font-size:1.7rem;padding-right:0.6rem;padding-left:;vertical-align:center;display:flex"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M8.5 2.687c.654-.689 1.782-.886 3.112-.752 1.234.124 2.503.523 3.388.893v9.923c-.918-.35-2.107-.692-3.287-.81-1.094-.111-2.278-.039-3.213.492V2.687zM8 1.783C7.015.936 5.587.81 4.287.94c-1.514.153-3.042.672-3.994 1.105A.5.5 0 0 0 0 2.5v11a.5.5 0 0 0 .707.455c.882-.4 2.303-.881 3.68-1.02 1.409-.142 2.59.087 3.223.877a.5.5 0 0 0 .78 0c.633-.79 1.814-1.Line truncated
|
||||
<!-- -->Execute the query inside <a href="https://github.com/overextended/ox_inventory/blob/main/setup/install.sql" target="_blank" rel="noopener noreferrer">install.sql</a> and <a href="https://github.com/overextended/ox_inventory/blob/main/setup/vehicle.sql" target="_blank" rel="noopener noreferrer">vehicle.sql</a></p></div><div role="tabpanel" hidden=""><p>Use a compatible version of <a href="https://github.com/esx-framework/esx-legacy" target="_blank" rel="noopener noreferrer">ESX Legacy</a> (1.6.0+)<br>
|
||||
<!-- -->Execute the query inside <a href="https://github.com/overextended/ox_inventory/blob/main/setup/install.sql" target="_blank" rel="noopener noreferrer">install.sql</a> and <a href="https://github.com/overextended/ox_inventory/blob/main/setup/vehicle.sql" target="_blank" rel="noopener noreferrer">vehicle.sql</a> </p><p> Start order should look like the following:</p><div class="codeBlockContainer_I0IT theme-code-block"><div class="codeBlockContent_wNvx"><pre tabindex="0" class="prism-code language-text codeBlock_jd64 thin-scrollbar" style="background-color:#282c34;color:#ffffff"><code class="codeBlockLines_mRuA"><span class="token-line" style="color:#ffffff"><span class="token plain">start oxmysql</span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain">start es_extended</span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain">start ox_lib</span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain">start ox_inventory</span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain">...</span><br></span></code></pre><button type="button" aria-label="Copy code to clipboard" class="copyButton_wuS7 clean-btn">Copy</button></div></div></div><div role="tabpanel" hidden=""><p>Use a compatible version of <a href="https://github.com/esx-framework/esx-legacy" target="_blank" rel="noopener noreferrer">ESX Legacy</a> (1.6.0+)<br>
|
||||
<!-- -->Execute the query inside <a href="https://github.com/overextended/ox_inventory/blob/main/setup/install.sql" target="_blank" rel="noopener noreferrer">install.sql</a>
|
||||
and <a href="https://github.com/overextended/ox_inventory/blob/main/setup/vehicle.sql" target="_blank" rel="noopener noreferrer">vehicle.sql</a><br>
|
||||
<!-- -->Open <code>fxmanifest.lua</code> and uncomment <code>server_script 'setup/convert.lua'</code><br>
|
||||
<!-- -->Start the server and execute the <code>convertinventory</code> command from the console<br>
|
||||
<!-- -->Remove the conversion file</p></div><div role="tabpanel" hidden=""><p>Execute the query inside <a href="https://github.com/overextended/ox_inventory/blob/main/setup/upgrade.sql" target="_blank" rel="noopener noreferrer">upgrade.sql</a>
|
||||
<!-- -->Remove the conversion file </p><p> Start order should look like the following:</p><div class="codeBlockContainer_I0IT theme-code-block"><div class="codeBlockContent_wNvx"><pre tabindex="0" class="prism-code language-text codeBlock_jd64 thin-scrollbar" style="background-color:#282c34;color:#ffffff"><code class="codeBlockLines_mRuA"><span class="token-line" style="color:#ffffff"><span class="token plain">start oxmysql</span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain">start es_extended</span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain">start ox_lib</span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain">start ox_inventory</span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain">everything else</span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain">...</span><br></span></code></pre><button type="button" aria-label="Copy code to clipboard" class="copyButton_wuS7 clean-btn">Copy</button></div></div></div><div role="tabpanel" hidden=""><p>Execute the query inside <a href="https://github.com/overextended/ox_inventory/blob/main/setup/upgrade.sql" target="_blank" rel="noopener noreferrer">upgrade.sql</a>
|
||||
and <a href="https://github.com/overextended/ox_inventory/blob/main/setup/vehicle.sql" target="_blank" rel="noopener noreferrer">vehicle.sql</a><br>
|
||||
<!-- -->Open <code>fxmanifest.lua</code> and uncomment <code>server_script 'setup/convert.lua'</code><br>
|
||||
<!-- -->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 "bridge" 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'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">'acetone'</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">></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">'antifreeze'</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">></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">'sudo'</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">></span><span clLine truncated
|
||||
<script src="/assets/js/runtime~main.b89f24ba.js"></script>
|
||||
<script src="/assets/js/runtime~main.d04d4d7e.js"></script>
|
||||
<script src="/assets/js/main.012cc0a2.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user