mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
deploy: b16b551ed2
This commit is contained in:
1 parent
660439a725
commit
b28de397fa
75 files changed
+147
-147
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">Context Menu | 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/Client/Interface/context"><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="Context Menu | Overextended"><meta data-rh="true" name="description" content="lib.registerContext"><meta data-rh="true" property="og:description" content="lib.registerContext"><link data-rh="true" rel="icon" href="/img/ox.ico"><link data-rh="true" rel="canonical" href="https://overextended.github.io/docs/ox_lib/Client/Interface/context"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_lib/Client/Interface/context" hreflang="en"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_lib/Client/Interface/context" hreflang="x-default"><link rel="stylesheet" href="/assets/css/styles.ac5cd038.css">
|
||||
<link rel="preload" href="/assets/js/runtime~main.2c193115.js" as="script">
|
||||
<link rel="preload" href="/assets/js/runtime~main.7cc9bd32.js" as="script">
|
||||
<link rel="preload" href="/assets/js/main.682f9a1f.js" as="script">
|
||||
</head>
|
||||
<body class="navigation-with-keyboard">
|
||||
@@ -35,7 +35,7 @@ the button will do nothing upon being clicked.</p><p>Of course just registering
|
||||
with the <code>lib.showContext</code> function, passing in the menu's id.</p><p>As of the time writing this the buttons are sorted <strong>alphabetically</strong>.</p><p><img src="https://i.imgur.com/aJu92dv.png" alt="menu_example"><br>
|
||||
<img src="https://i.imgur.com/kFGSlBF.png" alt="metadata"><br>
|
||||
<img src="https://i.imgur.com/r0Ln4VP.png" alt="event_menu"></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/Client/Interface/context.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"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/oxmysql/Usage/update"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">Update</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/ox_lib/Client/Interface/input"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Input Dialog</div></a></div></nav></div></div><div class="col col--3"><div class="tableOfContents_cNA8 thin-scrollbar theme-doc-toc-desktop"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#libregistercontext" class="table-of-contents__link toc-highlight">lib.registerContext</a></li><li><a href="#libshowcontext" class="table-of-contents__link toc-highlight">lib.showContext</a></li><li><a href="#usage-example" class="table-of-contents__link toc-highlight">Usage Example</a></li></ul></div></div></div></div></main></div></div><footer class="footer footer--dark"><div class="container container-fluid"><div class="footer__bottom text--center"><div class="footer__copyright">Copyright © 2022 Overextended</div></div></div></footer></div>
|
||||
<script src="/assets/js/runtime~main.2c193115.js"></script>
|
||||
<script src="/assets/js/runtime~main.7cc9bd32.js"></script>
|
||||
<script src="/assets/js/main.682f9a1f.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -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">Input Dialog | 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/Client/Interface/input"><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="Input Dialog | Overextended"><meta data-rh="true" name="description" content="The input dialog window allows you to take data from the user"><meta data-rh="true" property="og:description" content="The input dialog window allows you to take data from the user"><link data-rh="true" rel="icon" href="/img/ox.ico"><link data-rh="true" rel="canonical" href="https://overextended.github.io/docs/ox_lib/Client/Interface/input"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_lib/Client/Interface/input" hreflang="en"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_lib/Client/Interface/input" hreflang="x-default"><link rel="stylesheet" href="/assets/css/styles.ac5cd038.css">
|
||||
<link rel="preload" href="/assets/js/runtime~main.2c193115.js" as="script">
|
||||
<link rel="preload" href="/assets/js/runtime~main.7cc9bd32.js" as="script">
|
||||
<link rel="preload" href="/assets/js/main.682f9a1f.js" as="script">
|
||||
</head>
|
||||
<body class="navigation-with-keyboard">
|
||||
@@ -19,7 +19,7 @@ would be index <code>1</code>, if we want data from the third field, that would
|
||||
be index <code>3</code>, etc...</p><p>The input rows will always return a string, if you want a row to be of
|
||||
number data type, you can use the <code>tonumber</code> function to convert it to
|
||||
a number instead.</p><p>If a user left an input field empty it will return <code>nil</code></p><p><strong>Example:</strong></p><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">local</span><span class="token plain"> input </span><span class="token operator" style="color:#d7deea">=</span><span class="token plain"> lib</span><span class="token punctuation" style="color:#8dc891">.</span><span class="token function" style="color:#79b6f2">inputDialog</span><span class="token punctuation" style="color:#8dc891">(</span><span class="token string" style="color:#8dc891">'Police locker'</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">'Locker number'</span><span class="token punctuation" style="color:#8dc891">,</span><span class="token plain"> </span><span class="token string" style="color:#8dc891">'Locker passcode'</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 class="token-line" style="color:#ffffff"><span class="token plain"></span><span class="token keyword" style="color:#c5a5c5">if</span><span class="token plain"> input </span><span class="token keyword" style="color:#c5a5c5">then</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain"> </span><span class="token keyword" style="color:#c5a5c5">local</span><span class="token plain"> lockerNumber </span><span class="token operator" style="color:#d7deea">=</span><span class="token plain"> </span><span class="token function" style="color:#79b6f2">tonumber</span><span class="token punctuation" style="color:#8dc891">(</span><span class="token plain">input</span><span class="token punctuation" style="color:#8dc891">[</span><span class="token number" style="color:#5a9bcf">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"> </span><span class="token keyword" style="color:#c5a5c5">local</span><span class="token plain"> lockerPasscode </span><span class="token operator" style="color:#d7deea">=</span><span class="token plain"> input</span><span class="token punctuation" style="color:#8dc891">[</span><span class="token number" style="color:#5a9bcf">2</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 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 plain">lockerNumber</span><span class="token punctuation" style="color:#8dc891">,</span><span class="token plain"> lockerPasscode</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 keyword" style="color:#c5a5c5">end</span><br></span></code></pre><button type="button" aria-label="Copy code to clipboard" class="copyButton_wuS7 clean-btn">Copy</button></div></div><p><img src="https://i.imgur.com/RvFFZqv.png" alt="Example image"></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/Client/Interface/input.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"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/ox_lib/Client/Interface/context"><div class="pagination-nav__sublaLine truncated
|
||||
<script src="/assets/js/runtime~main.2c193115.js"></script>
|
||||
<script src="/assets/js/runtime~main.7cc9bd32.js"></script>
|
||||
<script src="/assets/js/main.682f9a1f.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -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">Notifications | 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/Client/Interface/notify"><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="Notifications | Overextended"><meta data-rh="true" name="description" content="lib.notify"><meta data-rh="true" property="og:description" content="lib.notify"><link data-rh="true" rel="icon" href="/img/ox.ico"><link data-rh="true" rel="canonical" href="https://overextended.github.io/docs/ox_lib/Client/Interface/notify"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_lib/Client/Interface/notify" hreflang="en"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_lib/Client/Interface/notify" hreflang="x-default"><link rel="stylesheet" href="/assets/css/styles.ac5cd038.css">
|
||||
<link rel="preload" href="/assets/js/runtime~main.2c193115.js" as="script">
|
||||
<link rel="preload" href="/assets/js/runtime~main.7cc9bd32.js" as="script">
|
||||
<link rel="preload" href="/assets/js/main.682f9a1f.js" as="script">
|
||||
</head>
|
||||
<body class="navigation-with-keyboard">
|
||||
@@ -18,7 +18,7 @@
|
||||
<code>style</code> - React CSS styling, works the same as in <a href="/docs/ox_lib/Client/Interface/textui">TextUI</a><br>
|
||||
<code>icon</code> - Font Awesome 6 icon, works the same as in <a href="/docs/ox_lib/Client/Interface/textui">TextUI</a><br>
|
||||
<code>iconColor</code> - Set a different color for the provided icon </p><p><strong>Example:</strong></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">Standard</li><li role="tab" tabindex="-1" aria-selected="false" class="tabs__item tabItem_LplD">Custom</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 plain">lib</span><span class="token punctuation" style="color:#8dc891">.</span><span class="token function" style="color:#79b6f2">notify</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"> title </span><span class="token operator" style="color:#d7deea">=</span><span class="token plain"> </span><span class="token string" style="color:#8dc891">'Notification title'</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"> description </span><span class="token operator" style="color:#d7deea">=</span><span class="token plain"> </span><span class="token string" style="color:#8dc891">'Notification description'</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"> type </span><span class="token operator" style="color:#d7deea">=</span><span class="token plain"> </span><span class="token string" style="color:#8dc891">'success'</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><span class="token punctuation" style="color:#8dc891">)</span><br></span></code></pre><button type="button" aria-label="Copy code to clipboard" class="copyButton_wuS7 clean-btn">Copy</button></div></div><p><img src="https://i.imgur.com/cRxJICO.png" alt="notification"></p></div><div role="tabpanel" hidden=""><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 plain">lib</span><span class="token punctuation" style="color:#8dc891">.</span><span class="token function" style="color:#79b6f2">notify</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"> id </span><span class="token operator" style="color:#d7deea">=</span><span class="token plain"> </span><span class="token string" style="color:#8dc891">'some_identifier'</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"> title </span><span class="token operator" style="color:#d7deea">=</span><span class="token plain"> </span><span class="token string" style="color:#8dc891">'Notification title'</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"> description </span><span class="token operator" style="color:#d7deea">=</span><span class="token plain"> </span><span class="token string" style="color:#8dc891">'Notification description'</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"> position </span><span class="token operator" style="color:#d7deea">=</span><span class="token plain"> </span><span class="token string" style="color:#8dc891">'top'</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 </span><span class="token operator" style="color:#d7deea">=</span><span class="token plain"> </span><span class="token punctuation" style="color:#8dc891">{</span>Line truncated
|
||||
<script src="/assets/js/runtime~main.2c193115.js"></script>
|
||||
<script src="/assets/js/runtime~main.7cc9bd32.js"></script>
|
||||
<script src="/assets/js/main.682f9a1f.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -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">Progress | 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/Client/Interface/progress"><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="Progress | Overextended"><meta data-rh="true" name="description" content="lib.progressBar"><meta data-rh="true" property="og:description" content="lib.progressBar"><link data-rh="true" rel="icon" href="/img/ox.ico"><link data-rh="true" rel="canonical" href="https://overextended.github.io/docs/ox_lib/Client/Interface/progress"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_lib/Client/Interface/progress" hreflang="en"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_lib/Client/Interface/progress" hreflang="x-default"><link rel="stylesheet" href="/assets/css/styles.ac5cd038.css">
|
||||
<link rel="preload" href="/assets/js/runtime~main.2c193115.js" as="script">
|
||||
<link rel="preload" href="/assets/js/runtime~main.7cc9bd32.js" as="script">
|
||||
<link rel="preload" href="/assets/js/main.682f9a1f.js" as="script">
|
||||
</head>
|
||||
<body class="navigation-with-keyboard">
|
||||
@@ -14,7 +14,7 @@
|
||||
as individual tables in the <code>prop</code> table.</p><p><strong>Example:</strong></p><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"> lib</span><span class="token punctuation" style="color:#8dc891">.</span><span class="token function" style="color:#79b6f2">progressBar</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"> duration </span><span class="token operator" style="color:#d7deea">=</span><span class="token plain"> </span><span class="token number" style="color:#5a9bcf">2000</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"> label </span><span class="token operator" style="color:#d7deea">=</span><span class="token plain"> </span><span class="token string" style="color:#8dc891">'Drinking 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"> useWhileDead </span><span class="token operator" style="color:#d7deea">=</span><span class="token plain"> </span><span class="token keyword" style="color:#c5a5c5">false</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"> canCancel </span><span class="token operator" style="color:#d7deea">=</span><span class="token plain"> </span><span class="token keyword" style="color:#c5a5c5">true</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"> disable </span><span class="token operator" style="color:#d7deea">=</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"> car </span><span class="token operator" style="color:#d7deea">=</span><span class="token plain"> </span><span class="token keyword" style="color:#c5a5c5">true</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 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"> anim </span><span class="token operator" style="color:#d7deea">=</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"> dict </span><span class="token operator" style="color:#d7deea">=</span><span class="token plain"> </span><span class="token string" style="color:#8dc891">'mp_player_intdrink'</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"> clip </span><span class="token operator" style="color:#d7deea">=</span><span class="token plain"> </span><span class="token string" style="color:#8dc891">'loop_bottle'</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><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"> prop </span><span class="token operator" style="color:#d7deea">=</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"> model </span><span class="token operator" style="color:#d7deea">=</span><span class="token plain"> `prop_ld_flow_bottle`</span><span class="token punctuation" style="color:#8dc891">,</span><span class="token plain"></span><br></span><span class="token-line" style="color:#fffLine truncated
|
||||
you can define a position.</p><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 comment" style="color:#999999">-- duration: number</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain"></span><span class="token comment" style="color:#999999">-- position: "middle" or "bottom" (optional - default is "middle")</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain"></span><span class="token comment" style="color:#999999">-- useWhileDead: boolean (optional)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain"></span><span class="token comment" style="color:#999999">-- canCancel: boolean (optional)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain"></span><span class="token comment" style="color:#999999">-- anim: table (optional)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain"> </span><span class="token comment" style="color:#999999">-- dict: string (optional - either scenario or dict)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain"> </span><span class="token comment" style="color:#999999">-- clip: string</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain"> </span><span class="token comment" style="color:#999999">-- flag: number (optional - default is 49)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain"> </span><span class="token comment" style="color:#999999">-- blendIn: float (optional - default is 3.0)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain"> </span><span class="token comment" style="color:#999999">-- blendOut: float (optional - default is 1.0)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain"> </span><span class="token comment" style="color:#999999">-- duration: number (optional - default is -1)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain"> </span><span class="token comment" style="color:#999999">-- flag: number (optional - default is 49)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain"> </span><span class="token comment" style="color:#999999">-- playbackRate: number (optional - default is 0)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain"> </span><span class="token comment" style="color:#999999">-- lockX: boolean (optional)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain"> </span><span class="token comment" style="color:#999999">-- lockY: boolean (optional)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain"> </span><span class="token comment" style="color:#999999">-- lockZ: boolean (optional)</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 class="token-line" style="color:#ffffff"><span class="token plain"> </span><span class="token comment" style="color:#999999">-- scenario: string (optional - either scenario or dict)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain"> </span><span class="token comment" style="color:#999999">-- playEnter: boolean (optional - default is true)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain"></span><span class="token comment" style="color:#999999">-- prop: table (optional)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain"> </span><span class="token comment" style="color:#999999">-- model: hash</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain"> </span><span class="token comment" style="color:#999999">-- x: number</span><span class="Line truncated
|
||||
progress bar can be cancelled then it cancels it.</p><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 plain">lib</span><span class="token punctuation" style="color:#8dc891">.</span><span class="token function" style="color:#79b6f2">cancelProgress</span><span class="token punctuation" style="color:#8dc891">(</span><span class="token punctuation" style="color:#8dc891">)</span><br></span></code></pre><button type="button" aria-label="Copy code to clipboard" class="copyButton_wuS7 clean-btn">Copy</button></div></div></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/Client/Interface/progress.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"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/ox_lib/Client/Interface/notify"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">Notifications</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/ox_lib/Client/Interface/textui"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">TextUI</div></a></div></nav></div></div><div class="col col--3"><div class="tableOfContents_cNA8 thin-scrollbar theme-doc-toc-desktop"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#libprogressbar" class="table-of-contents__link toc-highlight">lib.progressBar</a></li><li><a href="#libprogresscircle" class="table-of-contents__link toc-highlight">lib.progressCircle</a></li><li><a href="#libprogressactive" class="table-of-contents__link toc-highlight">lib.progressActive</a></li><li><a href="#libcancelprogress" class="table-of-contents__link toc-highlight">lib.cancelProgress</a></li></ul></div></div></div></div></main></div></div><footer class="footer footer--dark"><div class="container container-fluid"><div class="footer__bottom text--center"><div class="footer__copyright">Copyright © 2022 Overextended</div></div></div></footer></div>
|
||||
<script src="/assets/js/runtime~main.2c193115.js"></script>
|
||||
<script src="/assets/js/runtime~main.7cc9bd32.js"></script>
|
||||
<script src="/assets/js/main.682f9a1f.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -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">TextUI | 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/Client/Interface/textui"><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="TextUI | Overextended"><meta data-rh="true" name="description" content="lib.showTextUI"><meta data-rh="true" property="og:description" content="lib.showTextUI"><link data-rh="true" rel="icon" href="/img/ox.ico"><link data-rh="true" rel="canonical" href="https://overextended.github.io/docs/ox_lib/Client/Interface/textui"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_lib/Client/Interface/textui" hreflang="en"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_lib/Client/Interface/textui" hreflang="x-default"><link rel="stylesheet" href="/assets/css/styles.ac5cd038.css">
|
||||
<link rel="preload" href="/assets/js/runtime~main.2c193115.js" as="script">
|
||||
<link rel="preload" href="/assets/js/runtime~main.7cc9bd32.js" as="script">
|
||||
<link rel="preload" href="/assets/js/main.682f9a1f.js" as="script">
|
||||
</head>
|
||||
<body class="navigation-with-keyboard">
|
||||
@@ -15,7 +15,7 @@ the default icon type will be <code>solid</code>.<br>
|
||||
<!-- -->If you want to use a different icon type, i.e
|
||||
apple as a brand, you need to define icon as a table with the first value being
|
||||
the icon type as a string, and the second being the icon name.</p><p><code>icon = {'fab', 'apple'}</code></p><h3 class="anchor anchorWithStickyNavbar_mojV" id="libhidetextui">lib.hideTextUI<a class="hash-link" href="#libhidetextui" title="Direct link to heading"></a></h3><p>Hides the currently visible TextUI window</p><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 plain">lib</span><span class="token punctuation" style="color:#8dc891">.</span><span class="token function" style="color:#79b6f2">hideTextUI</span><span class="token punctuation" style="color:#8dc891">(</span><span class="token punctuation" style="color:#8dc891">)</span><br></span></code></pre><button type="button" aria-label="Copy code to clipboard" class="copyButton_wuS7 clean-btn">Copy</button></div></div></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/Client/Interface/textui.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"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/ox_lib/Client/Interface/progress"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">Progress</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/ox_lib/Client/cache"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Cache</div></a></div></nav></div></div><div class="col col--3"><div class="tableOfContents_cNA8 thin-scrollbar theme-doc-toc-desktop"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#libshowtextui" class="table-of-contents__link toc-highlight">lib.showTextUI</a></li><li><a href="#libhidetextui" class="table-of-contents__link toc-highlight">lib.hideTextUI</a></li></ul></div></div></div></div></main></div></div><footer class="footer footer--dark"><div class="container container-fluid"><div class="footer__bottom text--center"><div class="footer__copyright">Copyright © 2022 Overextended</div></div></div></footer></div>
|
||||
<script src="/assets/js/runtime~main.2c193115.js"></script>
|
||||
<script src="/assets/js/runtime~main.7cc9bd32.js"></script>
|
||||
<script src="/assets/js/main.682f9a1f.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Vendored
+2
-2
@@ -5,14 +5,14 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="generator" content="Docusaurus v2.0.0-beta.17">
|
||||
<title data-rh="true">Cache | 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/Client/cache"><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="Cache | Overextended"><meta data-rh="true" name="description" content="Caches data related to the player and handling some events or statebags."><meta data-rh="true" property="og:description" content="Caches data related to the player and handling some events or statebags."><link data-rh="true" rel="icon" href="/img/ox.ico"><link data-rh="true" rel="canonical" href="https://overextended.github.io/docs/ox_lib/Client/cache"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_lib/Client/cache" hreflang="en"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_lib/Client/cache" hreflang="x-default"><link rel="stylesheet" href="/assets/css/styles.ac5cd038.css">
|
||||
<link rel="preload" href="/assets/js/runtime~main.2c193115.js" as="script">
|
||||
<link rel="preload" href="/assets/js/runtime~main.7cc9bd32.js" as="script">
|
||||
<link rel="preload" href="/assets/js/main.682f9a1f.js" as="script">
|
||||
</head>
|
||||
<body class="navigation-with-keyboard">
|
||||
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"dark")}()</script><div id="__docusaurus">
|
||||
<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">Overextended</b></a><a href="https://www.github.com/overextended" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>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></span></a><a href="https://www.discord.gg/overextended" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>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></span></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></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div class="main-wrapper docs-wrapper docs-doc-page"><div class="docPage_P2Lg"><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_RiI4" type="button"></button><aside class="theme-doc-sidebar-container docSidebarContainer_rKC_"><div class="sidebar_CW9Y"><nav class="menu thin-scrollbar menu_SkdO"><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" href="/docs/oxmysql/">MySQL</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--active" href="/docs/ox_lib/Client/Interface/context">Library</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--active" tabindex="0" href="/docs/ox_lib/Client/Interface/context">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-3 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist" tabindex="0" href="/docs/ox_lib/Client/Interface/context">Interface</a></div></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link menu__link--active" aria-current="page" tabindex="0" href="/docs/ox_lib/Client/cache">Cache</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/callback">Callbacks</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/disableControls">Disable Controls</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/misc">Misc</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/points">Points</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/streaming">Streaming</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/vehicleProperties">Vehicle Properties</a></li></ul></li><li class="theme-doc-sidebar-Line truncated
|
||||
<!-- -->An interval runs every 100ms to update data that cannot be checked via handlers. </p><p><a href="https://github.com/overextended/ox_lib/blob/master/resource/cache/client.lua" target="_blank" rel="noopener noreferrer">https://github.com/overextended/ox_lib/blob/master/resource/cache/client.lua</a></p><h2 class="anchor anchorWithStickyNavbar_mojV" id="states">States<a class="hash-link" href="#states" title="Direct link to heading"></a></h2><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 plain">cache</span><span class="token punctuation" style="color:#8dc891">.</span><span class="token plain">ped </span><span class="token comment" style="color:#999999">-- player entity id</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain">cache</span><span class="token punctuation" style="color:#8dc891">.</span><span class="token plain">vehicle </span><span class="token comment" style="color:#999999">-- vehicle entity id</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain">cache</span><span class="token punctuation" style="color:#8dc891">.</span><span class="token plain">seat </span><span class="token comment" style="color:#999999">-- vehicle seat index</span><br></span></code></pre><button type="button" aria-label="Copy code to clipboard" class="copyButton_wuS7 clean-btn">Copy</button></div></div><h2 class="anchor anchorWithStickyNavbar_mojV" id="liboncache">lib.onCache<a class="hash-link" href="#liboncache" title="Direct link to heading"></a></h2><p>Register a callback function when the value is changed.</p><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 plain">lib</span><span class="token punctuation" style="color:#8dc891">.</span><span class="token function" style="color:#79b6f2">onCache</span><span class="token punctuation" style="color:#8dc891">(</span><span class="token string" style="color:#8dc891">'vehicle'</span><span class="token punctuation" style="color:#8dc891">,</span><span class="token plain"> </span><span class="token keyword" style="color:#c5a5c5">function</span><span class="token punctuation" style="color:#8dc891">(</span><span class="token plain">value</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">'vehicle'</span><span class="token punctuation" style="color:#8dc891">,</span><span class="token plain"> value</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 keyword" style="color:#c5a5c5">end</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 class="token-line" style="color:#ffffff"><span class="token plain">lib</span><span class="token punctuation" style="color:#8dc891">.</span><span class="token function" style="color:#79b6f2">onCache</span><span class="token punctuation" style="color:#8dc891">(</span><span class="token string" style="color:#8dc891">'seat'</span><span class="token punctuation" style="color:#8dc891">,</span><span class="token plain"> </span><span class="token keyword" style="color:#c5a5c5">function</span><span class="token punctuation" style="color:#8dc891">(</span><span class="token plain">value</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">'seat'</span><span class="token punctuation" style="color:#8dc891">,</span><span class="token plain"> value</span><span class="token punctuation" style="color:#8dc891">)</span><span class="token plain"></spanLine truncated
|
||||
<script src="/assets/js/runtime~main.2c193115.js"></script>
|
||||
<script src="/assets/js/runtime~main.7cc9bd32.js"></script>
|
||||
<script src="/assets/js/main.682f9a1f.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -5,13 +5,13 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="generator" content="Docusaurus v2.0.0-beta.17">
|
||||
<title data-rh="true">Callbacks | 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/Client/callback"><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="Callbacks | Overextended"><meta data-rh="true" name="description" content="Triggers a registered server callback and registers an event handler for the response."><meta data-rh="true" property="og:description" content="Triggers a registered server callback and registers an event handler for the response."><link data-rh="true" rel="icon" href="/img/ox.ico"><link data-rh="true" rel="canonical" href="https://overextended.github.io/docs/ox_lib/Client/callback"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_lib/Client/callback" hreflang="en"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_lib/Client/callback" hreflang="x-default"><link rel="stylesheet" href="/assets/css/styles.ac5cd038.css">
|
||||
<link rel="preload" href="/assets/js/runtime~main.2c193115.js" as="script">
|
||||
<link rel="preload" href="/assets/js/runtime~main.7cc9bd32.js" as="script">
|
||||
<link rel="preload" href="/assets/js/main.682f9a1f.js" as="script">
|
||||
</head>
|
||||
<body class="navigation-with-keyboard">
|
||||
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"dark")}()</script><div id="__docusaurus">
|
||||
<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">Overextended</b></a><a href="https://www.github.com/overextended" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>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></span></a><a href="https://www.discord.gg/overextended" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>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></span></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></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div class="main-wrapper docs-wrapper docs-doc-page"><div class="docPage_P2Lg"><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_RiI4" type="button"></button><aside class="theme-doc-sidebar-container docSidebarContainer_rKC_"><div class="sidebar_CW9Y"><nav class="menu thin-scrollbar menu_SkdO"><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" href="/docs/oxmysql/">MySQL</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--active" href="/docs/ox_lib/Client/Interface/context">Library</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--active" tabindex="0" href="/docs/ox_lib/Client/Interface/context">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-3 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist" tabindex="0" href="/docs/ox_lib/Client/Interface/context">Interface</a></div></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/cache">Cache</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link menu__link--active" aria-current="page" tabindex="0" href="/docs/ox_lib/Client/callback">Callbacks</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/disableControls">Disable Controls</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/misc">Misc</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/points">Points</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/streaming">Streaming</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/vehicleProperties">Vehicle Properties</a></li></ul></li><li class="theme-doc-sidebar-Line truncated
|
||||
<script src="/assets/js/runtime~main.2c193115.js"></script>
|
||||
<script src="/assets/js/runtime~main.7cc9bd32.js"></script>
|
||||
<script src="/assets/js/main.682f9a1f.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -5,13 +5,13 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="generator" content="Docusaurus v2.0.0-beta.17">
|
||||
<title data-rh="true">Disable Controls | 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/Client/disableControls"><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="Disable Controls | Overextended"><meta data-rh="true" name="description" content="lib.disableControls"><meta data-rh="true" property="og:description" content="lib.disableControls"><link data-rh="true" rel="icon" href="/img/ox.ico"><link data-rh="true" rel="canonical" href="https://overextended.github.io/docs/ox_lib/Client/disableControls"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_lib/Client/disableControls" hreflang="en"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_lib/Client/disableControls" hreflang="x-default"><link rel="stylesheet" href="/assets/css/styles.ac5cd038.css">
|
||||
<link rel="preload" href="/assets/js/runtime~main.2c193115.js" as="script">
|
||||
<link rel="preload" href="/assets/js/runtime~main.7cc9bd32.js" as="script">
|
||||
<link rel="preload" href="/assets/js/main.682f9a1f.js" as="script">
|
||||
</head>
|
||||
<body class="navigation-with-keyboard">
|
||||
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"dark")}()</script><div id="__docusaurus">
|
||||
<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">Overextended</b></a><a href="https://www.github.com/overextended" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>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></span></a><a href="https://www.discord.gg/overextended" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>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></span></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></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div class="main-wrapper docs-wrapper docs-doc-page"><div class="docPage_P2Lg"><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_RiI4" type="button"></button><aside class="theme-doc-sidebar-container docSidebarContainer_rKC_"><div class="sidebar_CW9Y"><nav class="menu thin-scrollbar menu_SkdO"><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" href="/docs/oxmysql/">MySQL</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--active" href="/docs/ox_lib/Client/Interface/context">Library</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--active" tabindex="0" href="/docs/ox_lib/Client/Interface/context">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-3 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist" tabindex="0" href="/docs/ox_lib/Client/Interface/context">Interface</a></div></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/cache">Cache</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/callback">Callbacks</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link menu__link--active" aria-current="page" tabindex="0" href="/docs/ox_lib/Client/disableControls">Disable Controls</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/misc">Misc</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/points">Points</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/streaming">Streaming</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/vehicleProperties">Vehicle Properties</a></li></ul></li><li class="theme-doc-sidebar-Line truncated
|
||||
<script src="/assets/js/runtime~main.2c193115.js"></script>
|
||||
<script src="/assets/js/runtime~main.7cc9bd32.js"></script>
|
||||
<script src="/assets/js/main.682f9a1f.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -5,13 +5,13 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="generator" content="Docusaurus v2.0.0-beta.17">
|
||||
<title data-rh="true">Misc | 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/Client/misc"><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="Misc | Overextended"><meta data-rh="true" name="description" content="lib.setClipboard"><meta data-rh="true" property="og:description" content="lib.setClipboard"><link data-rh="true" rel="icon" href="/img/ox.ico"><link data-rh="true" rel="canonical" href="https://overextended.github.io/docs/ox_lib/Client/misc"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_lib/Client/misc" hreflang="en"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_lib/Client/misc" hreflang="x-default"><link rel="stylesheet" href="/assets/css/styles.ac5cd038.css">
|
||||
<link rel="preload" href="/assets/js/runtime~main.2c193115.js" as="script">
|
||||
<link rel="preload" href="/assets/js/runtime~main.7cc9bd32.js" as="script">
|
||||
<link rel="preload" href="/assets/js/main.682f9a1f.js" as="script">
|
||||
</head>
|
||||
<body class="navigation-with-keyboard">
|
||||
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"dark")}()</script><div id="__docusaurus">
|
||||
<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">Overextended</b></a><a href="https://www.github.com/overextended" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>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></span></a><a href="https://www.discord.gg/overextended" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>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></span></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></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div class="main-wrapper docs-wrapper docs-doc-page"><div class="docPage_P2Lg"><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_RiI4" type="button"></button><aside class="theme-doc-sidebar-container docSidebarContainer_rKC_"><div class="sidebar_CW9Y"><nav class="menu thin-scrollbar menu_SkdO"><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" href="/docs/oxmysql/">MySQL</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--active" href="/docs/ox_lib/Client/Interface/context">Library</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--active" tabindex="0" href="/docs/ox_lib/Client/Interface/context">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-3 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist" tabindex="0" href="/docs/ox_lib/Client/Interface/context">Interface</a></div></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/cache">Cache</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/callback">Callbacks</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/disableControls">Disable Controls</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link menu__link--active" aria-current="page" tabindex="0" href="/docs/ox_lib/Client/misc">Misc</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/points">Points</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/streaming">Streaming</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/vehicleProperties">Vehicle Properties</a></li></ul></li><li class="theme-doc-sidebar-Line truncated
|
||||
<script src="/assets/js/runtime~main.2c193115.js"></script>
|
||||
<script src="/assets/js/runtime~main.7cc9bd32.js"></script>
|
||||
<script src="/assets/js/main.682f9a1f.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -5,13 +5,13 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="generator" content="Docusaurus v2.0.0-beta.17">
|
||||
<title data-rh="true">Points | 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/Client/points"><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="Points | Overextended"><meta data-rh="true" name="description" content="Simple and centralised distance checking, supporting callbacks when entering, leaving, and standing in-range of set coordinates."><meta data-rh="true" property="og:description" content="Simple and centralised distance checking, supporting callbacks when entering, leaving, and standing in-range of set coordinates."><link data-rh="true" rel="icon" href="/img/ox.ico"><link data-rh="true" rel="canonical" href="https://overextended.github.io/docs/ox_lib/Client/points"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_lib/Client/points" hreflang="en"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_lib/Client/points" hreflang="x-default"><link rel="stylesheet" href="/assets/css/styles.ac5cd038.css">
|
||||
<link rel="preload" href="/assets/js/runtime~main.2c193115.js" as="script">
|
||||
<link rel="preload" href="/assets/js/runtime~main.7cc9bd32.js" as="script">
|
||||
<link rel="preload" href="/assets/js/main.682f9a1f.js" as="script">
|
||||
</head>
|
||||
<body class="navigation-with-keyboard">
|
||||
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"dark")}()</script><div id="__docusaurus">
|
||||
<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">Overextended</b></a><a href="https://www.github.com/overextended" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>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></span></a><a href="https://www.discord.gg/overextended" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>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></span></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></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div class="main-wrapper docs-wrapper docs-doc-page"><div class="docPage_P2Lg"><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_RiI4" type="button"></button><aside class="theme-doc-sidebar-container docSidebarContainer_rKC_"><div class="sidebar_CW9Y"><nav class="menu thin-scrollbar menu_SkdO"><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" href="/docs/oxmysql/">MySQL</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--active" href="/docs/ox_lib/Client/Interface/context">Library</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--active" tabindex="0" href="/docs/ox_lib/Client/Interface/context">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-3 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist" tabindex="0" href="/docs/ox_lib/Client/Interface/context">Interface</a></div></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/cache">Cache</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/callback">Callbacks</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/disableControls">Disable Controls</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/misc">Misc</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link menu__link--active" aria-current="page" tabindex="0" href="/docs/ox_lib/Client/points">Points</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/streaming">Streaming</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/vehicleProperties">Vehicle Properties</a></li></ul></li><li class="theme-doc-sidebar-Line truncated
|
||||
<script src="/assets/js/runtime~main.2c193115.js"></script>
|
||||
<script src="/assets/js/runtime~main.7cc9bd32.js"></script>
|
||||
<script src="/assets/js/main.682f9a1f.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -5,14 +5,14 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="generator" content="Docusaurus v2.0.0-beta.17">
|
||||
<title data-rh="true">Streaming | 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/Client/streaming"><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="Streaming | Overextended"><meta data-rh="true" name="description" content="Check if assets exist, such as models, and loads them into memory."><meta data-rh="true" property="og:description" content="Check if assets exist, such as models, and loads them into memory."><link data-rh="true" rel="icon" href="/img/ox.ico"><link data-rh="true" rel="canonical" href="https://overextended.github.io/docs/ox_lib/Client/streaming"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_lib/Client/streaming" hreflang="en"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_lib/Client/streaming" hreflang="x-default"><link rel="stylesheet" href="/assets/css/styles.ac5cd038.css">
|
||||
<link rel="preload" href="/assets/js/runtime~main.2c193115.js" as="script">
|
||||
<link rel="preload" href="/assets/js/runtime~main.7cc9bd32.js" as="script">
|
||||
<link rel="preload" href="/assets/js/main.682f9a1f.js" as="script">
|
||||
</head>
|
||||
<body class="navigation-with-keyboard">
|
||||
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"dark")}()</script><div id="__docusaurus">
|
||||
<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">Overextended</b></a><a href="https://www.github.com/overextended" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>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></span></a><a href="https://www.discord.gg/overextended" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>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></span></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></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div class="main-wrapper docs-wrapper docs-doc-page"><div class="docPage_P2Lg"><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_RiI4" type="button"></button><aside class="theme-doc-sidebar-container docSidebarContainer_rKC_"><div class="sidebar_CW9Y"><nav class="menu thin-scrollbar menu_SkdO"><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" href="/docs/oxmysql/">MySQL</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--active" href="/docs/ox_lib/Client/Interface/context">Library</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--active" tabindex="0" href="/docs/ox_lib/Client/Interface/context">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-3 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist" tabindex="0" href="/docs/ox_lib/Client/Interface/context">Interface</a></div></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/cache">Cache</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/callback">Callbacks</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/disableControls">Disable Controls</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/misc">Misc</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/points">Points</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link menu__link--active" aria-current="page" tabindex="0" href="/docs/ox_lib/Client/streaming">Streaming</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/vehicleProperties">Vehicle Properties</a></li></ul></li><li class="theme-doc-sidebar-Line truncated
|
||||
<!-- -->Throws errors for invalid assets and returns true if the asset is loaded.</p><h3 class="anchor anchorWithStickyNavbar_mojV" id="librequestanimdict">lib.requestAnimDict<a class="hash-link" href="#librequestanimdict" title="Direct link to heading"></a></h3><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 comment" style="color:#999999">-- dict: string</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain"></span><span class="token comment" style="color:#999999">-- timeout: number [default: 100]</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain">lib</span><span class="token punctuation" style="color:#8dc891">.</span><span class="token function" style="color:#79b6f2">requestAnimDict</span><span class="token punctuation" style="color:#8dc891">(</span><span class="token plain">dict</span><span class="token punctuation" style="color:#8dc891">,</span><span class="token plain"> timeout</span><span class="token punctuation" style="color:#8dc891">)</span><br></span></code></pre><button type="button" aria-label="Copy code to clipboard" class="copyButton_wuS7 clean-btn">Copy</button></div></div><h3 class="anchor anchorWithStickyNavbar_mojV" id="librequestanimset">lib.requestAnimSet<a class="hash-link" href="#librequestanimset" title="Direct link to heading"></a></h3><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 comment" style="color:#999999">-- set: string</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain"></span><span class="token comment" style="color:#999999">-- timeout: number [default: 100]</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain">lib</span><span class="token punctuation" style="color:#8dc891">.</span><span class="token function" style="color:#79b6f2">requestAnimSet</span><span class="token punctuation" style="color:#8dc891">(</span><span class="token plain">set</span><span class="token punctuation" style="color:#8dc891">,</span><span class="token plain"> timeout</span><span class="token punctuation" style="color:#8dc891">)</span><br></span></code></pre><button type="button" aria-label="Copy code to clipboard" class="copyButton_wuS7 clean-btn">Copy</button></div></div><h3 class="anchor anchorWithStickyNavbar_mojV" id="librequestmodel">lib.requestModel<a class="hash-link" href="#librequestmodel" title="Direct link to heading"></a></h3><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 comment" style="color:#999999">-- model: string</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain"></span><span class="token comment" style="color:#999999">-- timeout: number [default: 100]</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain">lib</span><span class="token punctuation" style="color:#8dc891">.</span><span class="token function" style="color:#79b6f2">requestModel</span><span class="token punctuation" style="color:#8dc891">(</span><span class="token plain">model</span><span class="token punctuation" style="color:#8dc891">,</span><span class="token plain"> timeout</span><span class="token punctuation" style="color:#8dc891">)</span><br></span></code></pre><button type="button" aria-label="Copy code to clipboard" class="copyButton_wuS7 clean-btn">Copy</button></div></div><h3 class="anchor anchorWithStickyNavbar_mojV" id="librequeststreamedtexturedict">lib.requestStreamedTextureDict<a class="hash-link" href="#librequeststreamedtexturedict" title="Direct link to heading"></a></h3><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 comment" style="color:#999999">-- dict:Line truncated
|
||||
<script src="/assets/js/runtime~main.2c193115.js"></script>
|
||||
<script src="/assets/js/runtime~main.7cc9bd32.js"></script>
|
||||
<script src="/assets/js/main.682f9a1f.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -5,14 +5,14 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="generator" content="Docusaurus v2.0.0-beta.17">
|
||||
<title data-rh="true">Vehicle Properties | 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/Client/vehicleProperties"><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="Vehicle Properties | Overextended"><meta data-rh="true" name="description" content="Mostly follows the format used by ESX and QBCore, with extra data such as damaged/missing props."><meta data-rh="true" property="og:description" content="Mostly follows the format used by ESX and QBCore, with extra data such as damaged/missing props."><link data-rh="true" rel="icon" href="/img/ox.ico"><link data-rh="true" rel="canonical" href="https://overextended.github.io/docs/ox_lib/Client/vehicleProperties"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_lib/Client/vehicleProperties" hreflang="en"><link data-rh="true" rel="alternate" href="https://overextended.github.io/docs/ox_lib/Client/vehicleProperties" hreflang="x-default"><link rel="stylesheet" href="/assets/css/styles.ac5cd038.css">
|
||||
<link rel="preload" href="/assets/js/runtime~main.2c193115.js" as="script">
|
||||
<link rel="preload" href="/assets/js/runtime~main.7cc9bd32.js" as="script">
|
||||
<link rel="preload" href="/assets/js/main.682f9a1f.js" as="script">
|
||||
</head>
|
||||
<body class="navigation-with-keyboard">
|
||||
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"dark")}()</script><div id="__docusaurus">
|
||||
<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">Overextended</b></a><a href="https://www.github.com/overextended" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>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></span></a><a href="https://www.discord.gg/overextended" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>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></span></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></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div class="main-wrapper docs-wrapper docs-doc-page"><div class="docPage_P2Lg"><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_RiI4" type="button"></button><aside class="theme-doc-sidebar-container docSidebarContainer_rKC_"><div class="sidebar_CW9Y"><nav class="menu thin-scrollbar menu_SkdO"><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" href="/docs/oxmysql/">MySQL</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--active" href="/docs/ox_lib/Client/Interface/context">Library</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--active" tabindex="0" href="/docs/ox_lib/Client/Interface/context">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-3 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist" tabindex="0" href="/docs/ox_lib/Client/Interface/context">Interface</a></div></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/cache">Cache</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/callback">Callbacks</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/disableControls">Disable Controls</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/misc">Misc</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/points">Points</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/ox_lib/Client/streaming">Streaming</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-3 menu__list-item"><a class="menu__link menu__link--active" aria-current="page" tabindex="0" href="/docs/ox_lib/Client/vehicleProperties">Vehicle Properties</a></li></ul></li><li class="theme-doc-sidebar-Line truncated
|
||||
<a href="https://github.com/overextended/ox_lib/blob/master/resource/vehicleProperties/client.lua#L5" target="_blank" rel="noopener noreferrer">https://github.com/overextended/ox_lib/blob/master/resource/vehicleProperties/client.lua#L5</a></p><h3 class="anchor anchorWithStickyNavbar_mojV" id="libgetvehicleproperties">lib.getVehicleProperties<a class="hash-link" href="#libgetvehicleproperties" title="Direct link to heading"></a></h3><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 comment" style="color:#999999">-- vehicle: entity</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain">lib</span><span class="token punctuation" style="color:#8dc891">.</span><span class="token function" style="color:#79b6f2">getVehicleProperties</span><span class="token punctuation" style="color:#8dc891">(</span><span class="token plain">vehicle</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 class="token-line" style="color:#ffffff"><span class="token plain">lib</span><span class="token punctuation" style="color:#8dc891">.</span><span class="token function" style="color:#79b6f2">getVehicleProperties</span><span class="token punctuation" style="color:#8dc891">(</span><span class="token function" style="color:#79b6f2">GetVehiclePedIsUsing</span><span class="token punctuation" style="color:#8dc891">(</span><span class="token function" style="color:#79b6f2">PlayerPedId</span><span class="token punctuation" style="color:#8dc891">(</span><span class="token punctuation" style="color:#8dc891">)</span><span class="token punctuation" style="color:#8dc891">)</span><span class="token punctuation" style="color:#8dc891">)</span><br></span></code></pre><button type="button" aria-label="Copy code to clipboard" class="copyButton_wuS7 clean-btn">Copy</button></div></div><h3 class="anchor anchorWithStickyNavbar_mojV" id="libsetvehicleproperties">lib.setVehicleProperties<a class="hash-link" href="#libsetvehicleproperties" title="Direct link to heading"></a></h3><p>Requires the vehicle to belong to the client. <em>Do not use NetworkRequestControlOfEntity</em>.</p><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 comment" style="color:#999999">-- vehicle: entity</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain"></span><span class="token comment" style="color:#999999">-- props: table</span><span class="token plain"></span><br></span><span class="token-line" style="color:#ffffff"><span class="token plain">lib</span><span class="token punctuation" style="color:#8dc891">.</span><span class="token function" style="color:#79b6f2">setVehicleProperties</span><span class="token punctuation" style="color:#8dc891">(</span><span class="token plain">vehicle</span><span class="token punctuation" style="color:#8dc891">,</span><span class="token plain"> props</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 class="token-line" style="color:#ffffff"><span class="token plain"></span><span class="token function" style="color:#79b6f2">RegisterNetEvent</span><span class="token punctuation" style="color:#8dc891">(</span><span class="token string" style="color:#8dc891">'lualib:setVehicleProperties'</span><span class="token punctuation" style="color:#8dc891">,</span><span class="token plain"> </span><span class="token keyword" style="color:#c5a5c5">function</span><span class="token punctuation" style="color:#8dc891">(</span><span class="token plain">netid</span><span class="token punctuation" style="color:#8dc891">,</span><span class="token plain"> data</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"> lib</span><span class="token punctuation" style="color:#8dc891">.</span><span class="token function" style="color:#79b6f2">setVehicleProperties</span><span class="token punctuation" style="color:#8dc891">(</span><span class="token function" style="color:#79bLine truncated
|
||||
<script src="/assets/js/runtime~main.2c193115.js"></script>
|
||||
<script src="/assets/js/runtime~main.7cc9bd32.js"></script>
|
||||
<script src="/assets/js/main.682f9a1f.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user