mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 22:21:48 +00:00
deploy: e9507648a1
This commit is contained in:
1 parent
a8f8da1956
commit
af4e173af0
76 files changed
+152
-152
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.20">
|
||||
<link rel="search" type="application/opensearchdescription+xml" title="Overextended" href="/opensearch.xml"><title data-rh="true">Search | 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/Functions/Client/Inventory/Search"><meta data-rh="true" name="docusaurus_locale" content="en"><meta data-rh="true" name="docsearch:language" 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:version" content="current"><meta data-rh="true" name="docsearch:docusaurus_tag" content="docs-default-current"><meta data-rh="true" property="og:title" content="Search | Overextended"><meta data-rh="true" name="description" content="Searches the inventory for an item, or list of items, with the result varying based on the first argument."><meta data-rh="true" property="og:description" content="Searches the inventory for an item, or list of items, with the result varying based on the first argument."><link data-rh="true" rel="icon" href="/img/ox.ico"><link data-rh="true" rel="canonical" href="https://overextended.github.io/docs/ox_inventory/Functions/Client/Inventory/Search"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_inventory/Functions/Client/Inventory/Search" hreflang="en"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_inventory/Functions/Client/Inventory/Search" hreflang="x-default"><link data-rh="true" rel="preconnect" href="https://8XXXVNJ7UW-dsn.algolia.net" crossorigin="anonymous"><link rel="stylesheet" href="/assets/css/styles.51d1e9a9.css">
|
||||
<link rel="preload" href="/assets/js/runtime~main.c6e1ea7a.js" as="script">
|
||||
<link rel="preload" href="/assets/js/runtime~main.3904e5a9.js" as="script">
|
||||
<link rel="preload" href="/assets/js/main.f9ac1b57.js" as="script">
|
||||
</head>
|
||||
<body class="navigation-with-keyboard">
|
||||
@@ -13,7 +13,7 @@
|
||||
<div role="region"><a href="#" class="skipToContent_ZgBM">Skip to main content</a></div><nav class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Navigation bar toggle" class="navbar__toggle clean-btn" type="button" tabindex="0"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/"><div class="navbar__logo"><img src="/img/ox_64.png" alt="Ox Logo" class="themedImage_W2Cr themedImage--light_TfLj" height="32" width="32"><img src="/img/ox_64.png" alt="Ox Logo" class="themedImage_W2Cr themedImage--dark_oUvU" height="32" width="32"></div><b class="navbar__title text--truncate">Overextended</b></a><a href="https://www.github.com/overextended" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link">GitHub<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_I5OW"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a><a href="https://www.discord.gg/overextended" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link">Discord<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_I5OW"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a></div><div class="navbar__items navbar__items--right"><a aria-current="page" class="navbar__item navbar__link navbar__link--active" href="/docs/">Documentation</a><div class="searchBox_dLyj"><button type="button" class="DocSearch DocSearch-Button" aria-label="Search"><span class="DocSearch-Button-Container"><svg width="20" height="20" class="DocSearch-Search-Icon" viewBox="0 0 20 20"><path d="M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"></path></svg><span class="DocSearch-Button-Placeholder">Search</span></span><span class="DocSearch-Button-Keys"></span></button></div></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div class="main-wrapper docsWrapper_mKqt"><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_RiI4" type="button"></button><div class="docPage_ualW"><aside class="theme-doc-sidebar-container docSidebarContainer_UQUJ"><div class="sidebar_RiAD"><nav class="menu thin-scrollbar menu_izAj"><ul class="theme-doc-sidebar-menu menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/docs/">Documentation</a></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" aria-expanded="false" href="/docs/oxmysql/">MySQL</a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret" aria-expanded="false" href="/docs/ox_lib/ACL/Server">Library</a></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret menu__link--active" aria-expanded="true" href="/docs/ox_inventory/Functions/Client/Inventory/Search">Inventory</a></div><ul style="display:block;overflow:visible;height:auto" class="menu__list"><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-2 menu__list-item"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret menu__link--active" aria-expanded="true" tabindex="0" href="/docs/ox_inventory/Functions/Client/Inventory/Search">Functions</a></div><ul style="display:block;overflow:visible;height:auto" class="menu__list"><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-3 menu__list-item"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--sublist-caret menu__link--active" aria-expanded="true" tabindex="0" href="/docs/ox_inventory/Functions/Client/Inventory/Search">Client</a></div><ul style="display:block;overflow:visible;height:auto" class="menu__list"><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-4 menu__list-item"><divLine truncated
|
||||
of slots where the item was found at.</p><p>Otherwise if the <code>search</code> argument is defined as <code>'count'</code> the return value
|
||||
will be the amount of the specified item in player's inventory.</p><h3 class="anchor anchorWithStickyNavbar_mojV" id="count">Count<a class="hash-link" href="#count" title="Direct link to heading"></a></h3><div class="tabs-container tabList_uSqn"><ul role="tablist" aria-orientation="horizontal" class="tabs"><li role="tab" tabindex="0" aria-selected="true" class="tabs__item tabItem_LplD tabs__item--active">Single item</li><li role="tab" tabindex="-1" aria-selected="false" class="tabs__item tabItem_LplD">Multiple items</li></ul><div class="margin-top--md"><div role="tabpanel" class="tabItem_OmH5"><div class="language-lua codeBlockContainer_MPoW theme-code-block" style="--prism-background-color:#282c34;--prism-color:#ffffff"><div class="codeBlockContent_B9tL"><pre tabindex="0" class="prism-code language-lua codeBlock__0OG thin-scrollbar"><code class="codeBlockLines_gEuF"><span class="token-line" style="color:#ffffff"><span class="token keyword" style="color:#c5a5c5">local</span><span class="token plain"> count </span><span class="token operator" style="color:#d7deea">=</span><span class="token plain"> exports</span><span class="token punctuation" style="color:#8dc891">.</span><span class="token plain">ox_inventory</span><span class="token punctuation" style="color:#8dc891">:</span><span class="token function" style="color:#79b6f2">Search</span><span class="token punctuation" style="color:#8dc891">(</span><span class="token string" style="color:#8dc891">'count'</span><span class="token punctuation" style="color:#8dc891">,</span><span class="token plain"> </span><span class="token string" style="color:#8dc891">'water'</span><span class="token punctuation" style="color:#8dc891">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain"></span><span class="token function" style="color:#79b6f2">print</span><span class="token punctuation" style="color:#8dc891">(</span><span class="token string" style="color:#8dc891">'You have '</span><span class="token operator" style="color:#d7deea">..</span><span class="token plain">count</span><span class="token operator" style="color:#d7deea">..</span><span class="token plain"> </span><span class="token string" style="color:#8dc891">' water'</span><span class="token punctuation" style="color:#8dc891">)</span><br></span></code></pre><div class="buttonGroup_hRr1"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_W9eQ" aria-hidden="true"><svg class="copyButtonIcon_XEyF" viewBox="0 0 24 24"><path d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg class="copyButtonSuccessIcon_i9w9" viewBox="0 0 24 24"><path d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div></div><div role="tabpanel" class="tabItem_OmH5" hidden=""><div class="language-lua codeBlockContainer_MPoW theme-code-block" style="--prism-background-color:#282c34;--prism-color:#ffffff"><div class="codeBlockContent_B9tL"><pre tabindex="0" class="prism-code language-lua codeBlock__0OG thin-scrollbar"><code class="codeBlockLines_gEuF"><span class="token-line" style="color:#ffffff"><span class="token keyword" style="color:#c5a5c5">local</span><span class="token plain"> inventory </span><span class="token operator" style="color:#d7deea">=</span><span class="token plain"> exports</span><span class="token punctuation" style="color:#8dc891">.</span><span class="token plain">ox_inventory</span><span class="token punctuation" style="color:#8dc891">:</span><span class="token function" style="color:#79b6f2">Search</span><span class="token punctuation" style="color:#8dc891">(</span><span class="token string" style="color:#8dc891">'count'</span><span class="token punctuation" style="color:#8dc891">,</span><span class="token plain"> </span><span class="token punctuation" style="color:#8dc891">{</span><span class="token string" style="color:#8dc891">'meat'</span><span class="token punctuation" style="color:#8dc891">,</span><span class="token plain"> </span><span class="token string" style="color:#8dc891">'skin'</span><span class="token punctuation" style="color:#8dc891">}</span><span class="token punctuation" style="color:#8dc891">,</span><span class="token plain"> </span><span class="token punctuation" style="color:#8dc891">{</span><span class="token plain">grade</span><span class="token operator" style="color:#d7deea">=</span><span class="token string" style="color:#8dc891">"1"</span><span class="token punctuation" style="color:#8dc891">}</span><span class="token punctuation" style="color:#8dc891">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain" style="display:inline-block"></span><br></span><span clasLine truncated
|
||||
<script src="/assets/js/runtime~main.c6e1ea7a.js"></script>
|
||||
<script src="/assets/js/runtime~main.3904e5a9.js"></script>
|
||||
<script src="/assets/js/main.f9ac1b57.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user