This commit is contained in:
github-actions[bot] committed 2022-05-26 18:54:20 +00:00
1 parent a8f8da1956
commit af4e173af0
76 files changed
+152 -152

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.20">
<link rel="search" type="application/opensearchdescription+xml" title="Overextended" href="/opensearch.xml"><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_lib/"><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="Getting Started | Overextended"><meta data-rh="true" name="description" content="ox_lib is a collection of Lua and UI functions to utilise in other resources."><meta data-rh="true" property="og:description" content="ox_lib is a collection of Lua and UI functions to utilise in other resources."><link data-rh="true" rel="icon" href="/img/ox.ico"><link data-rh="true" rel="canonical" href="https://overextended.github.io/docs/ox_lib/"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_lib/" hreflang="en"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_lib/" 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">
@@ -15,7 +15,7 @@
a <code>shared_script</code> in your <code>fxmanifest.lua</code> file.</p><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 function" style="color:#79b6f2">shared_scripts</span><span class="token plain"> </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 string" style="color:#8dc891">&#x27;@ox_lib/init.lua&#x27;</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain"></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><p>Or if the library is the only shared script you use you can do:</p><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 plain">shared_script </span><span class="token string" style="color:#8dc891">&#x27;@ox_lib/init.lua&#x27;</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><p>That&#x27;s it!<br>
<!-- -->You can now use the library functions inside of your resource, check the rest of the
documentation to see how to utilise them.</p></div><footer class="theme-doc-footer docusaurus-mt-lg"><div class="theme-doc-footer-edit-meta-row row"><div class="col"><a href="https://github.com/overextended/overextended.github.io/tree/main/docs/ox_lib/index.md" target="_blank" rel="noreferrer noopener" class="theme-edit-this-page"><svg fill="currentColor" height="20" width="20" viewBox="0 0 40 40" class="iconEdit_dcUD" aria-hidden="true"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col lastUpdated_foO9"></div></div></footer></article><nav class="pagination-nav docusaurus-mt-lg" aria-label="Docs pages navigation"><a class="pagination-nav__link pagination-nav__link--prev" href="/docs/ox_lib/Zones/Client"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">Client</div></a><a class="pagination-nav__link pagination-nav__link--next" href="/docs/ox_inventory/Functions/Client/Inventory/Search"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Search</div></a></nav></div></div></div></div></main></div></div></div>
<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>