mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 22:21:48 +00:00
deploy: c1d420aeaa
This commit is contained in:
1 parent
2cd9a45913
commit
3c8b9903b3
96 files changed
+398
-416
No files matched your search
@@ -1 +1 @@
|
||||
.container,.row .col{padding:0 var(--ifm-spacing-horizontal);width:100%}.row .col,img{max-width:100%}.markdown>h2,.markdown>h3,.markdown>h4,.markdown>h5,.markdown>h6{margin-bottom:calc(var(--ifm-heading-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown li,body{word-wrap:break-word}body,ol ol,ol ul,ul ol,ul ul{margin:0}pre,table{overflow:auto}blockquote,pre{margin:0 0 var(--ifm-spacing-vertical)}.breadcrumbs__link,.button{transition-timing-function:var(--ifm-transition-timing-default)}.button,.toggleButton_rCf9{-webkit-user-select:none;-ms-user-select:none}.button,code{vertical-align:middle}.button--outline.button--active,.button--outline:active,.button--outline:hover,:root{--ifm-button-color:var(--ifm-font-color-base-inverse)}.avatar__photo,.card,.text--truncate{overflow:hidden}.menu__link:hover,a{transition:color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.navbar--dark,:root{--ifm-navbar-link-hover-color:var(--ifm-color-primary)}.menu,.navbar-sidebar{overflow-x:hidden}:root,html[data-theme=dark]{--ifm-color-emphasis-500:var(--ifm-color-gray-500)}.admonition-icon svg,.alert__icon svg{fill:var(--ifm-alert-foreground-color)}.toggleButton_rCf9,html{-webkit-tap-highlight-color:transparent}*,.DocSearch-Container,.DocSearch-Container *{box-sizing:border-box}.DocSearch-Hit-content-wrapper,.navbar__title,.text--truncate{text-overflow:ellipsis;white-space:nowrap}.button,.dropdown__link,.navbar__title,.text--truncate{white-space:nowrap}:root{--ifm-color-scheme:light;--ifm-dark-value:10%;--ifm-darker-value:15%;--ifm-darkest-value:30%;--ifm-light-value:15%;--ifm-lighter-value:30%;--ifm-lightest-value:50%;--ifm-contrast-background-value:90%;--ifm-contrast-foreground-value:70%;--ifm-contrast-background-dark-value:70%;--ifm-contrast-foreground-dark-value:90%;--ifm-color-primary:#3578e5;--ifm-color-secondary:#ebedf0;--ifm-color-success:#00a400;--ifm-color-info:#54c7ec;--ifm-color-warning:#ffba00;--ifm-color-danger:#fa383e;--ifm-color-primary-dark:#306cce;--ifm-color-primary-darker:#2d66c3;--ifm-color-primary-darkest:#2554a0;--ifm-color-primary-light:#538ce9;--ifm-color-primary-lighter:#72a1ed;--ifm-color-primary-lightest:#9abcf2;--ifm-color-primary-contrast-background:#ebf2fc;--ifm-color-primary-contrast-foreground:#102445;--ifm-color-secondary-dark:#d4d5d8;--ifm-color-secondary-darker:#c8c9cc;--ifm-color-secondary-darkest:#a4a6a8;--ifm-color-secondary-light:#eef0f2;--ifm-color-secondary-lighter:#f1f2f5;--ifm-color-secondary-lightest:#f5f6f8;--ifm-color-secondary-contrast-background:#fdfdfe;--ifm-color-secondary-contrast-foreground:#474748;--ifm-color-success-dark:#009400;--ifm-color-success-darker:#008b00;--ifm-color-success-darkest:#007300;--ifm-color-success-light:#26b226;--ifm-color-success-lighter:#4dbf4d;--ifm-color-success-lightest:#80d280;--ifm-color-success-contrast-background:#e6f6e6;--ifm-color-success-contrast-foreground:#003100;--ifm-color-info-dark:#4cb3d4;--ifm-color-info-darker:#47a9c9;--ifm-color-info-darkest:#3b8ba5;--ifm-color-info-light:#6ecfef;--ifm-color-info-lighter:#87d8f2;--ifm-color-info-lightest:#aae3f6;--ifm-color-info-contrast-background:#eef9fd;--ifm-color-info-contrast-foreground:#193c47;--ifm-color-warning-dark:#e6a700;--ifm-color-warning-darker:#d99e00;--ifm-color-warning-darkest:#b38200;--ifm-color-warning-light:#ffc426;--ifm-color-warning-lighter:#ffcf4d;--ifm-color-warning-lightest:#ffdd80;--ifm-color-warning-contrast-background:#fff8e6;--ifm-color-warning-contrast-foreground:#4d3800;--ifm-color-danger-dark:#e13238;--ifm-color-danger-darker:#d53035;--ifm-color-danger-darkest:#af272b;--ifm-color-danger-light:#fb565b;--ifm-color-danger-lighter:#fb7478;--ifm-color-danger-lightest:#fd9c9f;--ifm-color-danger-contrast-background:#ffebec;--ifm-color-danger-contrast-foreground:#4b1113;--ifm-color-white:#fff;--ifm-color-black:#000;--ifm-color-gray-0:var(--ifm-color-white);--ifm-color-gray-100:#f5f6f7;--ifm-color-gray-200:#ebedf0;--ifm-color-gray-300:#dadde1;--ifm-color-gray-400:#ccd0d5;--ifm-color-gray-500:#bec3c9;--ifm-color-gray-600:#8d949e;--ifm-color-gray-700:#606770;--ifm-color-gray-800:#444950;--ifm-color-gray-900:#1c1e21;--ifm-color-gray-1000:var(--ifm-color-black);--ifm-color-emphasis-0:var(--ifm-color-gray-0);--ifm-color-emphasis-100:var(--ifm-color-gray-100);--ifm-color-emphasis-200:var(--ifm-color-gray-200);--ifm-color-emphasis-300:var(--ifm-color-gray-300);--ifm-color-emphasis-400:var(--ifm-color-gray-400);--ifm-color-emphasis-600:var(--ifm-color-gray-600);--ifm-color-emphasis-700:var(--ifm-color-gray-700);--ifm-color-emphasis-800:var(--ifm-color-gray-800);--ifm-color-emphasis-900:var(--ifm-color-gray-900);--ifm-color-emphasis-1000:var(--ifm-color-gray-1000);--ifm-color-content:var(--ifm-color-emphasis-900);--ifm-color-content-inverse:var(--ifm-color-emphasis-0);--ifm-color-content-secondary:#525860;--ifm-background-color:transparent;--ifm-background-surface-color:var(--ifm-color-content-inverse);--ifm-global-border-width:1px;--ifm-global-radius:0.4rem;--ifm-Line truncated
|
||||
.container,.row .col{padding:0 var(--ifm-spacing-horizontal);width:100%}.row .col,img{max-width:100%}.markdown>h2,.markdown>h3,.markdown>h4,.markdown>h5,.markdown>h6{margin-bottom:calc(var(--ifm-heading-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown li,body{word-wrap:break-word}body,ol ol,ol ul,ul ol,ul ul{margin:0}pre,table{overflow:auto}blockquote,pre{margin:0 0 var(--ifm-spacing-vertical)}.breadcrumbs__link,.button{transition-timing-function:var(--ifm-transition-timing-default)}.button,.toggleButton_rCf9{-webkit-user-select:none;-ms-user-select:none}.button,code{vertical-align:middle}.button--outline.button--active,.button--outline:active,.button--outline:hover,:root{--ifm-button-color:var(--ifm-font-color-base-inverse)}.avatar__photo,.card,.text--truncate{overflow:hidden}.menu__link:hover,a{transition:color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.navbar--dark,:root{--ifm-navbar-link-hover-color:var(--ifm-color-primary)}.menu,.navbar-sidebar{overflow-x:hidden}:root,html[data-theme=dark]{--ifm-color-emphasis-500:var(--ifm-color-gray-500)}.admonition-icon svg,.alert__icon svg{fill:var(--ifm-alert-foreground-color)}.toggleButton_rCf9,html{-webkit-tap-highlight-color:transparent}*,.DocSearch-Container,.DocSearch-Container *{box-sizing:border-box}.DocSearch-Hit-content-wrapper,.navbar__title,.text--truncate{text-overflow:ellipsis;white-space:nowrap}.button,.dropdown__link,.navbar__title,.text--truncate{white-space:nowrap}:root{--ifm-color-scheme:light;--ifm-dark-value:10%;--ifm-darker-value:15%;--ifm-darkest-value:30%;--ifm-light-value:15%;--ifm-lighter-value:30%;--ifm-lightest-value:50%;--ifm-contrast-background-value:90%;--ifm-contrast-foreground-value:70%;--ifm-contrast-background-dark-value:70%;--ifm-contrast-foreground-dark-value:90%;--ifm-color-primary:#3578e5;--ifm-color-secondary:#ebedf0;--ifm-color-success:#00a400;--ifm-color-info:#54c7ec;--ifm-color-warning:#ffba00;--ifm-color-danger:#fa383e;--ifm-color-primary-dark:#306cce;--ifm-color-primary-darker:#2d66c3;--ifm-color-primary-darkest:#2554a0;--ifm-color-primary-light:#538ce9;--ifm-color-primary-lighter:#72a1ed;--ifm-color-primary-lightest:#9abcf2;--ifm-color-primary-contrast-background:#ebf2fc;--ifm-color-primary-contrast-foreground:#102445;--ifm-color-secondary-dark:#d4d5d8;--ifm-color-secondary-darker:#c8c9cc;--ifm-color-secondary-darkest:#a4a6a8;--ifm-color-secondary-light:#eef0f2;--ifm-color-secondary-lighter:#f1f2f5;--ifm-color-secondary-lightest:#f5f6f8;--ifm-color-secondary-contrast-background:#fdfdfe;--ifm-color-secondary-contrast-foreground:#474748;--ifm-color-success-dark:#009400;--ifm-color-success-darker:#008b00;--ifm-color-success-darkest:#007300;--ifm-color-success-light:#26b226;--ifm-color-success-lighter:#4dbf4d;--ifm-color-success-lightest:#80d280;--ifm-color-success-contrast-background:#e6f6e6;--ifm-color-success-contrast-foreground:#003100;--ifm-color-info-dark:#4cb3d4;--ifm-color-info-darker:#47a9c9;--ifm-color-info-darkest:#3b8ba5;--ifm-color-info-light:#6ecfef;--ifm-color-info-lighter:#87d8f2;--ifm-color-info-lightest:#aae3f6;--ifm-color-info-contrast-background:#eef9fd;--ifm-color-info-contrast-foreground:#193c47;--ifm-color-warning-dark:#e6a700;--ifm-color-warning-darker:#d99e00;--ifm-color-warning-darkest:#b38200;--ifm-color-warning-light:#ffc426;--ifm-color-warning-lighter:#ffcf4d;--ifm-color-warning-lightest:#ffdd80;--ifm-color-warning-contrast-background:#fff8e6;--ifm-color-warning-contrast-foreground:#4d3800;--ifm-color-danger-dark:#e13238;--ifm-color-danger-darker:#d53035;--ifm-color-danger-darkest:#af272b;--ifm-color-danger-light:#fb565b;--ifm-color-danger-lighter:#fb7478;--ifm-color-danger-lightest:#fd9c9f;--ifm-color-danger-contrast-background:#ffebec;--ifm-color-danger-contrast-foreground:#4b1113;--ifm-color-white:#fff;--ifm-color-black:#000;--ifm-color-gray-0:var(--ifm-color-white);--ifm-color-gray-100:#f5f6f7;--ifm-color-gray-200:#ebedf0;--ifm-color-gray-300:#dadde1;--ifm-color-gray-400:#ccd0d5;--ifm-color-gray-500:#bec3c9;--ifm-color-gray-600:#8d949e;--ifm-color-gray-700:#606770;--ifm-color-gray-800:#444950;--ifm-color-gray-900:#1c1e21;--ifm-color-gray-1000:var(--ifm-color-black);--ifm-color-emphasis-0:var(--ifm-color-gray-0);--ifm-color-emphasis-100:var(--ifm-color-gray-100);--ifm-color-emphasis-200:var(--ifm-color-gray-200);--ifm-color-emphasis-300:var(--ifm-color-gray-300);--ifm-color-emphasis-400:var(--ifm-color-gray-400);--ifm-color-emphasis-600:var(--ifm-color-gray-600);--ifm-color-emphasis-700:var(--ifm-color-gray-700);--ifm-color-emphasis-800:var(--ifm-color-gray-800);--ifm-color-emphasis-900:var(--ifm-color-gray-900);--ifm-color-emphasis-1000:var(--ifm-color-gray-1000);--ifm-color-content:var(--ifm-color-emphasis-900);--ifm-color-content-inverse:var(--ifm-color-emphasis-0);--ifm-color-content-secondary:#525860;--ifm-background-color:transparent;--ifm-background-surface-color:var(--ifm-color-content-inverse);--ifm-global-border-width:1px;--ifm-global-radius:0.4rem;--ifm-Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[219],{3905:function(e,n,t){t.d(n,{Zo:function(){return p},kt:function(){return f}});var r=t(7294);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach((function(n){o(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function c(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var u=r.createContext({}),s=function(e){var n=r.useContext(u),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},p=function(e){var n=s(e.components);return r.createElement(u.Provider,{value:n},e.children)},l={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},m=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,i=e.originalType,u=e.parentName,p=c(e,["components","mdxType","originalType","parentName"]),m=s(t),f=o,v=m["".concat(u,".").concat(f)]||m[f]||l[f]||i;return t?r.createElement(v,a(a({ref:n},p),{},{components:t})):r.createElement(v,a({ref:n},p))}));function f(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var i=t.length,a=new Array(i);a[0]=m;var c={};for(var u in n)hasOwnProperty.call(n,u)&&(c[u]=n[u]);c.originalType=e,c.mdxType="string"==typeof e?e:o,a[1]=c;for(var s=2;s<i;s++)a[s]=t[s];return r.createElement.apply(null,a)}return r.createElement.apply(null,t)}m.displayName="MDXCreateElement"},1795:function(e,n,t){t.r(n),t.d(n,{frontMatter:function(){return c},contentTitle:function(){return u},metadata:function(){return s},assets:function(){return p},toc:function(){return l},default:function(){return f}});var r=t(7462),o=t(3366),i=(t(7294),t(3905)),a=["components"],c={},u=void 0,s={unversionedId:"ox_inventory/Functions/Server/Inventory/CustomDrop",id:"ox_inventory/Functions/Server/Inventory/CustomDrop",title:"CustomDrop",description:"Drops can be created from other resources, containing a variety of items and utilising a custom label (instead of 'Drop 32648').",source:"@site/docs/ox_inventory/Functions/Server/Inventory/CustomDrop.md",sourceDirName:"ox_inventory/Functions/Server/Inventory",slug:"/ox_inventory/Functions/Server/Inventory/CustomDrop",permalink:"/docs/ox_inventory/Functions/Server/Inventory/CustomDrop",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_inventory/Functions/Server/Inventory/CustomDrop.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"ConvertItems",permalink:"/docs/ox_inventory/Functions/Server/Inventory/ConvertItems"},next:{title:"GetCurrentWeapon",permalink:"/docs/ox_inventory/Functions/Server/Inventory/GetCurrentWeapon"}},p={},l=[],m={toc:l};function f(e){var n=e.components,t=(0,o.Z)(e,a);return(0,i.kt)("wrapper",(0,r.Z)({},m,t,{components:n,mdxType:"MDXLayout"}),(0,i.kt)("p",null,"Drops can be created from other resources, containing a variety of items and utilising a custom label (instead of 'Drop 32648')."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-lua"},"-- prefix: string\n-- items: table\n -- name: string\n -- count: number\n -- metadata: table (optional)\n-- coords: vector3\n-- slots: number (optional)\n-- maxWeight: number (optional)\n-- instance: string | number (optional)\nexports.ox_inventory:CustomDrop(prefix, items, coords, slots, maxWeight, instance)\n")),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-lua"},"exports.ox_inventory:CustomDrop('Carcass', {\n {'meat', 5, { grade = 2, type = 'deer' }},\n {'hide', 5, { grade = 2, type = 'deer' }}\n}, coords)\n")))}f.isMDXComponent=!0}}]);
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[219],{3905:function(e,n,t){t.d(n,{Zo:function(){return p},kt:function(){return m}});var r=t(7294);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function c(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach((function(n){o(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function a(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var u=r.createContext({}),s=function(e){var n=r.useContext(u),t=n;return e&&(t="function"==typeof e?e(n):c(c({},n),e)),t},p=function(e){var n=s(e.components);return r.createElement(u.Provider,{value:n},e.children)},l={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},f=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,i=e.originalType,u=e.parentName,p=a(e,["components","mdxType","originalType","parentName"]),f=s(t),m=o,v=f["".concat(u,".").concat(m)]||f[m]||l[m]||i;return t?r.createElement(v,c(c({ref:n},p),{},{components:t})):r.createElement(v,c({ref:n},p))}));function m(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var i=t.length,c=new Array(i);c[0]=f;var a={};for(var u in n)hasOwnProperty.call(n,u)&&(a[u]=n[u]);a.originalType=e,a.mdxType="string"==typeof e?e:o,c[1]=a;for(var s=2;s<i;s++)c[s]=t[s];return r.createElement.apply(null,c)}return r.createElement.apply(null,t)}f.displayName="MDXCreateElement"},1795:function(e,n,t){t.r(n),t.d(n,{frontMatter:function(){return a},contentTitle:function(){return u},metadata:function(){return s},assets:function(){return p},toc:function(){return l},default:function(){return m}});var r=t(7462),o=t(3366),i=(t(7294),t(3905)),c=["components"],a={},u=void 0,s={unversionedId:"ox_inventory/Functions/Server/Inventory/CustomDrop",id:"ox_inventory/Functions/Server/Inventory/CustomDrop",title:"CustomDrop",description:"Creates an inventory drop at the specified coords.",source:"@site/docs/ox_inventory/Functions/Server/Inventory/CustomDrop.md",sourceDirName:"ox_inventory/Functions/Server/Inventory",slug:"/ox_inventory/Functions/Server/Inventory/CustomDrop",permalink:"/docs/ox_inventory/Functions/Server/Inventory/CustomDrop",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_inventory/Functions/Server/Inventory/CustomDrop.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"ConvertItems",permalink:"/docs/ox_inventory/Functions/Server/Inventory/ConvertItems"},next:{title:"GetCurrentWeapon",permalink:"/docs/ox_inventory/Functions/Server/Inventory/GetCurrentWeapon"}},p={},l=[],f={toc:l};function m(e){var n=e.components,t=(0,o.Z)(e,c);return(0,i.kt)("wrapper",(0,r.Z)({},f,t,{components:n,mdxType:"MDXLayout"}),(0,i.kt)("p",null,"Creates an inventory drop at the specified coords."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-lua"},"-- prefix: string\n-- items: table\n-- coords: vector3\n-- slots: number\n-- maxWeight: number\n-- instance: ? (optional)\nexports.ox_inventory:CustomDrop(prefix, item, coords, slots, maxWeight, instance)\n")),(0,i.kt)("p",null,(0,i.kt)("strong",{parentName:"p"},"Example:"),"\nYou can find and example showcasing this function into furher detail ",(0,i.kt)("a",{parentName:"p",href:"/docs/ox_inventory/Guides/customDrop"},"here"),"."))}m.isMDXComponent=!0}}]);
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2446],{1280:function(e,t,n){var i=n(7294);t.Z=function(e){var t={fontSize:"1.7rem",paddingRight:"left"===e.side&&"0.6rem",paddingLeft:"right"===e.side&&"0.6rem",verticalAlign:"center",display:"flex"};return i.createElement("div",{style:Object.assign({width:"fit-content",height:"3rem",padding:"0.8rem",borderRadius:"0.2rem",verticalAlign:"baseline",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:"white"},e.style),className:"icon-button"},"left"===e.side&&i.createElement("div",{style:t},e.icon),i.createElement("div",null,e.children),"right"===e.side&&i.createElement("div",{style:t},e.icon))}},1480:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return d},contentTitle:function(){return u},metadata:function(){return m},assets:function(){return c},toc:function(){return v},default:function(){return p}});var i=n(7462),o=n(3366),a=(n(7294),n(3905)),r=n(1280),l=n(9583),s=["components"],d={title:"Building inventory UI"},u=void 0,m={unversionedId:"ox_inventory/Guides/inventory_ui",id:"ox_inventory/Guides/inventory_ui",title:"Building inventory UI",description:"Requirements to build:",source:"@site/docs/ox_inventory/Guides/inventory_ui.md",sourceDirName:"ox_inventory/Guides",slug:"/ox_inventory/Guides/inventory_ui",permalink:"/docs/ox_inventory/Guides/inventory_ui",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_inventory/Guides/inventory_ui.md",tags:[],version:"current",frontMatter:{title:"Building inventory UI"},sidebar:"docs",previous:{title:"Creating custom drops",permalink:"/docs/ox_inventory/Guides/customDrop"},next:{title:"Creating custom stashes",permalink:"/docs/ox_inventory/Guides/stashes"}},c={},v=[{value:"Requirements to build:",id:"requirements-to-build",level:2},{value:"Installing Node.js:",id:"installing-nodejs",level:2},{value:"Installing Yarn:",id:"installing-yarn",level:2},{value:"Building the UI:",id:"building-the-ui",level:2}],h={toc:v};function p(e){var t=e.components,n=(0,o.Z)(e,s);return(0,a.kt)("wrapper",(0,i.Z)({},h,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h2",{id:"requirements-to-build"},"Requirements to build:"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"Node.js"),(0,a.kt)("li",{parentName:"ul"},"Yarn")),(0,a.kt)("h2",{id:"installing-nodejs"},"Installing Node.js:"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"Download the LTS version of Node.js."),(0,a.kt)("li",{parentName:"ul"},"Go through the install and make sure you install all of the features."),(0,a.kt)("li",{parentName:"ul"},"Run ",(0,a.kt)("inlineCode",{parentName:"li"},"node --version")," in cmd and make sure that it gives you the version number. If it doesn't then you didn't install it correctly.")),(0,a.kt)("div",{style:{width:"fit-content"}},(0,a.kt)("a",{href:"https://www.nodejs.org"},(0,a.kt)(r.Z,{side:"left",icon:(0,a.kt)(l.jPo,{mdxType:"FaNodeJs"}),mdxType:"IconButton"},"Download"))),(0,a.kt)("h2",{id:"installing-yarn"},"Installing Yarn:"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"Now that you've installed Node.js you can install Yarn by running ",(0,a.kt)("inlineCode",{parentName:"li"},"npm install --global yarn")," in cmd.")),(0,a.kt)("h2",{id:"building-the-ui"},"Building the UI:"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"cd into the web directory of ox_inventory"),(0,a.kt)("li",{parentName:"ul"},"In your cmd type ",(0,a.kt)("inlineCode",{parentName:"li"},"yarn")," and in will start downloading the node modules."),(0,a.kt)("li",{parentName:"ul"},"After it's done downloading node modules you can run ",(0,a.kt)("inlineCode",{parentName:"li"},"yarn build")," to build the UI.")),(0,a.kt)("div",{className:"admonition admonition-info alert alert--info"},(0,a.kt)("div",{parentName:"div",className:"admonition-heading"},(0,a.kt)("h5",{parentName:"div"},(0,a.kt)("span",{parentName:"h5",className:"admonition-icon"},(0,a.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16"},(0,a.kt)("path",{parentName:"svg",fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"}))),"Hot reloads")),(0,a.kt)("div",{parentName:"div",className:"admonition-content"},(0,a.kt)("p",{parentName:"div"},"When working in the browser you can run ",(0,a.kt)("inlineCode",{parentName:"p"},"yarn start"),", which supports hot reloads meaning that\nyou will see your changes after saving your file."),(0,a.kt)("p",{parentName:"div"},"If you want to work in game you can run ",(0,a.kt)("inlineCode",{parentName:"p"},"yarn start:game")," which writes changes to disk, so\nthe only thing you have to do is restart the resource for it take affect."))))}p.isMDXComponent=!0}}]);
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2446],{1280:function(e,t,n){var i=n(7294);t.Z=function(e){var t={fontSize:"1.7rem",paddingRight:"left"===e.side&&"0.6rem",paddingLeft:"right"===e.side&&"0.6rem",verticalAlign:"center",display:"flex"};return i.createElement("div",{style:Object.assign({width:"fit-content",height:"3rem",padding:"0.8rem",borderRadius:"0.2rem",verticalAlign:"baseline",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:"white"},e.style),className:"icon-button"},"left"===e.side&&i.createElement("div",{style:t},e.icon),i.createElement("div",null,e.children),"right"===e.side&&i.createElement("div",{style:t},e.icon))}},1480:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return d},contentTitle:function(){return u},metadata:function(){return m},assets:function(){return c},toc:function(){return v},default:function(){return p}});var i=n(7462),o=n(3366),a=(n(7294),n(3905)),r=n(1280),l=n(9583),s=["components"],d={title:"Building inventory UI"},u=void 0,m={unversionedId:"ox_inventory/Guides/inventory_ui",id:"ox_inventory/Guides/inventory_ui",title:"Building inventory UI",description:"Requirements to build:",source:"@site/docs/ox_inventory/Guides/inventory_ui.md",sourceDirName:"ox_inventory/Guides",slug:"/ox_inventory/Guides/inventory_ui",permalink:"/docs/ox_inventory/Guides/inventory_ui",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_inventory/Guides/inventory_ui.md",tags:[],version:"current",frontMatter:{title:"Building inventory UI"},sidebar:"docs",previous:{title:"Creating items",permalink:"/docs/ox_inventory/Guides/creatingItems"},next:{title:"Creating custom stashes",permalink:"/docs/ox_inventory/Guides/stashes"}},c={},v=[{value:"Requirements to build:",id:"requirements-to-build",level:2},{value:"Installing Node.js:",id:"installing-nodejs",level:2},{value:"Installing Yarn:",id:"installing-yarn",level:2},{value:"Building the UI:",id:"building-the-ui",level:2}],h={toc:v};function p(e){var t=e.components,n=(0,o.Z)(e,s);return(0,a.kt)("wrapper",(0,i.Z)({},h,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h2",{id:"requirements-to-build"},"Requirements to build:"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"Node.js"),(0,a.kt)("li",{parentName:"ul"},"Yarn")),(0,a.kt)("h2",{id:"installing-nodejs"},"Installing Node.js:"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"Download the LTS version of Node.js."),(0,a.kt)("li",{parentName:"ul"},"Go through the install and make sure you install all of the features."),(0,a.kt)("li",{parentName:"ul"},"Run ",(0,a.kt)("inlineCode",{parentName:"li"},"node --version")," in cmd and make sure that it gives you the version number. If it doesn't then you didn't install it correctly.")),(0,a.kt)("div",{style:{width:"fit-content"}},(0,a.kt)("a",{href:"https://www.nodejs.org"},(0,a.kt)(r.Z,{side:"left",icon:(0,a.kt)(l.jPo,{mdxType:"FaNodeJs"}),mdxType:"IconButton"},"Download"))),(0,a.kt)("h2",{id:"installing-yarn"},"Installing Yarn:"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"Now that you've installed Node.js you can install Yarn by running ",(0,a.kt)("inlineCode",{parentName:"li"},"npm install --global yarn")," in cmd.")),(0,a.kt)("h2",{id:"building-the-ui"},"Building the UI:"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"cd into the web directory of ox_inventory"),(0,a.kt)("li",{parentName:"ul"},"In your cmd type ",(0,a.kt)("inlineCode",{parentName:"li"},"yarn")," and in will start downloading the node modules."),(0,a.kt)("li",{parentName:"ul"},"After it's done downloading node modules you can run ",(0,a.kt)("inlineCode",{parentName:"li"},"yarn build")," to build the UI.")),(0,a.kt)("div",{className:"admonition admonition-info alert alert--info"},(0,a.kt)("div",{parentName:"div",className:"admonition-heading"},(0,a.kt)("h5",{parentName:"div"},(0,a.kt)("span",{parentName:"h5",className:"admonition-icon"},(0,a.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16"},(0,a.kt)("path",{parentName:"svg",fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"}))),"Hot reloads")),(0,a.kt)("div",{parentName:"div",className:"admonition-content"},(0,a.kt)("p",{parentName:"div"},"When working in the browser you can run ",(0,a.kt)("inlineCode",{parentName:"p"},"yarn start"),", which supports hot reloads meaning that\nyou will see your changes after saving your file."),(0,a.kt)("p",{parentName:"div"},"If you want to work in game you can run ",(0,a.kt)("inlineCode",{parentName:"p"},"yarn start:game")," which writes changes to disk, so\nthe only thing you have to do is restart the resource for it take affect."))))}p.isMDXComponent=!0}}]);
|
||||
@@ -1 +1 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[763],{3905:function(e,t,n){n.d(t,{Zo:function(){return s},kt:function(){return v}});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=r.createContext({}),l=function(e){var t=r.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},s=function(e){var t=l(e.components);return r.createElement(u.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},d=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,a=e.originalType,u=e.parentName,s=c(e,["components","mdxType","originalType","parentName"]),d=l(n),v=o,y=d["".concat(u,".").concat(v)]||d[v]||p[v]||a;return n?r.createElement(y,i(i({ref:t},s),{},{components:n})):r.createElement(y,i({ref:t},s))}));function v(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=n.length,i=new Array(a);i[0]=d;var c={};for(var u in t)hasOwnProperty.call(t,u)&&(c[u]=t[u]);c.originalType=e,c.mdxType="string"==typeof e?e:o,i[1]=c;for(var l=2;l<a;l++)i[l]=n[l];return r.createElement.apply(null,i)}return r.createElement.apply(null,n)}d.displayName="MDXCreateElement"},459:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return c},contentTitle:function(){return u},metadata:function(){return l},assets:function(){return s},toc:function(){return p},default:function(){return v}});var r=n(7462),o=n(3366),a=(n(7294),n(3905)),i=["components"],c={},u=void 0,l={unversionedId:"ox_inventory/Functions/Server/Inventory/SetMetadata",id:"ox_inventory/Functions/Server/Inventory/SetMetadata",title:"SetMetadata",description:"Sets metadata on the specified slot.",source:"@site/docs/ox_inventory/Functions/Server/Inventory/SetMetadata.md",sourceDirName:"ox_inventory/Functions/Server/Inventory",slug:"/ox_inventory/Functions/Server/Inventory/SetMetadata",permalink:"/docs/ox_inventory/Functions/Server/Inventory/SetMetadata",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_inventory/Functions/Server/Inventory/SetMetadata.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"SetDurability",permalink:"/docs/ox_inventory/Functions/Server/Inventory/SetDurability"},next:{title:"SwapSlots",permalink:"/docs/ox_inventory/Functions/Server/Inventory/SwapSlots"}},s={},p=[],d={toc:p};function v(e){var t=e.components,n=(0,o.Z)(e,i);return(0,a.kt)("wrapper",(0,r.Z)({},d,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("p",null,"Sets metadata on the specified slot."),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-lua"},"-- inv: string or number\n-- slot: number\n-- metadata: table\nox_inventory:SetMetadata(inv, slot, metadata)\n")),(0,a.kt)("p",null,(0,a.kt)("strong",{parentName:"p"},"Example:")),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-lua"},"local ox_inventory = exports.ox_inventory\n\nlocal water = ox_inventory:Search(source, 1, 'water')\nfor k, v in pairs(water) do\n print('\\n______________'..'\\n- index '..k)\n print(v.name, 'slot: '..v.slot, 'metadata: '..json.encode(v.metadata))\n water = v\nend\nwater.metadata.type = 'clean'\nox_inventory:SetMetadata(source, water.slot, water.metadata)\nprint(('modified %sx water in slot %s with new metadata'):format(water.count, water.slot))\n")))}v.isMDXComponent=!0}}]);
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[763],{3905:function(e,t,n){n.d(t,{Zo:function(){return s},kt:function(){return v}});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=r.createContext({}),l=function(e){var t=r.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},s=function(e){var t=l(e.components);return r.createElement(u.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},d=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,a=e.originalType,u=e.parentName,s=c(e,["components","mdxType","originalType","parentName"]),d=l(n),v=o,y=d["".concat(u,".").concat(v)]||d[v]||p[v]||a;return n?r.createElement(y,i(i({ref:t},s),{},{components:n})):r.createElement(y,i({ref:t},s))}));function v(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=n.length,i=new Array(a);i[0]=d;var c={};for(var u in t)hasOwnProperty.call(t,u)&&(c[u]=t[u]);c.originalType=e,c.mdxType="string"==typeof e?e:o,i[1]=c;for(var l=2;l<a;l++)i[l]=n[l];return r.createElement.apply(null,i)}return r.createElement.apply(null,n)}d.displayName="MDXCreateElement"},459:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return c},contentTitle:function(){return u},metadata:function(){return l},assets:function(){return s},toc:function(){return p},default:function(){return v}});var r=n(7462),o=n(3366),a=(n(7294),n(3905)),i=["components"],c={},u=void 0,l={unversionedId:"ox_inventory/Functions/Server/Inventory/SetMetadata",id:"ox_inventory/Functions/Server/Inventory/SetMetadata",title:"SetMetadata",description:"Sets metadata on the specified slot.",source:"@site/docs/ox_inventory/Functions/Server/Inventory/SetMetadata.md",sourceDirName:"ox_inventory/Functions/Server/Inventory",slug:"/ox_inventory/Functions/Server/Inventory/SetMetadata",permalink:"/docs/ox_inventory/Functions/Server/Inventory/SetMetadata",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_inventory/Functions/Server/Inventory/SetMetadata.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"SetDurability",permalink:"/docs/ox_inventory/Functions/Server/Inventory/SetDurability"},next:{title:"SwapSlots",permalink:"/docs/ox_inventory/Functions/Server/Inventory/SwapSlots"}},s={},p=[],d={toc:p};function v(e){var t=e.components,n=(0,o.Z)(e,i);return(0,a.kt)("wrapper",(0,r.Z)({},d,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("p",null,"Sets metadata on the specified slot."),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-lua"},"-- inv: string or number\n-- slot: number\n-- metadata: table\nox_inventory:SetMetadata(inv, slot, metadata)\n")),(0,a.kt)("p",null,(0,a.kt)("strong",{parentName:"p"},"Example:")),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-lua"},"local ox_inventory = exports.ox_inventory\n\nlocal water = ox_inventory:Search(source, 1, 'water')\nfor k, v in pairs(water) do\n print('\\n______________'..'\\n- index '..k)\n print(v.name, 'slot: '..v.slot, 'metadata: '..json.encode(v.metadata))\n water = v\n break\nend\nwater.metadata.type = 'clean'\nox_inventory:SetMetadata(source, water.slot, water.metadata)\nprint(('modified %sx water in slot %s with new metadata'):format(water.count, water.slot))\n")))}v.isMDXComponent=!0}}]);
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[53],{1109:function(e){e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"docs":[{"type":"link","label":"Documentation","href":"/docs/","docId":"index"},{"type":"category","label":"MySQL","items":[{"type":"category","label":"Getting Started","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Benchmark","href":"/docs/oxmysql/Getting Started/benchmark","docId":"oxmysql/Getting Started/benchmark"},{"type":"link","label":"Common Issues","href":"/docs/oxmysql/Getting Started/issues","docId":"oxmysql/Getting Started/issues"},{"type":"link","label":"Placeholders","href":"/docs/oxmysql/Getting Started/placeholders","docId":"oxmysql/Getting Started/placeholders"}],"href":"/docs/oxmysql/"},{"type":"category","label":"Usage","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Insert","href":"/docs/oxmysql/Usage/insert","docId":"oxmysql/Usage/insert"},{"type":"link","label":"Prepare","href":"/docs/oxmysql/Usage/prepare","docId":"oxmysql/Usage/prepare"},{"type":"link","label":"Query","href":"/docs/oxmysql/Usage/query","docId":"oxmysql/Usage/query"},{"type":"link","label":"Scalar","href":"/docs/oxmysql/Usage/scalar","docId":"oxmysql/Usage/scalar"},{"type":"link","label":"Single","href":"/docs/oxmysql/Usage/single","docId":"oxmysql/Usage/single"},{"type":"link","label":"Transaction","href":"/docs/oxmysql/Usage/transaction","docId":"oxmysql/Usage/transaction"},{"type":"link","label":"Update","href":"/docs/oxmysql/Usage/update","docId":"oxmysql/Usage/update"}],"href":"/docs/oxmysql/Usage/"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Library","items":[{"type":"category","label":"ACL","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Server","href":"/docs/ox_lib/ACL/Server","docId":"ox_lib/ACL/Server"}]},{"type":"category","label":"AddCommand","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Server","href":"/docs/ox_lib/AddCommand/Server","docId":"ox_lib/AddCommand/Server"}]},{"type":"category","label":"Cache","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Client","href":"/docs/ox_lib/Cache/Client","docId":"ox_lib/Cache/Client"}]},{"type":"category","label":"Callback","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Client","href":"/docs/ox_lib/Callback/Client","docId":"ox_lib/Callback/Client"},{"type":"link","label":"Server","href":"/docs/ox_lib/Callback/Server","docId":"ox_lib/Callback/Server"}]},{"type":"category","label":"DisableControls","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Client","href":"/docs/ox_lib/DisableControls/Client","docId":"ox_lib/DisableControls/Client"}]},{"type":"category","label":"Interface","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"Client","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Clipboard","href":"/docs/ox_lib/Interface/Client/clipboard","docId":"ox_lib/Interface/Client/clipboard"},{"type":"link","label":"Context Menu","href":"/docs/ox_lib/Interface/Client/context","docId":"ox_lib/Interface/Client/context"},{"type":"link","label":"Input Dialog","href":"/docs/ox_lib/Interface/Client/input","docId":"ox_lib/Interface/Client/input"},{"type":"link","label":"Notifications","href":"/docs/ox_lib/Interface/Client/notify","docId":"ox_lib/Interface/Client/notify"},{"type":"link","label":"Progress","href":"/docs/ox_lib/Interface/Client/progress","docId":"ox_lib/Interface/Client/progress"},{"type":"link","label":"TextUI","href":"/docs/ox_lib/Interface/Client/textui","docId":"ox_lib/Interface/Client/textui"}]}]},{"type":"category","label":"Locale","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Shared","href":"/docs/ox_lib/Locale/Shared","docId":"ox_lib/Locale/Shared"}]},{"type":"category","label":"Logger","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Server","href":"/docs/ox_lib/Logger/Server","docId":"ox_lib/Logger/Server"}]},{"type":"category","label":"Points","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Points","href":"/docs/ox_lib/Points/Client","docId":"ox_lib/Points/Client"}]},{"type":"category","label":"Streaming","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Client","href":"/docs/ox_lib/Streaming/Client","docId":"ox_lib/Streaming/Client"}]},{"type":"category","label":"VehicleProperties","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Client","href":"/docs/ox_lib/VehicleProperties/Client","docId":"ox_lib/VehicleProperties/Client"}]},{"type":"category","label":"Version","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Server","href":"/docs/ox_lib/Version/Server","docId":"ox_lib/Version/Server"},{"type":"link","label":"Shared","href":"/docs/ox_lib/Version/Shared"Line truncated
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[53],{1109:function(e){e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"docs":[{"type":"link","label":"Documentation","href":"/docs/","docId":"index"},{"type":"category","label":"MySQL","items":[{"type":"category","label":"Getting Started","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Benchmark","href":"/docs/oxmysql/Getting Started/benchmark","docId":"oxmysql/Getting Started/benchmark"},{"type":"link","label":"Common Issues","href":"/docs/oxmysql/Getting Started/issues","docId":"oxmysql/Getting Started/issues"},{"type":"link","label":"Placeholders","href":"/docs/oxmysql/Getting Started/placeholders","docId":"oxmysql/Getting Started/placeholders"}],"href":"/docs/oxmysql/"},{"type":"category","label":"Usage","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Insert","href":"/docs/oxmysql/Usage/insert","docId":"oxmysql/Usage/insert"},{"type":"link","label":"Prepare","href":"/docs/oxmysql/Usage/prepare","docId":"oxmysql/Usage/prepare"},{"type":"link","label":"Query","href":"/docs/oxmysql/Usage/query","docId":"oxmysql/Usage/query"},{"type":"link","label":"Scalar","href":"/docs/oxmysql/Usage/scalar","docId":"oxmysql/Usage/scalar"},{"type":"link","label":"Single","href":"/docs/oxmysql/Usage/single","docId":"oxmysql/Usage/single"},{"type":"link","label":"Transaction","href":"/docs/oxmysql/Usage/transaction","docId":"oxmysql/Usage/transaction"},{"type":"link","label":"Update","href":"/docs/oxmysql/Usage/update","docId":"oxmysql/Usage/update"}],"href":"/docs/oxmysql/Usage/"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Library","items":[{"type":"category","label":"ACL","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Server","href":"/docs/ox_lib/ACL/Server","docId":"ox_lib/ACL/Server"}]},{"type":"category","label":"AddCommand","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Server","href":"/docs/ox_lib/AddCommand/Server","docId":"ox_lib/AddCommand/Server"}]},{"type":"category","label":"Cache","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Client","href":"/docs/ox_lib/Cache/Client","docId":"ox_lib/Cache/Client"}]},{"type":"category","label":"Callback","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Client","href":"/docs/ox_lib/Callback/Client","docId":"ox_lib/Callback/Client"},{"type":"link","label":"Server","href":"/docs/ox_lib/Callback/Server","docId":"ox_lib/Callback/Server"}]},{"type":"category","label":"DisableControls","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Client","href":"/docs/ox_lib/DisableControls/Client","docId":"ox_lib/DisableControls/Client"}]},{"type":"category","label":"Interface","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"Client","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Clipboard","href":"/docs/ox_lib/Interface/Client/clipboard","docId":"ox_lib/Interface/Client/clipboard"},{"type":"link","label":"Context Menu","href":"/docs/ox_lib/Interface/Client/context","docId":"ox_lib/Interface/Client/context"},{"type":"link","label":"Input Dialog","href":"/docs/ox_lib/Interface/Client/input","docId":"ox_lib/Interface/Client/input"},{"type":"link","label":"Notifications","href":"/docs/ox_lib/Interface/Client/notify","docId":"ox_lib/Interface/Client/notify"},{"type":"link","label":"Progress","href":"/docs/ox_lib/Interface/Client/progress","docId":"ox_lib/Interface/Client/progress"},{"type":"link","label":"TextUI","href":"/docs/ox_lib/Interface/Client/textui","docId":"ox_lib/Interface/Client/textui"}]}]},{"type":"category","label":"Locale","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Shared","href":"/docs/ox_lib/Locale/Shared","docId":"ox_lib/Locale/Shared"}]},{"type":"category","label":"Logger","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Server","href":"/docs/ox_lib/Logger/Server","docId":"ox_lib/Logger/Server"}]},{"type":"category","label":"Points","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Points","href":"/docs/ox_lib/Points/Client","docId":"ox_lib/Points/Client"}]},{"type":"category","label":"Streaming","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Client","href":"/docs/ox_lib/Streaming/Client","docId":"ox_lib/Streaming/Client"}]},{"type":"category","label":"VehicleProperties","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Client","href":"/docs/ox_lib/VehicleProperties/Client","docId":"ox_lib/VehicleProperties/Client"}]},{"type":"category","label":"Version","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Server","href":"/docs/ox_lib/Version/Server","docId":"ox_lib/Version/Server"},{"type":"link","label":"Shared","href":"/docs/ox_lib/Version/Shared"Line truncated
|
||||
@@ -1 +1 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5102],{3905:function(e,n,t){t.d(n,{Zo:function(){return l},kt:function(){return f}});var r=t(7294);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach((function(n){o(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function c(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var u=r.createContext({}),p=function(e){var n=r.useContext(u),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=p(e.components);return r.createElement(u.Provider,{value:n},e.children)},s={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},y=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,i=e.originalType,u=e.parentName,l=c(e,["components","mdxType","originalType","parentName"]),y=p(t),f=o,v=y["".concat(u,".").concat(f)]||y[f]||s[f]||i;return t?r.createElement(v,a(a({ref:n},l),{},{components:t})):r.createElement(v,a({ref:n},l))}));function f(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var i=t.length,a=new Array(i);a[0]=y;var c={};for(var u in n)hasOwnProperty.call(n,u)&&(c[u]=n[u]);c.originalType=e,c.mdxType="string"==typeof e?e:o,a[1]=c;for(var p=2;p<i;p++)a[p]=t[p];return r.createElement.apply(null,a)}return r.createElement.apply(null,t)}y.displayName="MDXCreateElement"},6999:function(e,n,t){t.r(n),t.d(n,{frontMatter:function(){return c},contentTitle:function(){return u},metadata:function(){return p},assets:function(){return l},toc:function(){return s},default:function(){return f}});var r=t(7462),o=t(3366),i=(t(7294),t(3905)),a=["components"],c={},u=void 0,p={unversionedId:"ox_inventory/Functions/Client/openNearbyInventory",id:"ox_inventory/Functions/Client/openNearbyInventory",title:"openNearbyInventory",description:"If possible opens the nearby player's inventory.",source:"@site/docs/ox_inventory/Functions/Client/openNearbyInventory.md",sourceDirName:"ox_inventory/Functions/Client",slug:"/ox_inventory/Functions/Client/openNearbyInventory",permalink:"/docs/ox_inventory/Functions/Client/openNearbyInventory",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_inventory/Functions/Client/openNearbyInventory.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"openInventory",permalink:"/docs/ox_inventory/Functions/Client/openInventory"},next:{title:"setStashTarget",permalink:"/docs/ox_inventory/Functions/Client/setStashTarget"}},l={},s=[],y={toc:s};function f(e){var n=e.components,t=(0,o.Z)(e,a);return(0,i.kt)("wrapper",(0,r.Z)({},y,t,{components:n,mdxType:"MDXLayout"}),(0,i.kt)("p",null,"If possible opens the nearby player's inventory."),(0,i.kt)("p",null,"The player trying to open the invenotry must be able to open their own and\nif the player does not have a police job, the target player must be fatally injured or\nplaying one of the death anims."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-lua"},"exports.ox_inventory:openNearbyInventory()\n")))}f.isMDXComponent=!0}}]);
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5102],{3905:function(e,n,t){t.d(n,{Zo:function(){return l},kt:function(){return f}});var r=t(7294);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach((function(n){o(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function c(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var u=r.createContext({}),p=function(e){var n=r.useContext(u),t=n;return e&&(t="function"==typeof e?e(n):a(a({},n),e)),t},l=function(e){var n=p(e.components);return r.createElement(u.Provider,{value:n},e.children)},s={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},y=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,i=e.originalType,u=e.parentName,l=c(e,["components","mdxType","originalType","parentName"]),y=p(t),f=o,v=y["".concat(u,".").concat(f)]||y[f]||s[f]||i;return t?r.createElement(v,a(a({ref:n},l),{},{components:t})):r.createElement(v,a({ref:n},l))}));function f(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var i=t.length,a=new Array(i);a[0]=y;var c={};for(var u in n)hasOwnProperty.call(n,u)&&(c[u]=n[u]);c.originalType=e,c.mdxType="string"==typeof e?e:o,a[1]=c;for(var p=2;p<i;p++)a[p]=t[p];return r.createElement.apply(null,a)}return r.createElement.apply(null,t)}y.displayName="MDXCreateElement"},6999:function(e,n,t){t.r(n),t.d(n,{frontMatter:function(){return c},contentTitle:function(){return u},metadata:function(){return p},assets:function(){return l},toc:function(){return s},default:function(){return f}});var r=t(7462),o=t(3366),i=(t(7294),t(3905)),a=["components"],c={},u=void 0,p={unversionedId:"ox_inventory/Functions/Client/openNearbyInventory",id:"ox_inventory/Functions/Client/openNearbyInventory",title:"openNearbyInventory",description:"If possible opens the nearby player's inventory.",source:"@site/docs/ox_inventory/Functions/Client/openNearbyInventory.md",sourceDirName:"ox_inventory/Functions/Client",slug:"/ox_inventory/Functions/Client/openNearbyInventory",permalink:"/docs/ox_inventory/Functions/Client/openNearbyInventory",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_inventory/Functions/Client/openNearbyInventory.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"openInventory",permalink:"/docs/ox_inventory/Functions/Client/openInventory"},next:{title:"setStashTarget",permalink:"/docs/ox_inventory/Functions/Client/setStashTarget"}},l={},s=[],y={toc:s};function f(e){var n=e.components,t=(0,o.Z)(e,a);return(0,i.kt)("wrapper",(0,r.Z)({},y,t,{components:n,mdxType:"MDXLayout"}),(0,i.kt)("p",null,"If possible opens the nearby player's inventory."),(0,i.kt)("p",null,"The player trying to open the inventory must be able to open their own and\nif the player does not have a police job, the target player must be fatally injured or\nplaying one of the death anims."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-lua"},"exports.ox_inventory:openNearbyInventory()\n")))}f.isMDXComponent=!0}}]);
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5990],{3905:function(e,t,r){r.d(t,{Zo:function(){return p},kt:function(){return d}});var n=r(7294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var a=n.createContext({}),s=function(e){var t=n.useContext(a),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},p=function(e){var t=s(e.components);return n.createElement(a.Provider,{value:t},e.children)},l={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,i=e.originalType,a=e.parentName,p=u(e,["components","mdxType","originalType","parentName"]),f=s(r),d=o,m=f["".concat(a,".").concat(d)]||f[d]||l[d]||i;return r?n.createElement(m,c(c({ref:t},p),{},{components:r})):n.createElement(m,c({ref:t},p))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=r.length,c=new Array(i);c[0]=f;var u={};for(var a in t)hasOwnProperty.call(t,a)&&(u[a]=t[a]);u.originalType=e,u.mdxType="string"==typeof e?e:o,c[1]=u;for(var s=2;s<i;s++)c[s]=r[s];return n.createElement.apply(null,c)}return n.createElement.apply(null,r)}f.displayName="MDXCreateElement"},3794:function(e,t,r){r.r(t),r.d(t,{frontMatter:function(){return u},contentTitle:function(){return a},metadata:function(){return s},assets:function(){return p},toc:function(){return l},default:function(){return d}});var n=r(7462),o=r(3366),i=(r(7294),r(3905)),c=["components"],u={title:"Creating custom drops"},a=void 0,s={unversionedId:"ox_inventory/Guides/customDrop",id:"ox_inventory/Guides/customDrop",title:"Creating custom drops",description:"",source:"@site/docs/ox_inventory/Guides/customDrop.md",sourceDirName:"ox_inventory/Guides",slug:"/ox_inventory/Guides/customDrop",permalink:"/docs/ox_inventory/Guides/customDrop",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_inventory/Guides/customDrop.md",tags:[],version:"current",frontMatter:{title:"Creating custom drops"},sidebar:"docs",previous:{title:"Creating items",permalink:"/docs/ox_inventory/Guides/creatingItems"},next:{title:"Building inventory UI",permalink:"/docs/ox_inventory/Guides/inventory_ui"}},p={},l=[],f={toc:l};function d(e){var t=e.components,r=(0,o.Z)(e,c);return(0,i.kt)("wrapper",(0,n.Z)({},f,r,{components:t,mdxType:"MDXLayout"}))}d.isMDXComponent=!0}}]);
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[992],{3905:function(e,t,n){n.d(t,{Zo:function(){return m},kt:function(){return d}});var a=n(7294);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var u=a.createContext({}),s=function(e){var t=a.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},m=function(e){var t=s(e.components);return a.createElement(u.Provider,{value:t},e.children)},c={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},p=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,i=e.originalType,u=e.parentName,m=l(e,["components","mdxType","originalType","parentName"]),p=s(n),d=r,b=p["".concat(u,".").concat(d)]||p[d]||c[d]||i;return n?a.createElement(b,o(o({ref:t},m),{},{components:n})):a.createElement(b,o({ref:t},m))}));function d(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var i=n.length,o=new Array(i);o[0]=p;var l={};for(var u in t)hasOwnProperty.call(t,u)&&(l[u]=t[u]);l.originalType=e,l.mdxType="string"==typeof e?e:r,o[1]=l;for(var s=2;s<i;s++)o[s]=n[s];return a.createElement.apply(null,o)}return a.createElement.apply(null,n)}p.displayName="MDXCreateElement"},8215:function(e,t,n){n.d(t,{Z:function(){return r}});var a=n(7294);function r(e){var t=e.children,n=e.hidden,r=e.className;return a.createElement("div",{role:"tabpanel",hidden:n,className:r},t)}},9877:function(e,t,n){n.d(t,{Z:function(){return m}});var a=n(7462),r=n(7294),i=n(2389),o=n(3725),l=n(6010),u="tabItem_LplD";function s(e){var t,n,i,s=e.lazy,m=e.block,c=e.defaultValue,p=e.values,d=e.groupId,b=e.className,g=r.Children.map(e.children,(function(e){if((0,r.isValidElement)(e)&&void 0!==e.props.value)return e;throw new Error("Docusaurus error: Bad <Tabs> child <"+("string"==typeof e.type?e.type:e.type.name)+'>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.')})),f=null!=p?p:g.map((function(e){var t=e.props;return{value:t.value,label:t.label,attributes:t.attributes}})),h=(0,o.lx)(f,(function(e,t){return e.value===t.value}));if(h.length>0)throw new Error('Docusaurus error: Duplicate values "'+h.map((function(e){return e.value})).join(", ")+'" found in <Tabs>. Every value needs to be unique.');var v=null===c?c:null!=(t=null!=c?c:null==(n=g.find((function(e){return e.props.default})))?void 0:n.props.value)?t:null==(i=g[0])?void 0:i.props.value;if(null!==v&&!f.some((function(e){return e.value===v})))throw new Error('Docusaurus error: The <Tabs> has a defaultValue "'+v+'" but none of its children has the corresponding value. Available values are: '+f.map((function(e){return e.value})).join(", ")+". If you intend to show no default tab, use defaultValue={null} instead.");var y=(0,o.UB)(),k=y.tabGroupChoices,x=y.setTabGroupChoices,w=(0,r.useState)(v),N=w[0],_=w[1],T=[],E=(0,o.o5)().blockElementScrollPositionUntilNextRender;if(null!=d){var I=k[d];null!=I&&I!==N&&f.some((function(e){return e.value===I}))&&_(I)}var O=function(e){var t=e.currentTarget,n=T.indexOf(t),a=f[n].value;a!==N&&(E(t),_(a),null!=d&&x(d,a))},C=function(e){var t,n=null;switch(e.key){case"ArrowRight":var a=T.indexOf(e.currentTarget)+1;n=T[a]||T[0];break;case"ArrowLeft":var r=T.indexOf(e.currentTarget)-1;n=T[r]||T[T.length-1]}null==(t=n)||t.focus()};return r.createElement("div",{className:"tabs-container"},r.createElement("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,l.Z)("tabs",{"tabs--block":m},b)},f.map((function(e){var t=e.value,n=e.label,i=e.attributes;return r.createElement("li",(0,a.Z)({role:"tab",tabIndex:N===t?0:-1,"aria-selected":N===t,key:t,ref:function(e){return T.push(e)},onKeyDown:C,onFocus:O,onClick:O},i,{className:(0,l.Z)("tabs__item",u,null==i?void 0:i.className,{"tabs__item--active":N===t})}),null!=n?n:t)}))),s?(0,r.cloneElement)(g.filter((function(e){return e.props.value===N}))[0],{className:"margin-vert--md"}):r.createElement("div",{className:"margin-verLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[992],{3905:function(e,t,n){n.d(t,{Zo:function(){return m},kt:function(){return d}});var a=n(7294);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var u=a.createContext({}),s=function(e){var t=a.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},m=function(e){var t=s(e.components);return a.createElement(u.Provider,{value:t},e.children)},c={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},p=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,i=e.originalType,u=e.parentName,m=o(e,["components","mdxType","originalType","parentName"]),p=s(n),d=r,b=p["".concat(u,".").concat(d)]||p[d]||c[d]||i;return n?a.createElement(b,l(l({ref:t},m),{},{components:n})):a.createElement(b,l({ref:t},m))}));function d(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var i=n.length,l=new Array(i);l[0]=p;var o={};for(var u in t)hasOwnProperty.call(t,u)&&(o[u]=t[u]);o.originalType=e,o.mdxType="string"==typeof e?e:r,l[1]=o;for(var s=2;s<i;s++)l[s]=n[s];return a.createElement.apply(null,l)}return a.createElement.apply(null,n)}p.displayName="MDXCreateElement"},8215:function(e,t,n){n.d(t,{Z:function(){return r}});var a=n(7294);function r(e){var t=e.children,n=e.hidden,r=e.className;return a.createElement("div",{role:"tabpanel",hidden:n,className:r},t)}},9877:function(e,t,n){n.d(t,{Z:function(){return m}});var a=n(7462),r=n(7294),i=n(2389),l=n(3725),o=n(6010),u="tabItem_LplD";function s(e){var t,n,i,s=e.lazy,m=e.block,c=e.defaultValue,p=e.values,d=e.groupId,b=e.className,g=r.Children.map(e.children,(function(e){if((0,r.isValidElement)(e)&&void 0!==e.props.value)return e;throw new Error("Docusaurus error: Bad <Tabs> child <"+("string"==typeof e.type?e.type:e.type.name)+'>: all children of the <Tabs> component should be <TabItem>, and every <TabItem> should have a unique "value" prop.')})),f=null!=p?p:g.map((function(e){var t=e.props;return{value:t.value,label:t.label,attributes:t.attributes}})),h=(0,l.lx)(f,(function(e,t){return e.value===t.value}));if(h.length>0)throw new Error('Docusaurus error: Duplicate values "'+h.map((function(e){return e.value})).join(", ")+'" found in <Tabs>. Every value needs to be unique.');var v=null===c?c:null!=(t=null!=c?c:null==(n=g.find((function(e){return e.props.default})))?void 0:n.props.value)?t:null==(i=g[0])?void 0:i.props.value;if(null!==v&&!f.some((function(e){return e.value===v})))throw new Error('Docusaurus error: The <Tabs> has a defaultValue "'+v+'" but none of its children has the corresponding value. Available values are: '+f.map((function(e){return e.value})).join(", ")+". If you intend to show no default tab, use defaultValue={null} instead.");var y=(0,l.UB)(),k=y.tabGroupChoices,x=y.setTabGroupChoices,w=(0,r.useState)(v),N=w[0],_=w[1],T=[],I=(0,l.o5)().blockElementScrollPositionUntilNextRender;if(null!=d){var E=k[d];null!=E&&E!==N&&f.some((function(e){return e.value===E}))&&_(E)}var O=function(e){var t=e.currentTarget,n=T.indexOf(t),a=f[n].value;a!==N&&(I(t),_(a),null!=d&&x(d,a))},C=function(e){var t,n=null;switch(e.key){case"ArrowRight":var a=T.indexOf(e.currentTarget)+1;n=T[a]||T[0];break;case"ArrowLeft":var r=T.indexOf(e.currentTarget)-1;n=T[r]||T[T.length-1]}null==(t=n)||t.focus()};return r.createElement("div",{className:"tabs-container"},r.createElement("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,o.Z)("tabs",{"tabs--block":m},b)},f.map((function(e){var t=e.value,n=e.label,i=e.attributes;return r.createElement("li",(0,a.Z)({role:"tab",tabIndex:N===t?0:-1,"aria-selected":N===t,key:t,ref:function(e){return T.push(e)},onKeyDown:C,onFocus:O,onClick:O},i,{className:(0,o.Z)("tabs__item",u,null==i?void 0:i.className,{"tabs__item--active":N===t})}),null!=n?n:t)}))),s?(0,r.cloneElement)(g.filter((function(e){return e.props.value===N}))[0],{className:"margin-vert--md"}):r.createElement("div",{className:"margin-verLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3537],{3905:function(e,t,n){n.d(t,{Zo:function(){return l},kt:function(){return m}});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var a=r.createContext({}),s=function(e){var t=r.useContext(a),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},l=function(e){var t=s(e.components);return r.createElement(a.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},f=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,i=e.originalType,a=e.parentName,l=u(e,["components","mdxType","originalType","parentName"]),f=s(n),m=o,y=f["".concat(a,".").concat(m)]||f[m]||p[m]||i;return n?r.createElement(y,c(c({ref:t},l),{},{components:n})):r.createElement(y,c({ref:t},l))}));function m(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,c=new Array(i);c[0]=f;var u={};for(var a in t)hasOwnProperty.call(t,a)&&(u[a]=t[a]);u.originalType=e,u.mdxType="string"==typeof e?e:o,c[1]=u;for(var s=2;s<i;s++)c[s]=n[s];return r.createElement.apply(null,c)}return r.createElement.apply(null,n)}f.displayName="MDXCreateElement"},990:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return u},contentTitle:function(){return a},metadata:function(){return s},assets:function(){return l},toc:function(){return p},default:function(){return m}});var r=n(7462),o=n(3366),i=(n(7294),n(3905)),c=["components"],u={},a=void 0,s={unversionedId:"ox_inventory/Functions/Client/useItem",id:"ox_inventory/Functions/Client/useItem",title:"useItem",description:"Uses the passed item, then triggers the callback function.",source:"@site/docs/ox_inventory/Functions/Client/useItem.md",sourceDirName:"ox_inventory/Functions/Client",slug:"/ox_inventory/Functions/Client/useItem",permalink:"/docs/ox_inventory/Functions/Client/useItem",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_inventory/Functions/Client/useItem.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"setStashTarget",permalink:"/docs/ox_inventory/Functions/Client/setStashTarget"},next:{title:"useSlot",permalink:"/docs/ox_inventory/Functions/Client/useSlot"}},l={},p=[],f={toc:p};function m(e){var t=e.components,n=(0,o.Z)(e,c);return(0,i.kt)("wrapper",(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("p",null,"Uses the passed item, then triggers the callback function."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-lua"},"-- data: table\n-- cb: function (optional)\nexports.ox_inventory:useItem(data, cb)\n")))}m.isMDXComponent=!0}}]);
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3537],{3905:function(e,t,n){n.d(t,{Zo:function(){return s},kt:function(){return f}});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l=r.createContext({}),u=function(e){var t=r.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},s=function(e){var t=u(e.components);return r.createElement(l.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},d=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,s=c(e,["components","mdxType","originalType","parentName"]),d=u(n),f=o,m=d["".concat(l,".").concat(f)]||d[f]||p[f]||a;return n?r.createElement(m,i(i({ref:t},s),{},{components:n})):r.createElement(m,i({ref:t},s))}));function f(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=n.length,i=new Array(a);i[0]=d;var c={};for(var l in t)hasOwnProperty.call(t,l)&&(c[l]=t[l]);c.originalType=e,c.mdxType="string"==typeof e?e:o,i[1]=c;for(var u=2;u<a;u++)i[u]=n[u];return r.createElement.apply(null,i)}return r.createElement.apply(null,n)}d.displayName="MDXCreateElement"},990:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return c},contentTitle:function(){return l},metadata:function(){return u},assets:function(){return s},toc:function(){return p},default:function(){return f}});var r=n(7462),o=n(3366),a=(n(7294),n(3905)),i=["components"],c={},l=void 0,u={unversionedId:"ox_inventory/Functions/Client/useItem",id:"ox_inventory/Functions/Client/useItem",title:"useItem",description:"Uses the passed item, then triggers the callback function.",source:"@site/docs/ox_inventory/Functions/Client/useItem.md",sourceDirName:"ox_inventory/Functions/Client",slug:"/ox_inventory/Functions/Client/useItem",permalink:"/docs/ox_inventory/Functions/Client/useItem",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_inventory/Functions/Client/useItem.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"setStashTarget",permalink:"/docs/ox_inventory/Functions/Client/setStashTarget"},next:{title:"useSlot",permalink:"/docs/ox_inventory/Functions/Client/useSlot"}},s={},p=[],d={toc:p};function f(e){var t=e.components,n=(0,o.Z)(e,i);return(0,a.kt)("wrapper",(0,r.Z)({},d,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("p",null,"Uses the passed item, then triggers the callback function.",(0,a.kt)("br",{parentName:"p"}),"\n","Should be calling during item callbacks to utilise the builtin methods (server checks, progress bar, etc.)."),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-lua"},"-- data: table\n-- cb: function (optional)\nexports.ox_inventory:useItem(data, cb)\n")),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-lua"},"exports('bandage', function(data, slot)\n local playerPed = PlayerPedId()\n local maxHealth = GetEntityMaxHealth(playerPed)\n local health = GetEntityHealth(playerPed)\n\n -- Does the ped need to heal?\n if health < maxHealth then\n -- Use the bandage\n exports.ox_inventory:useItem(data, function(data)\n -- The item has been used, so trigger the effects\n if data then\n SetEntityHealth(playerPed, math.min(maxHealth, math.floor(health + maxHealth / 16)))\n exports.ox_inventory:notify({text = 'You feel better already'})\n end\n end)\n else\n -- Don't use the item\n exports.ox_inventory:notify({type = 'error', text = 'You don\\'t need a bandage right now'})\n end\nend)\n")))}f.isMDXComponent=!0}}]);
|
||||
@@ -0,0 +1,2 @@
|
||||
/*! For license information please see main.0ce86b39.js.LICENSE.txt */
|
||||
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[179],{830:function(e,t,n){"use strict";n.d(t,{W:function(){return o}});var r=n(7294);function o(){return r.createElement("svg",{width:"20",height:"20",className:"DocSearch-Search-Icon",viewBox:"0 0 20 20"},r.createElement("path",{d:"M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}},9782:function(e,t,n){"use strict";n.r(t),t.default={title:"Overextended",tagline:"Official documentation for Overextended resources",url:"https://overextended.github.io",baseUrl:"/",onBrokenLinks:"throw",onBrokenMarkdownLinks:"warn",favicon:"img/ox.ico",organizationName:"overextended",projectName:"overextended.github.io",presets:[["classic",{docs:{sidebarPath:"/home/runner/work/overextended.github.io/overextended.github.io/sidebars.js",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/"},theme:{customCss:"/home/runner/work/overextended.github.io/overextended.github.io/src/css/custom.css"}}]],themeConfig:{colorMode:{defaultMode:"dark",disableSwitch:!0,respectPrefersColorScheme:!1},navbar:{title:"Overextended",logo:{alt:"Ox Logo",src:"/img/ox_64.png",width:32,height:32},items:[{href:"https://www.github.com/overextended",label:"GitHub",position:"left"},{href:"https://www.discord.gg/overextended",label:"Discord",position:"left"},{to:"docs/",label:"Documentation",position:"right"},{type:"search",position:"right"}],hideOnScroll:!1},footer:{style:"dark",copyright:"Copyright \xa9 2022 Overextended",links:[]},prism:{theme:{plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},darkTheme:{plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:"#c5a5c5"}},{types:["attr-value"],style:{color:"#8dc891"}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:"#8dc891"}},{types:["punctuation"],style:{color:"#8dc891"}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:"#c5a5c5"}},{types:["at-rule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},additionalLanguages:["lua"]},algolia:{appId:"8XXXVNJ7UW",apiKey:"3680aeb79049744c6629dd0abd2f5dfe",indexName:"overextended",contextualSearch:!0,searchParameters:{},searchPagePath:"search"},docs:{versionPersistence:"localStorage"},metadata:[],hideableSidebar:!1,autoCollapseSidebarCategories:!1,tableOfContents:{minHeadingLevel:2,maxHeadingLevel:3}},baseUrlIssueBanner:!0,i18n:{defaultLocale:"en",locales:["en"],localeConfigs:{}},onDuplicateRoutes:"warn",staticDirectories:["static"],customFields:{},plugins:[],themes:[],titleDelimiter:"|",noIndex:!1}},723:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(7294),o=n(7462),a=n(8356),i=n.n(a);function l(e){var t=e.error,n=e.retry,o=e.pastDelay;return t?r.createElement("div",{style:{textAlign:"center",color:"#fff",backgroundColor:"#fa383e",borderColor:"#fa383e",borderStyle:"solid",borderRadius:"0.25rem",borderWidth:"1px",boxSizing:"border-box",display:"block",padding:"1rem",flex:"0 0 50%",marginLeft:"25%",marginRight:"25%",marginTop:"5rem",maxWidth:"50%",width:"100%"}},r.createElement("p",null,t.message),r.createElement("div",null,r.createElement("button",{type:"button",onClick:n},"Retry"))):o?r.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"}},r.createElement("svg",{id:"loader",style:{width:128,height:110,position:"absolute",top:"calc(100vh - 64%)"},viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",stroke:"#61dafb"},r.createElement("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)",strokeWidth:"2"},r.cLine truncated
|
||||
File renamed without changes.
@@ -1,2 +0,0 @@
|
||||
/*! For license information please see main.6fd3d89a.js.LICENSE.txt */
|
||||
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[179],{830:function(e,t,n){"use strict";n.d(t,{W:function(){return o}});var r=n(7294);function o(){return r.createElement("svg",{width:"20",height:"20",className:"DocSearch-Search-Icon",viewBox:"0 0 20 20"},r.createElement("path",{d:"M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}},9782:function(e,t,n){"use strict";n.r(t),t.default={title:"Overextended",tagline:"Official documentation for Overextended resources",url:"https://overextended.github.io",baseUrl:"/",onBrokenLinks:"throw",onBrokenMarkdownLinks:"warn",favicon:"img/ox.ico",organizationName:"overextended",projectName:"overextended.github.io",presets:[["classic",{docs:{sidebarPath:"/home/runner/work/overextended.github.io/overextended.github.io/sidebars.js",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/"},theme:{customCss:"/home/runner/work/overextended.github.io/overextended.github.io/src/css/custom.css"}}]],themeConfig:{colorMode:{defaultMode:"dark",disableSwitch:!0,respectPrefersColorScheme:!1},navbar:{title:"Overextended",logo:{alt:"Ox Logo",src:"/img/ox_64.png",width:32,height:32},items:[{href:"https://www.github.com/overextended",label:"GitHub",position:"left"},{href:"https://www.discord.gg/overextended",label:"Discord",position:"left"},{to:"docs/",label:"Documentation",position:"right"},{type:"search",position:"right"}],hideOnScroll:!1},footer:{style:"dark",copyright:"Copyright \xa9 2022 Overextended",links:[]},prism:{theme:{plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},darkTheme:{plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:"#c5a5c5"}},{types:["attr-value"],style:{color:"#8dc891"}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:"#8dc891"}},{types:["punctuation"],style:{color:"#8dc891"}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:"#c5a5c5"}},{types:["at-rule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},additionalLanguages:["lua"]},algolia:{appId:"8XXXVNJ7UW",apiKey:"3680aeb79049744c6629dd0abd2f5dfe",indexName:"overextended",contextualSearch:!0,searchParameters:{},searchPagePath:"search"},docs:{versionPersistence:"localStorage"},metadata:[],hideableSidebar:!1,autoCollapseSidebarCategories:!1,tableOfContents:{minHeadingLevel:2,maxHeadingLevel:3}},baseUrlIssueBanner:!0,i18n:{defaultLocale:"en",locales:["en"],localeConfigs:{}},onDuplicateRoutes:"warn",staticDirectories:["static"],customFields:{},plugins:[],themes:[],titleDelimiter:"|",noIndex:!1}},723:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(7294),o=n(7462),a=n(8356),i=n.n(a);function l(e){var t=e.error,n=e.retry,o=e.pastDelay;return t?r.createElement("div",{style:{textAlign:"center",color:"#fff",backgroundColor:"#fa383e",borderColor:"#fa383e",borderStyle:"solid",borderRadius:"0.25rem",borderWidth:"1px",boxSizing:"border-box",display:"block",padding:"1rem",flex:"0 0 50%",marginLeft:"25%",marginRight:"25%",marginTop:"5rem",maxWidth:"50%",width:"100%"}},r.createElement("p",null,t.message),r.createElement("div",null,r.createElement("button",{type:"button",onClick:n},"Retry"))):o?r.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"}},r.createElement("svg",{id:"loader",style:{width:128,height:110,position:"absolute",top:"calc(100vh - 64%)"},viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",stroke:"#61dafb"},r.createElement("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)",strokeWidth:"2"},r.cLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
!function(){"use strict";var e,a,f,c,t,d={},n={};function b(e){var a=n[e];if(void 0!==a)return a.exports;var f=n[e]={exports:{}};return d[e].call(f.exports,f,f.exports,b),f.exports}b.m=d,e=[],b.O=function(a,f,c,t){if(!f){var d=1/0;for(u=0;u<e.length;u++){f=e[u][0],c=e[u][1],t=e[u][2];for(var n=!0,r=0;r<f.length;r++)(!1&t||d>=t)&&Object.keys(b.O).every((function(e){return b.O[e](f[r])}))?f.splice(r--,1):(n=!1,t<d&&(d=t));if(n){e.splice(u--,1);var o=c();void 0!==o&&(a=o)}}return a}t=t||0;for(var u=e.length;u>0&&e[u-1][2]>t;u--)e[u]=e[u-1];e[u]=[f,c,t]},b.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(a,{a:a}),a},f=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},b.t=function(e,c){if(1&c&&(e=this(e)),8&c)return e;if("object"==typeof e&&e){if(4&c&&e.__esModule)return e;if(16&c&&"function"==typeof e.then)return e}var t=Object.create(null);b.r(t);var d={};a=a||[null,f({}),f([]),f(f)];for(var n=2&c&&e;"object"==typeof n&&!~a.indexOf(n);n=f(n))Object.getOwnPropertyNames(n).forEach((function(a){d[a]=function(){return e[a]}}));return d.default=function(){return e},b.d(t,d),t},b.d=function(e,a){for(var f in a)b.o(a,f)&&!b.o(e,f)&&Object.defineProperty(e,f,{enumerable:!0,get:a[f]})},b.f={},b.e=function(e){return Promise.all(Object.keys(b.f).reduce((function(a,f){return b.f[f](e,a),a}),[]))},b.u=function(e){return"assets/js/"+({53:"935f2afb",212:"2fb76b0a",219:"461f728c",336:"e836e7f0",361:"7d2d738e",488:"603a3945",623:"efe28d55",711:"e836461c",763:"8c52c42d",992:"d65f8ccc",1477:"b2f554cd",1660:"94dab9da",1884:"c8b7a7b8",2017:"081aa3d8",2115:"99ade4d8",2202:"34a267b8",2446:"831ab327",2597:"384e58e1",3085:"1f391b9e",3128:"2ff920a5",3218:"01e0aabd",3237:"1df93b7f",3287:"5fabe7ef",3405:"54c31db2",3412:"ed6cb704",3537:"ec013d60",3608:"9e4087bc",3792:"fb92962e",4044:"93e28271",4270:"3a94ab6a",4428:"09e6f732",4434:"c2e48a87",4467:"a301658a",4571:"ddb2ec41",4677:"fe5eec09",4764:"9d661e0a",4772:"871b43d2",4960:"a0cc59ae",5102:"bd024966",5199:"3517af41",6124:"3bed0d25",6169:"03b72f95",6193:"d4a6286b",6227:"49744a1f",6231:"1edd048e",6508:"7bd87f6f",6533:"0419c24a",6971:"c377a04b",6995:"56163916",7008:"fd4717da",7150:"a484ef80",7330:"011f4266",7414:"393be207",7438:"036a6f83",7653:"27ba855c",7690:"8cbd576d",7799:"8d5488b4",7835:"23a5733a",7918:"17896441",7920:"1a4e3797",7995:"fa305394",8299:"b81c2ea8",8431:"2e6924e9",8506:"1abfdec1",8552:"c038339d",8592:"3e61bb29",8729:"022a8a8a",8910:"6cc2c735",9008:"ea722c4f",9081:"475acb0d",9155:"d6b25613",9278:"75f8f779",9341:"72d326dc",9414:"5d7eb90d",9491:"adbed512",9514:"1be78505",9586:"85ef8f6b",9730:"daa8642d",9945:"e36123ca"}[e]||e)+"."+{53:"afd117e5",138:"8c2f12a0",212:"5abcbf42",219:"13480127",336:"a0b1c040",361:"c4df82e9",488:"5c079eda",623:"1e7a82d9",711:"80c4006f",763:"d27f1b99",992:"e8fc012e",1477:"ef5c39b9",1660:"62592a24",1884:"1244de6b",2017:"80c6d4c5",2115:"bf7ac38c",2202:"11b2b16b",2446:"d981eed4",2597:"dd2f2a42",3085:"285892b7",3128:"de1d31ba",3218:"9a2e3610",3237:"1c5fe22a",3287:"e6dde9c7",3405:"054fd3e8",3412:"d5a80d57",3537:"c4978eaf",3608:"c4301948",3792:"f659f77d",4044:"5c5a0c6d",4270:"64c55818",4428:"0fc4a7f0",4434:"4dad3cee",4467:"ab655b70",4571:"d45737bb",4608:"622b8e38",4677:"964da253",4764:"da20e7f1",4772:"e785d0e5",4960:"c112455b",5102:"d73027a1",5199:"529a51a0",5897:"cc508d32",6124:"63e4687f",6169:"1a2d33bf",6193:"082dce9f",6227:"d4d52a87",6231:"856b37f1",6385:"4701e2d8",6508:"f641f65a",6533:"def12f56",6815:"1514b2f1",6945:"87ff0226",6971:"43108ef0",6995:"09d0d563",7008:"31a8476e",7150:"917e3313",7330:"f863e9e9",7414:"7d8576b6",7438:"1389c135",7653:"7d791384",7690:"3dad8006",7799:"81005fc7",7835:"df1e6b5a",7918:"8bdb7612",7920:"39f10455",7995:"5a1fa0b3",8299:"fe6dada8",8431:"11e8bd4a",8506:"9a856041",8552:"f996f09e",8592:"d33acda3",8729:"4aef234e",8894:"ef41ad74",8910:"7da858ff",9008:"cc834782",9081:"deb057d8",9155:"bde68bfc",9278:"d53a26a2",9341:"18b16759",9414:"b25c8892",9491:"f84c0c4b",9514:"437ca93b",9586:"b2584bc5",9730:"d00cf7a5",9945:"19621d8e"}[e]+".js"},b.miniCssF=function(e){},b.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),b.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},c={},t="website:",b.l=function(e,a,f,d){if(c[e])c[e].push(a);else{var n,r;if(void 0!==f)for(var o=document.getElementsByTagName("script"),u=0;u<o.length;u++){var i=o[u];if(i.getAttribute("src")==e||i.getAttribute("data-webpack")==t+f){n=i;break}}n||(r=!0,(n=document.createElement("script")).charset="utf-8",n.timeout=120,b.nc&&n.setAttribute("nonce",b.nc),n.setAttribute("data-webpack",t+f),n.src=e),c[e]=[a];var l=function(a,f){n.onerror=n.onload=null,clearTimeout(s);var t=c[e];if(delete c[e],n.parentNode&&n.parentNode.removeChild(n),t&&t.forEach((function(e){return e(f)})),a)return a(f)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
!function(){"use strict";var e,a,f,c,t,d={},b={};function n(e){var a=b[e];if(void 0!==a)return a.exports;var f=b[e]={exports:{}};return d[e].call(f.exports,f,f.exports,n),f.exports}n.m=d,e=[],n.O=function(a,f,c,t){if(!f){var d=1/0;for(u=0;u<e.length;u++){f=e[u][0],c=e[u][1],t=e[u][2];for(var b=!0,r=0;r<f.length;r++)(!1&t||d>=t)&&Object.keys(n.O).every((function(e){return n.O[e](f[r])}))?f.splice(r--,1):(b=!1,t<d&&(d=t));if(b){e.splice(u--,1);var o=c();void 0!==o&&(a=o)}}return a}t=t||0;for(var u=e.length;u>0&&e[u-1][2]>t;u--)e[u]=e[u-1];e[u]=[f,c,t]},n.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(a,{a:a}),a},f=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},n.t=function(e,c){if(1&c&&(e=this(e)),8&c)return e;if("object"==typeof e&&e){if(4&c&&e.__esModule)return e;if(16&c&&"function"==typeof e.then)return e}var t=Object.create(null);n.r(t);var d={};a=a||[null,f({}),f([]),f(f)];for(var b=2&c&&e;"object"==typeof b&&!~a.indexOf(b);b=f(b))Object.getOwnPropertyNames(b).forEach((function(a){d[a]=function(){return e[a]}}));return d.default=function(){return e},n.d(t,d),t},n.d=function(e,a){for(var f in a)n.o(a,f)&&!n.o(e,f)&&Object.defineProperty(e,f,{enumerable:!0,get:a[f]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(a,f){return n.f[f](e,a),a}),[]))},n.u=function(e){return"assets/js/"+({53:"935f2afb",212:"2fb76b0a",219:"461f728c",336:"e836e7f0",361:"7d2d738e",488:"603a3945",623:"efe28d55",711:"e836461c",763:"8c52c42d",992:"d65f8ccc",1477:"b2f554cd",1660:"94dab9da",1884:"c8b7a7b8",2017:"081aa3d8",2115:"99ade4d8",2202:"34a267b8",2446:"831ab327",2597:"384e58e1",3085:"1f391b9e",3128:"2ff920a5",3218:"01e0aabd",3237:"1df93b7f",3287:"5fabe7ef",3405:"54c31db2",3412:"ed6cb704",3537:"ec013d60",3608:"9e4087bc",3792:"fb92962e",4044:"93e28271",4270:"3a94ab6a",4428:"09e6f732",4434:"c2e48a87",4467:"a301658a",4571:"ddb2ec41",4677:"fe5eec09",4764:"9d661e0a",4772:"871b43d2",4960:"a0cc59ae",5102:"bd024966",5199:"3517af41",5990:"c864612b",6124:"3bed0d25",6169:"03b72f95",6193:"d4a6286b",6227:"49744a1f",6231:"1edd048e",6508:"7bd87f6f",6533:"0419c24a",6971:"c377a04b",6995:"56163916",7008:"fd4717da",7150:"a484ef80",7330:"011f4266",7414:"393be207",7438:"036a6f83",7653:"27ba855c",7690:"8cbd576d",7799:"8d5488b4",7835:"23a5733a",7918:"17896441",7920:"1a4e3797",7995:"fa305394",8299:"b81c2ea8",8431:"2e6924e9",8506:"1abfdec1",8552:"c038339d",8592:"3e61bb29",8729:"022a8a8a",8910:"6cc2c735",9008:"ea722c4f",9081:"475acb0d",9155:"d6b25613",9278:"75f8f779",9341:"72d326dc",9414:"5d7eb90d",9491:"adbed512",9514:"1be78505",9586:"85ef8f6b",9730:"daa8642d",9945:"e36123ca"}[e]||e)+"."+{53:"b024f056",138:"8c2f12a0",212:"5abcbf42",219:"b820160a",336:"a0b1c040",361:"c4df82e9",488:"5c079eda",623:"1e7a82d9",711:"80c4006f",763:"58fbf050",992:"b0e6c86c",1477:"ef5c39b9",1660:"62592a24",1884:"1244de6b",2017:"80c6d4c5",2115:"bf7ac38c",2202:"11b2b16b",2446:"ad1adc8e",2597:"dd2f2a42",3085:"285892b7",3128:"de1d31ba",3218:"9a2e3610",3237:"1c5fe22a",3287:"e6dde9c7",3405:"054fd3e8",3412:"d5a80d57",3537:"b2c608c1",3608:"c4301948",3792:"f659f77d",4044:"5c5a0c6d",4270:"64c55818",4428:"0fc4a7f0",4434:"4dad3cee",4467:"ab655b70",4571:"d45737bb",4608:"622b8e38",4677:"964da253",4764:"da20e7f1",4772:"e785d0e5",4960:"c112455b",5102:"493b5518",5199:"529a51a0",5897:"cc508d32",5990:"ed1ec728",6124:"63e4687f",6169:"1a2d33bf",6193:"082dce9f",6227:"d4d52a87",6231:"856b37f1",6385:"4701e2d8",6508:"f641f65a",6533:"def12f56",6815:"1514b2f1",6945:"87ff0226",6971:"43108ef0",6995:"09d0d563",7008:"31a8476e",7150:"917e3313",7330:"f863e9e9",7414:"7d8576b6",7438:"1389c135",7653:"7d791384",7690:"3dad8006",7799:"81005fc7",7835:"df1e6b5a",7918:"8bdb7612",7920:"39f10455",7995:"5a1fa0b3",8299:"fe6dada8",8431:"11e8bd4a",8506:"9a856041",8552:"f996f09e",8592:"d33acda3",8729:"4aef234e",8894:"ef41ad74",8910:"7da858ff",9008:"cc834782",9081:"deb057d8",9155:"bde68bfc",9278:"d53a26a2",9341:"18b16759",9414:"b25c8892",9491:"f84c0c4b",9514:"437ca93b",9586:"b2584bc5",9730:"d00cf7a5",9945:"19621d8e"}[e]+".js"},n.miniCssF=function(e){},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},c={},t="website:",n.l=function(e,a,f,d){if(c[e])c[e].push(a);else{var b,r;if(void 0!==f)for(var o=document.getElementsByTagName("script"),u=0;u<o.length;u++){var i=o[u];if(i.getAttribute("src")==e||i.getAttribute("data-webpack")==t+f){b=i;break}}b||(r=!0,(b=document.createElement("script")).charset="utf-8",b.timeout=120,n.nc&&b.setAttribute("nonce",n.nc),b.setAttribute("data-webpack",t+f),b.src=e),c[e]=[a];var l=function(a,f){b.onerror=b.onload=null,clearTimeout(s);var t=c[e];if(delete c[e],b.parentNode&&b.parentNode.removeChild(b),t&&t.forEach((function(e){return e(f)})),a)return a(f)},s=setTimeout(l.bind(null,void 0,{typeLine truncated
|
||||
Reference in new issue
Block a user