This commit is contained in:
github-actions[bot] committed 2022-04-29 05:41:01 +00:00
1 parent 1f3dfb9dd4
commit 4a37991ea6
93 files changed
+378 -416

No files matched your search

@@ -1 +1 @@
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1521],{3905:function(e,t,n){n.d(t,{Zo:function(){return s},kt:function(){return b}});var r=n(7294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(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 o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=r.createContext({}),u=function(e){var t=r.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):o(o({},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,a=e.mdxType,c=e.originalType,l=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),d=u(n),b=a,h=d["".concat(l,".").concat(b)]||d[b]||p[b]||c;return n?r.createElement(h,o(o({ref:t},s),{},{components:n})):r.createElement(h,o({ref:t},s))}));function b(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var c=n.length,o=new Array(c);o[0]=d;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i.mdxType="string"==typeof e?e:a,o[1]=i;for(var u=2;u<c;u++)o[u]=n[u];return r.createElement.apply(null,o)}return r.createElement.apply(null,n)}d.displayName="MDXCreateElement"},7849:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return i},contentTitle:function(){return l},metadata:function(){return u},assets:function(){return s},toc:function(){return p},default:function(){return b}});var r=n(7462),a=n(3366),c=(n(7294),n(3905)),o=["components"],i={},l="Cache",u={unversionedId:"ox_lib/Client/cache",id:"ox_lib/Client/cache",title:"Cache",description:"Caches data related to the player and handling some events or statebags.",source:"@site/docs/ox_lib/Client/cache.md",sourceDirName:"ox_lib/Client",slug:"/ox_lib/Client/cache",permalink:"/docs/ox_lib/Client/cache",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_lib/Client/cache.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"TextUI",permalink:"/docs/ox_lib/Client/Interface/textui"},next:{title:"Callbacks",permalink:"/docs/ox_lib/Client/callback"}},s={},p=[{value:"States",id:"states",level:2},{value:"lib.onCache",id:"liboncache",level:2}],d={toc:p};function b(e){var t=e.components,n=(0,a.Z)(e,o);return(0,c.kt)("wrapper",(0,r.Z)({},d,n,{components:t,mdxType:"MDXLayout"}),(0,c.kt)("h1",{id:"cache"},"Cache"),(0,c.kt)("p",null,"Caches data related to the player and handling some events or statebags.",(0,c.kt)("br",{parentName:"p"}),"\n","An interval runs every 100ms to update data that cannot be checked via handlers. "),(0,c.kt)("p",null,(0,c.kt)("a",{parentName:"p",href:"https://github.com/overextended/ox_lib/blob/master/resource/cache/client.lua"},"https://github.com/overextended/ox_lib/blob/master/resource/cache/client.lua")),(0,c.kt)("h2",{id:"states"},"States"),(0,c.kt)("pre",null,(0,c.kt)("code",{parentName:"pre",className:"language-lua"},"cache.ped -- player entity id\ncache.vehicle -- vehicle entity id\ncache.seat -- vehicle seat index\n")),(0,c.kt)("h2",{id:"liboncache"},"lib.onCache"),(0,c.kt)("p",null,"Register a callback function when the value is changed."),(0,c.kt)("pre",null,(0,c.kt)("code",{parentName:"pre",className:"language-lua"},"lib.onCache('vehicle', function(value)\n print('vehicle', value)\nend)\n\nlib.onCache('seat', function(value)\n print('seat', value)\nend)\n")))}b.isMDXComponent=!0}}]);
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1521],{3905:function(e,t,n){n.d(t,{Zo:function(){return s},kt:function(){return b}});var r=n(7294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(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 o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=r.createContext({}),u=function(e){var t=r.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):o(o({},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,a=e.mdxType,c=e.originalType,l=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),d=u(n),b=a,h=d["".concat(l,".").concat(b)]||d[b]||p[b]||c;return n?r.createElement(h,o(o({ref:t},s),{},{components:n})):r.createElement(h,o({ref:t},s))}));function b(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var c=n.length,o=new Array(c);o[0]=d;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i.mdxType="string"==typeof e?e:a,o[1]=i;for(var u=2;u<c;u++)o[u]=n[u];return r.createElement.apply(null,o)}return r.createElement.apply(null,n)}d.displayName="MDXCreateElement"},7849:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return i},contentTitle:function(){return l},metadata:function(){return u},assets:function(){return s},toc:function(){return p},default:function(){return b}});var r=n(7462),a=n(3366),c=(n(7294),n(3905)),o=["components"],i={},l="Cache",u={unversionedId:"ox_lib/Client/cache",id:"ox_lib/Client/cache",title:"Cache",description:"Caches data related to the player and handling some events or statebags.",source:"@site/docs/ox_lib/Client/cache.md",sourceDirName:"ox_lib/Client",slug:"/ox_lib/Client/cache",permalink:"/docs/ox_lib/Client/cache",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_lib/Client/cache.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"TextUI",permalink:"/docs/ox_lib/Client/Interface/textui"},next:{title:"Callbacks",permalink:"/docs/ox_lib/Client/callback"}},s={},p=[{value:"States",id:"states",level:2},{value:"lib.onCache",id:"liboncache",level:2}],d={toc:p};function b(e){var t=e.components,n=(0,a.Z)(e,o);return(0,c.kt)("wrapper",(0,r.Z)({},d,n,{components:t,mdxType:"MDXLayout"}),(0,c.kt)("h1",{id:"cache"},"Cache"),(0,c.kt)("p",null,"Caches data related to the player and handling some events or statebags.",(0,c.kt)("br",{parentName:"p"}),"\n","An interval runs every 100ms to update data that cannot be checked via handlers. "),(0,c.kt)("p",null,(0,c.kt)("a",{parentName:"p",href:"https://github.com/overextended/ox_lib/blob/master/resource/cache/client.lua"},"https://github.com/overextended/ox_lib/blob/master/resource/cache/client.lua")),(0,c.kt)("h2",{id:"states"},"States"),(0,c.kt)("pre",null,(0,c.kt)("code",{parentName:"pre",className:"language-lua"},"cache.ped -- player entity id\ncache.vehicle -- vehicle entity id\ncache.seat -- vehicle seat index\n")),(0,c.kt)("h2",{id:"liboncache"},"lib.onCache"),(0,c.kt)("p",null,"Register a callback function when the value is changed."),(0,c.kt)("pre",null,(0,c.kt)("code",{parentName:"pre",className:"language-lua"},"lib.onCache('vehicle', function(value)\n print('vehicle', value)\nend)\n\nlib.onCache('seat', function(value)\n print('seat', value)\nend)\n")))}b.isMDXComponent=!0}}]);
+1
View File
@@ -0,0 +1 @@
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7653],{3905:function(e,n,t){t.d(n,{Zo:function(){return u},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 a(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 i(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){o(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function s(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var c=r.createContext({}),l=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},u=function(e){var n=l(e.components);return r.createElement(c.Provider,{value:n},e.children)},d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},p=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,u=s(e,["components","mdxType","originalType","parentName"]),p=l(t),m=o,f=p["".concat(c,".").concat(m)]||p[m]||d[m]||a;return t?r.createElement(f,i(i({ref:n},u),{},{components:t})):r.createElement(f,i({ref:n},u))}));function m(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=p;var s={};for(var c in n)hasOwnProperty.call(n,c)&&(s[c]=n[c]);s.originalType=e,s.mdxType="string"==typeof e?e:o,i[1]=s;for(var l=2;l<a;l++)i[l]=t[l];return r.createElement.apply(null,i)}return r.createElement.apply(null,t)}p.displayName="MDXCreateElement"},6469:function(e,n,t){t.r(n),t.d(n,{frontMatter:function(){return s},contentTitle:function(){return c},metadata:function(){return l},assets:function(){return u},toc:function(){return d},default:function(){return m}});var r=t(7462),o=t(3366),a=(t(7294),t(3905)),i=["components"],s={},c="Configuration",l={unversionedId:"ox_inventory/config",id:"ox_inventory/config",title:"Configuration",description:"You can add these settings directly to your 'server.cfg', or add them to a separate file (i.e. inventory.cfg) and call it with exec.",source:"@site/docs/ox_inventory/config.md",sourceDirName:"ox_inventory",slug:"/ox_inventory/config",permalink:"/docs/ox_inventory/config",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_inventory/config.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Creating custom stashes",permalink:"/docs/ox_inventory/Guides/stashes"},next:{title:"Getting Started",permalink:"/docs/ox_inventory/"}},u={},d=[],p={toc:d};function m(e){var n=e.components,t=(0,o.Z)(e,i);return(0,a.kt)("wrapper",(0,r.Z)({},p,t,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"configuration"},"Configuration"),(0,a.kt)("p",null,"You can add these settings directly to your 'server.cfg', or add them to a separate file (i.e. inventory.cfg) and call it with ",(0,a.kt)("inlineCode",{parentName:"p"},"exec"),"."),(0,a.kt)("div",{className:"admonition admonition-caution alert alert--warning"},(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:"16",height:"16",viewBox:"0 0 16 16"},(0,a.kt)("path",{parentName:"svg",fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"}))),"caution")),(0,a.kt)("div",{parentName:"div",className:"admonition-content"},(0,a.kt)("p",{parentName:"div"},"Convars ",(0,a.kt)("strong",{parentName:"p"},"must")," be set before starting ox_inventory."))),(0,a.kt)("p",null,"The values below are ",(0,a.kt)("em",{parentName:"p"},"defaults")," and should not be explicitly set unless changing the value."),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-yml"},'# Activate specific event handlers and functions (supported: ox, esx)\nsetr inventory:framework "esx"\n\n# Load specific language file from data/locales\nsetr inventory:locale "en"\n\n# Number of slots for player inventories\nsetr inventory:slots 50\n\n# Maximum carry capacity for players, iLine truncated
-1
View File
@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7653],{3905:function(e,n,t){t.d(n,{Zo:function(){return d},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 a(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 i(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){o(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function s(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var c=r.createContext({}),l=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},d=function(e){var n=l(e.components);return r.createElement(c.Provider,{value:n},e.children)},u={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},p=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,d=s(e,["components","mdxType","originalType","parentName"]),p=l(t),m=o,v=p["".concat(c,".").concat(m)]||p[m]||u[m]||a;return t?r.createElement(v,i(i({ref:n},d),{},{components:t})):r.createElement(v,i({ref:n},d))}));function m(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=p;var s={};for(var c in n)hasOwnProperty.call(n,c)&&(s[c]=n[c]);s.originalType=e,s.mdxType="string"==typeof e?e:o,i[1]=s;for(var l=2;l<a;l++)i[l]=t[l];return r.createElement.apply(null,i)}return r.createElement.apply(null,t)}p.displayName="MDXCreateElement"},6469:function(e,n,t){t.r(n),t.d(n,{frontMatter:function(){return s},contentTitle:function(){return c},metadata:function(){return l},assets:function(){return d},toc:function(){return u},default:function(){return m}});var r=t(7462),o=t(3366),a=(t(7294),t(3905)),i=["components"],s={},c="Configuration",l={unversionedId:"ox_inventory/config",id:"ox_inventory/config",title:"Configuration",description:"You can add these settings directly to your 'server.cfg', or add them to a separate file and call it with exec.",source:"@site/docs/ox_inventory/config.md",sourceDirName:"ox_inventory",slug:"/ox_inventory/config",permalink:"/docs/ox_inventory/config",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_inventory/config.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Creating custom stashes",permalink:"/docs/ox_inventory/Guides/stashes"},next:{title:"Getting Started",permalink:"/docs/ox_inventory/"}},d={},u=[],p={toc:u};function m(e){var n=e.components,t=(0,o.Z)(e,i);return(0,a.kt)("wrapper",(0,r.Z)({},p,t,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"configuration"},"Configuration"),(0,a.kt)("p",null,"You can add these settings directly to your 'server.cfg', or add them to a separate file and call it with ",(0,a.kt)("inlineCode",{parentName:"p"},"exec"),"."),(0,a.kt)("div",{className:"admonition admonition-caution alert alert--warning"},(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:"16",height:"16",viewBox:"0 0 16 16"},(0,a.kt)("path",{parentName:"svg",fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"}))),"caution")),(0,a.kt)("div",{parentName:"div",className:"admonition-content"},(0,a.kt)("p",{parentName:"div"},"Convars ",(0,a.kt)("strong",{parentName:"p"},"must")," be set before starting ox_inventory."))),(0,a.kt)("p",null,"The values below are ",(0,a.kt)("em",{parentName:"p"},"defaults")," and should not be explicitly set unless changing the value."),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-yml"},'# Activate specific event handlers and functions (supported: ox, esx)\nsetr inventory:framework "esx"\n\n# Load specific language file from data/locales\nsetr inventory:locale "en"\n\n# Number of slots for player inventories\nsetr inventory:slots 50\n\n# Maximum carry capacity for players, in kilograms\nsetr inventory:weight 30000\nLine truncated
+1
View File
@@ -0,0 +1 @@
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3128],{8215:function(e,t,n){n.d(t,{Z:function(){return o}});var a=n(7294);function o(e){var t=e.children,n=e.hidden,o=e.className;return a.createElement("div",{role:"tabpanel",hidden:n,className:o},t)}},9877:function(e,t,n){n.d(t,{Z:function(){return u}});var a=n(7462),o=n(7294),r=n(2389),i=n(3725),l=n(6010),s="tabItem_LplD";function d(e){var t,n,r,d=e.lazy,u=e.block,m=e.defaultValue,c=e.values,p=e.groupId,h=e.className,v=o.Children.map(e.children,(function(e){if((0,o.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!=c?c:v.map((function(e){var t=e.props;return{value:t.value,label:t.label,attributes:t.attributes}})),k=(0,i.lx)(f,(function(e,t){return e.value===t.value}));if(k.length>0)throw new Error('Docusaurus error: Duplicate values "'+k.map((function(e){return e.value})).join(", ")+'" found in <Tabs>. Every value needs to be unique.');var y=null===m?m:null!=(t=null!=m?m:null==(n=v.find((function(e){return e.props.default})))?void 0:n.props.value)?t:null==(r=v[0])?void 0:r.props.value;if(null!==y&&!f.some((function(e){return e.value===y})))throw new Error('Docusaurus error: The <Tabs> has a defaultValue "'+y+'" 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 b=(0,i.UB)(),g=b.tabGroupChoices,x=b.setTabGroupChoices,w=(0,o.useState)(y),N=w[0],I=w[1],T=[],_=(0,i.o5)().blockElementScrollPositionUntilNextRender;if(null!=p){var q=g[p];null!=q&&q!==N&&f.some((function(e){return e.value===q}))&&I(q)}var E=function(e){var t=e.currentTarget,n=T.indexOf(t),a=f[n].value;a!==N&&(_(t),I(a),null!=p&&x(p,a))},S=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 o=T.indexOf(e.currentTarget)-1;n=T[o]||T[T.length-1]}null==(t=n)||t.focus()};return o.createElement("div",{className:"tabs-container"},o.createElement("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,l.Z)("tabs",{"tabs--block":u},h)},f.map((function(e){var t=e.value,n=e.label,r=e.attributes;return o.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:S,onFocus:E,onClick:E},r,{className:(0,l.Z)("tabs__item",s,null==r?void 0:r.className,{"tabs__item--active":N===t})}),null!=n?n:t)}))),d?(0,o.cloneElement)(v.filter((function(e){return e.props.value===N}))[0],{className:"margin-vert--md"}):o.createElement("div",{className:"margin-vert--md"},v.map((function(e,t){return(0,o.cloneElement)(e,{key:t,hidden:e.props.value!==N})}))))}function u(e){var t=(0,r.Z)();return o.createElement(d,(0,a.Z)({key:String(t)},e))}},1280:function(e,t,n){var a=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 a.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&&a.createElement("div",{style:t},e.icon),a.createElement("div",null,e.children),"right"===e.side&&a.createElement("div",{style:t},e.icon))}},1246:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return m},contentTitle:function(){return c},metadata:function(){return p},assets:function(){return h},toc:function(){return v},default:function(){return k}});var a=n(7462),o=n(3366),r=(n(7294),n(3905)),i=n(1280),l=n(3750),s=n(9877),d=n(8215),u=["components"],m={title:"Getting Started"},c=void 0,p={unversionedId:"ox_inventory/index",id:"ox_inventory/index",title:"Getting Started",description:"This resource is being designed with the intention of providing advanced functionality while remaining easy to use,",source:"@site/docs/ox_inventory/index.md",sourceDirName:"ox_inventory",slug:"/ox_inventory/",permalink:"/docs/ox_inventory/",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_inventory/index.md",tags:[],version:"current",frontMatter:{title:"Getting Started"},sidebar:"docs",previous:{title:"Configuration",permalink:"/docs/ox_inventory/config"}},h={},v=[{value:"Dependencies",id:"dependencies",level:2},{value:"OxMySQL",id:"oxmysql",level:3},{value:"Ox Lib",id:"ox-lib",level:3},{value:"Production Build",id:"production-build",level:3},{value:"Optional resources",id:"optional-resources",level:2},{value:"qtarget",id:"qtarget",level:3},{value:"NPWD",id:"npwd",level:3},{value:"Installation",id:"installation",level:3},{value:"Upgrading ESX"Line truncated
-1
View File
@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3128],{8215:function(e,t,n){n.d(t,{Z:function(){return o}});var a=n(7294);function o(e){var t=e.children,n=e.hidden,o=e.className;return a.createElement("div",{role:"tabpanel",hidden:n,className:o},t)}},9877:function(e,t,n){n.d(t,{Z:function(){return u}});var a=n(7462),o=n(7294),i=n(2389),r=n(3725),l=n(6010),s="tabItem_LplD";function d(e){var t,n,i,d=e.lazy,u=e.block,c=e.defaultValue,m=e.values,p=e.groupId,h=e.className,v=o.Children.map(e.children,(function(e){if((0,o.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!=m?m:v.map((function(e){var t=e.props;return{value:t.value,label:t.label,attributes:t.attributes}})),k=(0,r.lx)(f,(function(e,t){return e.value===t.value}));if(k.length>0)throw new Error('Docusaurus error: Duplicate values "'+k.map((function(e){return e.value})).join(", ")+'" found in <Tabs>. Every value needs to be unique.');var y=null===c?c:null!=(t=null!=c?c:null==(n=v.find((function(e){return e.props.default})))?void 0:n.props.value)?t:null==(i=v[0])?void 0:i.props.value;if(null!==y&&!f.some((function(e){return e.value===y})))throw new Error('Docusaurus error: The <Tabs> has a defaultValue "'+y+'" 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 b=(0,r.UB)(),g=b.tabGroupChoices,x=b.setTabGroupChoices,w=(0,o.useState)(y),N=w[0],I=w[1],T=[],_=(0,r.o5)().blockElementScrollPositionUntilNextRender;if(null!=p){var q=g[p];null!=q&&q!==N&&f.some((function(e){return e.value===q}))&&I(q)}var E=function(e){var t=e.currentTarget,n=T.indexOf(t),a=f[n].value;a!==N&&(_(t),I(a),null!=p&&x(p,a))},S=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 o=T.indexOf(e.currentTarget)-1;n=T[o]||T[T.length-1]}null==(t=n)||t.focus()};return o.createElement("div",{className:"tabs-container"},o.createElement("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,l.Z)("tabs",{"tabs--block":u},h)},f.map((function(e){var t=e.value,n=e.label,i=e.attributes;return o.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:S,onFocus:E,onClick:E},i,{className:(0,l.Z)("tabs__item",s,null==i?void 0:i.className,{"tabs__item--active":N===t})}),null!=n?n:t)}))),d?(0,o.cloneElement)(v.filter((function(e){return e.props.value===N}))[0],{className:"margin-vert--md"}):o.createElement("div",{className:"margin-vert--md"},v.map((function(e,t){return(0,o.cloneElement)(e,{key:t,hidden:e.props.value!==N})}))))}function u(e){var t=(0,i.Z)();return o.createElement(d,(0,a.Z)({key:String(t)},e))}},1280:function(e,t,n){var a=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 a.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&&a.createElement("div",{style:t},e.icon),a.createElement("div",null,e.children),"right"===e.side&&a.createElement("div",{style:t},e.icon))}},1246:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return c},contentTitle:function(){return m},metadata:function(){return p},assets:function(){return h},toc:function(){return v},default:function(){return k}});var a=n(7462),o=n(3366),i=(n(7294),n(3905)),r=n(1280),l=n(3750),s=n(9877),d=n(8215),u=["components"],c={title:"Getting Started"},m=void 0,p={unversionedId:"ox_inventory/index",id:"ox_inventory/index",title:"Getting Started",description:"This resource is being designed with the intention of providing advanced functionality while remaining easy to use,",source:"@site/docs/ox_inventory/index.md",sourceDirName:"ox_inventory",slug:"/ox_inventory/",permalink:"/docs/ox_inventory/",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_inventory/index.md",tags:[],version:"current",frontMatter:{title:"Getting Started"},sidebar:"docs",previous:{title:"Configuration",permalink:"/docs/ox_inventory/config"}},h={},v=[{value:"Dependencies",id:"dependencies",level:2},{value:"OxMySQL",id:"oxmysql",level:3},{value:"Ox Lib",id:"ox-lib",level:3},{value:"Production Build",id:"production-build",level:3},{value:"Optional resources",id:"optional-resources",level:2},{value:"qtarget",id:"qtarget",level:3},{value:"NPWD",id:"npwd",level:3},{value:"Installation",id:"installation",level:3},{value:"Upgrading ESX"Line truncated
-1
View File
@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5290],{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 a(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 i(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){o(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function l(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var c=r.createContext({}),s=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},p=function(e){var n=s(e.components);return r.createElement(c.Provider,{value:n},e.children)},u={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},d=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,a=e.originalType,c=e.parentName,p=l(e,["components","mdxType","originalType","parentName"]),d=s(t),m=o,f=d["".concat(c,".").concat(m)]||d[m]||u[m]||a;return t?r.createElement(f,i(i({ref:n},p),{},{components:t})):r.createElement(f,i({ref:n},p))}));function m(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=d;var l={};for(var c in n)hasOwnProperty.call(n,c)&&(l[c]=n[c]);l.originalType=e,l.mdxType="string"==typeof e?e:o,i[1]=l;for(var s=2;s<a;s++)i[s]=t[s];return r.createElement.apply(null,i)}return r.createElement.apply(null,t)}d.displayName="MDXCreateElement"},7679:function(e,n,t){t.r(n),t.d(n,{frontMatter:function(){return l},contentTitle:function(){return c},metadata:function(){return s},assets:function(){return p},toc:function(){return u},default:function(){return m}});var r=t(7462),o=t(3366),a=(t(7294),t(3905)),i=["components"],l={},c=void 0,s={unversionedId:"ox_inventory/Functions/Client/Interface/Progress",id:"ox_inventory/Functions/Client/Interface/Progress",title:"Progress",description:"Starts a progress bar that can callback a function upon completion or cancellation.",source:"@site/docs/ox_inventory/Functions/Client/Interface/Progress.md",sourceDirName:"ox_inventory/Functions/Client/Interface",slug:"/ox_inventory/Functions/Client/Interface/Progress",permalink:"/docs/ox_inventory/Functions/Client/Interface/Progress",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_inventory/Functions/Client/Interface/Progress.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Keyboard",permalink:"/docs/ox_inventory/Functions/Client/Interface/Keyboard"},next:{title:"Search",permalink:"/docs/ox_inventory/Functions/Client/Inventory/Search"}},p={},u=[{value:"CancelProgress",id:"cancelprogress",level:3},{value:"ProgressActive",id:"progressactive",level:3}],d={toc:u};function m(e){var n=e.components,t=(0,o.Z)(e,i);return(0,a.kt)("wrapper",(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("p",null,"Starts a progress bar that can callback a function upon completion or cancellation."),(0,a.kt)("p",null,"Prevents actions such as opening the inventory, reloading, etc."),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-lua"},"-- options: table\n-- completed: function\nexports.ox_inventory:Progress(options, completed)\n")),(0,a.kt)("p",null,"Options table values:"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-lua"},"-- duration: number\n-- label: string\n-- useWhileDead: boolean (optional)\n-- canCancel: boolean (optional)\n-- anim: table (optional)\n -- dict: string\n -- clip: string\n -- flag: number (optional - default is 49)\n-- scenario: string (optional)\n-- prop/propTwo: table (optional)\n -- model: hash or string\n -- bone: number (optional - default is 60309)\n -- pos: vector3 (optional)\n -- rot: vector3 (optional)\n-- disable: table (optional)\n -- move: boolean (optional)\n -- car: boolean (optional)\n -- combat: boolean (optional)\n -- mouse: boolean (optional)\n")),(0,a.kt)("div",{className:"admonition admonition-danger alert alert--danger"},(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:"sLine truncated
-1
View File
@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[6508],{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 a(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 c(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 u=r.createContext({}),s=function(e){var t=r.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):a(a({},t),e)),n},l=function(e){var t=s(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)}},f=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,i=e.originalType,u=e.parentName,l=c(e,["components","mdxType","originalType","parentName"]),f=s(n),m=o,y=f["".concat(u,".").concat(m)]||f[m]||p[m]||i;return n?r.createElement(y,a(a({ref:t},l),{},{components:n})):r.createElement(y,a({ref:t},l))}));function m(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,a=new Array(i);a[0]=f;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,a[1]=c;for(var s=2;s<i;s++)a[s]=n[s];return r.createElement.apply(null,a)}return r.createElement.apply(null,n)}f.displayName="MDXCreateElement"},8338:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return c},contentTitle:function(){return u},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)),a=["components"],c={},u=void 0,s={unversionedId:"ox_inventory/Functions/Client/Inventory/Search",id:"ox_inventory/Functions/Client/Inventory/Search",title:"Search",description:"Searches the inventory for a specified item.",source:"@site/docs/ox_inventory/Functions/Client/Inventory/Search.md",sourceDirName:"ox_inventory/Functions/Client/Inventory",slug:"/ox_inventory/Functions/Client/Inventory/Search",permalink:"/docs/ox_inventory/Functions/Client/Inventory/Search",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_inventory/Functions/Client/Inventory/Search.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Progress",permalink:"/docs/ox_inventory/Functions/Client/Interface/Progress"},next:{title:"Items",permalink:"/docs/ox_inventory/Functions/Client/Items"}},l={},p=[],f={toc:p};function m(e){var t=e.components,n=(0,o.Z)(e,a);return(0,i.kt)("wrapper",(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("p",null,"Searches the inventory for a specified item."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-lua"},"-- search: string\n-- item: table or string\n-- metadata: table or string (optional)\nexports.ox_inventory:Search(search, item, metadata)\n")),(0,i.kt)("p",null,"If the ",(0,i.kt)("inlineCode",{parentName:"p"},"search")," argument is defined as ",(0,i.kt)("inlineCode",{parentName:"p"},"'slots'")," the return will be a table\nof slots where the item was found at."),(0,i.kt)("p",null,"Otherwise if the ",(0,i.kt)("inlineCode",{parentName:"p"},"search")," argument is defined as ",(0,i.kt)("inlineCode",{parentName:"p"},"'count'")," the return value\nwill be the amount of the specified item in player's inventory."))}m.isMDXComponent=!0}}]);
+1
View File
@@ -0,0 +1 @@
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[6508],{3905:function(e,n,t){t.d(n,{Zo:function(){return s},kt:function(){return m}});var r=t(7294);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(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 l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?o(Object(t),!0).forEach((function(n){a(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function i(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var u=r.createContext({}),c=function(e){var n=r.useContext(u),t=n;return e&&(t="function"==typeof e?e(n):l(l({},n),e)),t},s=function(e){var n=c(e.components);return r.createElement(u.Provider,{value:n},e.children)},p={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},d=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,o=e.originalType,u=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),d=c(t),m=a,v=d["".concat(u,".").concat(m)]||d[m]||p[m]||o;return t?r.createElement(v,l(l({ref:n},s),{},{components:t})):r.createElement(v,l({ref:n},s))}));function m(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var o=t.length,l=new Array(o);l[0]=d;var i={};for(var u in n)hasOwnProperty.call(n,u)&&(i[u]=n[u]);i.originalType=e,i.mdxType="string"==typeof e?e:a,l[1]=i;for(var c=2;c<o;c++)l[c]=t[c];return r.createElement.apply(null,l)}return r.createElement.apply(null,t)}d.displayName="MDXCreateElement"},8215:function(e,n,t){t.d(n,{Z:function(){return a}});var r=t(7294);function a(e){var n=e.children,t=e.hidden,a=e.className;return r.createElement("div",{role:"tabpanel",hidden:t,className:a},n)}},9877:function(e,n,t){t.d(n,{Z:function(){return s}});var r=t(7462),a=t(7294),o=t(2389),l=t(3725),i=t(6010),u="tabItem_LplD";function c(e){var n,t,o,c=e.lazy,s=e.block,p=e.defaultValue,d=e.values,m=e.groupId,v=e.className,f=a.Children.map(e.children,(function(e){if((0,a.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.')})),h=null!=d?d:f.map((function(e){var n=e.props;return{value:n.value,label:n.label,attributes:n.attributes}})),y=(0,l.lx)(h,(function(e,n){return e.value===n.value}));if(y.length>0)throw new Error('Docusaurus error: Duplicate values "'+y.map((function(e){return e.value})).join(", ")+'" found in <Tabs>. Every value needs to be unique.');var b=null===p?p:null!=(n=null!=p?p:null==(t=f.find((function(e){return e.props.default})))?void 0:t.props.value)?n:null==(o=f[0])?void 0:o.props.value;if(null!==b&&!h.some((function(e){return e.value===b})))throw new Error('Docusaurus error: The <Tabs> has a defaultValue "'+b+'" but none of its children has the corresponding value. Available values are: '+h.map((function(e){return e.value})).join(", ")+". If you intend to show no default tab, use defaultValue={null} instead.");var g=(0,l.UB)(),k=g.tabGroupChoices,w=g.setTabGroupChoices,x=(0,a.useState)(b),T=x[0],O=x[1],N=[],S=(0,l.o5)().blockElementScrollPositionUntilNextRender;if(null!=m){var C=k[m];null!=C&&C!==T&&h.some((function(e){return e.value===C}))&&O(C)}var E=function(e){var n=e.currentTarget,t=N.indexOf(n),r=h[t].value;r!==T&&(S(n),O(r),null!=m&&w(m,r))},I=function(e){var n,t=null;switch(e.key){case"ArrowRight":var r=N.indexOf(e.currentTarget)+1;t=N[r]||N[0];break;case"ArrowLeft":var a=N.indexOf(e.currentTarget)-1;t=N[a]||N[N.length-1]}null==(n=t)||n.focus()};return a.createElement("div",{className:"tabs-container"},a.createElement("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,i.Z)("tabs",{"tabs--block":s},v)},h.map((function(e){var n=e.value,t=e.label,o=e.attributes;return a.createElement("li",(0,r.Z)({role:"tab",tabIndex:T===n?0:-1,"aria-selected":T===n,key:n,ref:function(e){return N.push(e)},onKeyDown:I,onFocus:E,onClick:E},o,{className:(0,i.Z)("tabs__item",u,null==o?void 0:o.className,{"tabs__item--active":T===n})}),null!=t?t:n)}))),c?(0,a.cloneElement)(f.filter((function(e){return e.props.value===T}))[0],{className:"margin-vert--md"}):a.createElement("div",{className:"margin-veLine truncated
-1
View File
@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2545],{3905:function(e,n,t){t.d(n,{Zo:function(){return s},kt:function(){return d}});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 a(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 i(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){o(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(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={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var l=r.createContext({}),u=function(e){var n=r.useContext(l),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},s=function(e){var n=u(e.components);return r.createElement(l.Provider,{value:n},e.children)},p={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,a=e.originalType,l=e.parentName,s=c(e,["components","mdxType","originalType","parentName"]),f=u(t),d=o,y=f["".concat(l,".").concat(d)]||f[d]||p[d]||a;return t?r.createElement(y,i(i({ref:n},s),{},{components:t})):r.createElement(y,i({ref:n},s))}));function d(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var a=t.length,i=new Array(a);i[0]=f;var c={};for(var l in n)hasOwnProperty.call(n,l)&&(c[l]=n[l]);c.originalType=e,c.mdxType="string"==typeof e?e:o,i[1]=c;for(var u=2;u<a;u++)i[u]=t[u];return r.createElement.apply(null,i)}return r.createElement.apply(null,t)}f.displayName="MDXCreateElement"},378:function(e,n,t){t.r(n),t.d(n,{frontMatter:function(){return c},contentTitle:function(){return l},metadata:function(){return u},assets:function(){return s},toc:function(){return p},default:function(){return d}});var r=t(7462),o=t(3366),a=(t(7294),t(3905)),i=["components"],c={},l=void 0,u={unversionedId:"ox_inventory/Functions/Client/Interface/Keyboard",id:"ox_inventory/Functions/Client/Interface/Keyboard",title:"Keyboard",description:"Opens a keyboard input dialog.",source:"@site/docs/ox_inventory/Functions/Client/Interface/Keyboard.md",sourceDirName:"ox_inventory/Functions/Client/Interface",slug:"/ox_inventory/Functions/Client/Interface/Keyboard",permalink:"/docs/ox_inventory/Functions/Client/Interface/Keyboard",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_inventory/Functions/Client/Interface/Keyboard.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Getting Started",permalink:"/docs/ox_lib/"},next:{title:"Progress",permalink:"/docs/ox_inventory/Functions/Client/Interface/Progress"}},s={},p=[],f={toc:p};function d(e){var n=e.components,t=(0,o.Z)(e,i);return(0,a.kt)("wrapper",(0,r.Z)({},f,t,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("p",null,"Opens a keyboard input dialog."),(0,a.kt)("p",null,"The ",(0,a.kt)("inlineCode",{parentName:"p"},"rows")," param takes a table of strings where each string entry will represent\na single row."),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-lua"},"-- header: string\n-- rows: table\nexports.ox_inventory:Keyboard(header, rows)\n")),(0,a.kt)("p",null,"Returns a table of strings where the first index is going to be the first row of the dialog,\nthe second index the second row and so on."),(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 input = exports.ox_inventory:Keyboard('Money transfer', {'Player name', 'Amount'})\n\nif input then\n local playerName = input[1]\n local amount = tonumber(input[2])\n\n if not playerName or not amount then return end\nend\n")))}d.isMDXComponent=!0}}]);
-1
View File
@@ -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":"Client","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"Interface","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Context Menu","href":"/docs/ox_lib/Client/Interface/context","docId":"ox_lib/Client/Interface/context"},{"type":"link","label":"Input Dialog","href":"/docs/ox_lib/Client/Interface/input","docId":"ox_lib/Client/Interface/input"},{"type":"link","label":"Notifications","href":"/docs/ox_lib/Client/Interface/notify","docId":"ox_lib/Client/Interface/notify"},{"type":"link","label":"Progress","href":"/docs/ox_lib/Client/Interface/progress","docId":"ox_lib/Client/Interface/progress"},{"type":"link","label":"TextUI","href":"/docs/ox_lib/Client/Interface/textui","docId":"ox_lib/Client/Interface/textui"}]},{"type":"link","label":"Cache","href":"/docs/ox_lib/Client/cache","docId":"ox_lib/Client/cache"},{"type":"link","label":"Callbacks","href":"/docs/ox_lib/Client/callback","docId":"ox_lib/Client/callback"},{"type":"link","label":"Disable Controls","href":"/docs/ox_lib/Client/disableControls","docId":"ox_lib/Client/disableControls"},{"type":"link","label":"Misc","href":"/docs/ox_lib/Client/misc","docId":"ox_lib/Client/misc"},{"type":"link","label":"Points","href":"/docs/ox_lib/Client/points","docId":"ox_lib/Client/points"},{"type":"link","label":"Streaming","href":"/docs/ox_lib/Client/streaming","docId":"ox_lib/Client/streaming"},{"type":"link","label":"Vehicle Properties","href":"/docs/ox_lib/Client/vehicleProperties","docId":"ox_lib/Client/vehicleProperties"}]},{"type":"category","label":"Server","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Permissions","href":"/docs/ox_lib/Server/acl","docId":"ox_lib/Server/acl"},{"type":"link","label":"Command","href":"/docs/ox_lib/Server/addCommand","docId":"ox_lib/Server/addCommand"},{"type":"link","label":"Callbacks","href":"/docs/ox_lib/Server/callback","docId":"ox_lib/Server/callback"},{"type":"link","label":"Version check","href":"/docs/ox_lib/Server/version","docId":"ox_lib/Server/version"}]},{"type":"category","label":"Shared","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Dependency version","href":"/docs/ox_lib/Shared/version","docId":"ox_lib/Shared/version"}]},{"type":"link","label":"Getting Started","href":"/docs/ox_lib/","docId":"ox_lib/index"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Inventory","items":[{"type":"category","label":"Functions","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"Client","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"Interface","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Keyboard","href":"/docs/ox_inventory/Functions/Client/Interface/Keyboard","docId":"ox_inventory/Functions/Client/Interface/Keyboard"},{"type":"link","label":"Progress","href":"/docs/ox_inventory/Functions/Client/Interface/Progress","docId":"ox_inventory/Functions/Client/Interface/Progress"}]},{"type":"category","label":"Inventory","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Search","href":"/docs/ox_inventory/Functions/Client/Inventory/SearchLine truncated
+1
View File
@@ -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":"Client","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"Interface","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Context Menu","href":"/docs/ox_lib/Client/Interface/context","docId":"ox_lib/Client/Interface/context"},{"type":"link","label":"Input Dialog","href":"/docs/ox_lib/Client/Interface/input","docId":"ox_lib/Client/Interface/input"},{"type":"link","label":"Notifications","href":"/docs/ox_lib/Client/Interface/notify","docId":"ox_lib/Client/Interface/notify"},{"type":"link","label":"Progress","href":"/docs/ox_lib/Client/Interface/progress","docId":"ox_lib/Client/Interface/progress"},{"type":"link","label":"TextUI","href":"/docs/ox_lib/Client/Interface/textui","docId":"ox_lib/Client/Interface/textui"}]},{"type":"link","label":"Cache","href":"/docs/ox_lib/Client/cache","docId":"ox_lib/Client/cache"},{"type":"link","label":"Callbacks","href":"/docs/ox_lib/Client/callback","docId":"ox_lib/Client/callback"},{"type":"link","label":"Disable Controls","href":"/docs/ox_lib/Client/disableControls","docId":"ox_lib/Client/disableControls"},{"type":"link","label":"Misc","href":"/docs/ox_lib/Client/misc","docId":"ox_lib/Client/misc"},{"type":"link","label":"Points","href":"/docs/ox_lib/Client/points","docId":"ox_lib/Client/points"},{"type":"link","label":"Streaming","href":"/docs/ox_lib/Client/streaming","docId":"ox_lib/Client/streaming"},{"type":"link","label":"Vehicle Properties","href":"/docs/ox_lib/Client/vehicleProperties","docId":"ox_lib/Client/vehicleProperties"}]},{"type":"category","label":"Server","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Permissions","href":"/docs/ox_lib/Server/acl","docId":"ox_lib/Server/acl"},{"type":"link","label":"Command","href":"/docs/ox_lib/Server/addCommand","docId":"ox_lib/Server/addCommand"},{"type":"link","label":"Callbacks","href":"/docs/ox_lib/Server/callback","docId":"ox_lib/Server/callback"},{"type":"link","label":"Version check","href":"/docs/ox_lib/Server/version","docId":"ox_lib/Server/version"}]},{"type":"category","label":"Shared","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Dependency version","href":"/docs/ox_lib/Shared/version","docId":"ox_lib/Shared/version"}]},{"type":"link","label":"Getting Started","href":"/docs/ox_lib/","docId":"ox_lib/index"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Inventory","items":[{"type":"category","label":"Functions","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"Client","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"Inventory","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Search","href":"/docs/ox_inventory/Functions/Client/Inventory/Search","docId":"ox_inventory/Functions/Client/Inventory/Search"}]},{"type":"link","label":"Items","href":"/docs/ox_inventory/Functions/Client/Items","docId":"ox_inventory/Functions/Client/Items"},{"type":"category","label":"Utils","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"notify","href":"/docs/ox_inventory/Functions/Client/Utils/notify","docId":"ox_inventory/Functions/Client/UtLine truncated
@@ -1 +1 @@
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4434],{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 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 a(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 l(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 c=r.createContext({}),u=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):a(a({},t),e)),n},s=function(e){var t=u(e.components);return r.createElement(c.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,i=e.originalType,c=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),d=u(n),f=o,m=d["".concat(c,".").concat(f)]||d[f]||p[f]||i;return n?r.createElement(m,a(a({ref:t},s),{},{components:n})):r.createElement(m,a({ref:t},s))}));function f(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,a=new Array(i);a[0]=d;var l={};for(var c in t)hasOwnProperty.call(t,c)&&(l[c]=t[c]);l.originalType=e,l.mdxType="string"==typeof e?e:o,a[1]=l;for(var u=2;u<i;u++)a[u]=n[u];return r.createElement.apply(null,a)}return r.createElement.apply(null,n)}d.displayName="MDXCreateElement"},2192:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return l},contentTitle:function(){return c},metadata:function(){return u},assets:function(){return s},toc:function(){return p},default:function(){return f}});var r=n(7462),o=n(3366),i=(n(7294),n(3905)),a=["components"],l={title:"Getting Started"},c=void 0,u={unversionedId:"ox_lib/index",id:"ox_lib/index",title:"Getting Started",description:"ox_lib is a collection of Lua and UI functions to utilise in other resources.",source:"@site/docs/ox_lib/index.md",sourceDirName:"ox_lib",slug:"/ox_lib/",permalink:"/docs/ox_lib/",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_lib/index.md",tags:[],version:"current",frontMatter:{title:"Getting Started"},sidebar:"docs",previous:{title:"Dependency version",permalink:"/docs/ox_lib/Shared/version"},next:{title:"Keyboard",permalink:"/docs/ox_inventory/Functions/Client/Interface/Keyboard"}},s={},p=[],d={toc:p};function f(e){var t=e.components,n=(0,o.Z)(e,a);return(0,i.kt)("wrapper",(0,r.Z)({},d,n,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("p",null,"ox_lib is a collection of Lua and UI functions to utilise in other resources."),(0,i.kt)("p",null,"The UI is built in React so the code needs to be compiled into standard JS.",(0,i.kt)("br",{parentName:"p"}),"\n","If you don't know how to do this then please download the ",(0,i.kt)("a",{parentName:"p",href:"https://github.com/overextended/ox_lib/releases/latest"},"release")," (ox_lib.zip) which is ",(0,i.kt)("em",{parentName:"p"},"already")," compiled into a working resource."),(0,i.kt)("p",null,"To enable the library inside of your resource just add ",(0,i.kt)("inlineCode",{parentName:"p"},"@ox_lib/init.lua")," to ",(0,i.kt)("inlineCode",{parentName:"p"},"shared_scripts")," or\na ",(0,i.kt)("inlineCode",{parentName:"p"},"shared_script")," in your ",(0,i.kt)("inlineCode",{parentName:"p"},"fxmanifest.lua")," file."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-lua"},"shared_scripts {\n '@ox_lib/init.lua'\n}\n")),(0,i.kt)("p",null,"Or if the library is the only shared script you use you can do:"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-lua"},"shared_script '@ox_lib/init.lua'\n")),(0,i.kt)("p",null,"That's it!",(0,i.kt)("br",{parentName:"p"}),"\n","You can now use the library functions inside of your resource, check the rest of the\ndocumentation to see how to utilise them."))}f.isMDXComponent=!0}}]);
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4434],{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 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 a(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 l(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 c=r.createContext({}),u=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):a(a({},t),e)),n},s=function(e){var t=u(e.components);return r.createElement(c.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,i=e.originalType,c=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),d=u(n),f=o,m=d["".concat(c,".").concat(f)]||d[f]||p[f]||i;return n?r.createElement(m,a(a({ref:t},s),{},{components:n})):r.createElement(m,a({ref:t},s))}));function f(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,a=new Array(i);a[0]=d;var l={};for(var c in t)hasOwnProperty.call(t,c)&&(l[c]=t[c]);l.originalType=e,l.mdxType="string"==typeof e?e:o,a[1]=l;for(var u=2;u<i;u++)a[u]=n[u];return r.createElement.apply(null,a)}return r.createElement.apply(null,n)}d.displayName="MDXCreateElement"},2192:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return l},contentTitle:function(){return c},metadata:function(){return u},assets:function(){return s},toc:function(){return p},default:function(){return f}});var r=n(7462),o=n(3366),i=(n(7294),n(3905)),a=["components"],l={title:"Getting Started"},c=void 0,u={unversionedId:"ox_lib/index",id:"ox_lib/index",title:"Getting Started",description:"ox_lib is a collection of Lua and UI functions to utilise in other resources.",source:"@site/docs/ox_lib/index.md",sourceDirName:"ox_lib",slug:"/ox_lib/",permalink:"/docs/ox_lib/",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_lib/index.md",tags:[],version:"current",frontMatter:{title:"Getting Started"},sidebar:"docs",previous:{title:"Dependency version",permalink:"/docs/ox_lib/Shared/version"},next:{title:"Search",permalink:"/docs/ox_inventory/Functions/Client/Inventory/Search"}},s={},p=[],d={toc:p};function f(e){var t=e.components,n=(0,o.Z)(e,a);return(0,i.kt)("wrapper",(0,r.Z)({},d,n,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("p",null,"ox_lib is a collection of Lua and UI functions to utilise in other resources."),(0,i.kt)("p",null,"The UI is built in React so the code needs to be compiled into standard JS.",(0,i.kt)("br",{parentName:"p"}),"\n","If you don't know how to do this then please download the ",(0,i.kt)("a",{parentName:"p",href:"https://github.com/overextended/ox_lib/releases/latest"},"release")," (ox_lib.zip) which is ",(0,i.kt)("em",{parentName:"p"},"already")," compiled into a working resource."),(0,i.kt)("p",null,"To enable the library inside of your resource just add ",(0,i.kt)("inlineCode",{parentName:"p"},"@ox_lib/init.lua")," to ",(0,i.kt)("inlineCode",{parentName:"p"},"shared_scripts")," or\na ",(0,i.kt)("inlineCode",{parentName:"p"},"shared_script")," in your ",(0,i.kt)("inlineCode",{parentName:"p"},"fxmanifest.lua")," file."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-lua"},"shared_scripts {\n '@ox_lib/init.lua'\n}\n")),(0,i.kt)("p",null,"Or if the library is the only shared script you use you can do:"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-lua"},"shared_script '@ox_lib/init.lua'\n")),(0,i.kt)("p",null,"That's it!",(0,i.kt)("br",{parentName:"p"}),"\n","You can now use the library functions inside of your resource, check the rest of the\ndocumentation to see how to utilise them."))}f.isMDXComponent=!0}}]);
+2
View File
@@ -0,0 +1,2 @@
/*! For license information please see main.5680bab4.js.LICENSE.txt */
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[179],{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"]},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.createElement("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0"},r.createElement("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})),r.createElement("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0"},r.createElement("animate",{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attriLine truncated
-2
View File
@@ -1,2 +0,0 @@
/*! For license information please see main.c492bf32.js.LICENSE.txt */
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[179],{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"]},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.createElement("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0"},r.createElement("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})),r.createElement("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0"},r.createElement("animate",{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attriLine truncated
-1
View File
@@ -1 +0,0 @@
!function(){"use strict";var e,a,f,c,t,d={},n={};function r(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,r),f.exports}r.m=d,e=[],r.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,b=0;b<f.length;b++)(!1&t||d>=t)&&Object.keys(r.O).every((function(e){return r.O[e](f[b])}))?f.splice(b--,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]},r.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(a,{a:a}),a},f=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.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);r.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},r.d(t,d),t},r.d=function(e,a){for(var f in a)r.o(a,f)&&!r.o(e,f)&&Object.defineProperty(e,f,{enumerable:!0,get:a[f]})},r.f={},r.e=function(e){return Promise.all(Object.keys(r.f).reduce((function(a,f){return r.f[f](e,a),a}),[]))},r.u=function(e){return"assets/js/"+({53:"935f2afb",219:"461f728c",336:"e836e7f0",361:"7d2d738e",763:"8c52c42d",992:"d65f8ccc",1339:"5d76cae1",1358:"afe7e8e5",1477:"b2f554cd",1521:"0f06fd08",1623:"0a2b764e",1800:"cfe61e10",1884:"c8b7a7b8",2017:"081aa3d8",2031:"dadefd20",2115:"99ade4d8",2202:"34a267b8",2446:"831ab327",2545:"7f968d64",2597:"384e58e1",3085:"1f391b9e",3120:"2c127759",3128:"2ff920a5",3149:"9a9bc35c",3218:"01e0aabd",3237:"1df93b7f",3287:"5fabe7ef",3412:"ed6cb704",3515:"3e27f708",3537:"ec013d60",3608:"9e4087bc",3656:"1efa5838",3792:"fb92962e",4270:"3a94ab6a",4434:"c2e48a87",4467:"a301658a",4571:"ddb2ec41",4677:"fe5eec09",4772:"871b43d2",4960:"a0cc59ae",5102:"bd024966",5199:"3517af41",5290:"409b9a7a",5990:"c864612b",6090:"436dd28b",6169:"03b72f95",6193:"d4a6286b",6508:"7bd87f6f",6533:"0419c24a",6635:"b3a43e68",6661:"8c5ee32e",6901:"ecb88550",6971:"c377a04b",6995:"56163916",7008:"fd4717da",7150:"a484ef80",7309:"f402e59b",7330:"011f4266",7414:"393be207",7438:"036a6f83",7653:"27ba855c",7732:"64d6ef68",7835:"23a5733a",7918:"17896441",8431:"2e6924e9",8552:"c038339d",8592:"3e61bb29",9008:"ea722c4f",9081:"475acb0d",9155:"d6b25613",9278:"75f8f779",9414:"5d7eb90d",9491:"adbed512",9514:"1be78505",9586:"85ef8f6b",9730:"daa8642d",9791:"1d131567",9874:"e381a92a",9945:"e36123ca"}[e]||e)+"."+{53:"17ed1619",138:"8c2f12a0",219:"b820160a",336:"a0b1c040",361:"c4df82e9",763:"58fbf050",992:"6b822db2",1339:"46b1d65e",1358:"e548efc7",1477:"ef5c39b9",1521:"95685abb",1623:"a5c99de4",1800:"ac8edef7",1884:"1244de6b",2017:"613dd3bb",2031:"c4f33690",2115:"bf7ac38c",2202:"7c4bf082",2446:"ad1adc8e",2545:"e9ad5f87",2597:"dd2f2a42",3085:"285892b7",3120:"b3668ffc",3128:"936d807b",3149:"a8da96bc",3218:"9a2e3610",3237:"1c5fe22a",3287:"e6dde9c7",3412:"d5a80d57",3515:"0d3a6fcb",3537:"b2c608c1",3608:"c4301948",3656:"7abcb9be",3792:"f659f77d",4270:"6c6937cd",4434:"4185dca7",4467:"ab655b70",4571:"d45737bb",4608:"622b8e38",4677:"964da253",4772:"e785d0e5",4960:"c112455b",5102:"493b5518",5199:"529a51a0",5290:"e11ed082",5897:"cc508d32",5990:"ed1ec728",6090:"c3dc6977",6169:"1a2d33bf",6193:"082dce9f",6385:"4701e2d8",6508:"6d3b3972",6533:"def12f56",6635:"deaba65f",6661:"25e86019",6901:"c047338d",6971:"43108ef0",6995:"09d0d563",7008:"31a8476e",7150:"74e7ebce",7309:"d5492e0e",7330:"f863e9e9",7414:"7d8576b6",7438:"1389c135",7653:"e6db71d6",7732:"4b5bc58d",7835:"df1e6b5a",7918:"8bdb7612",8431:"11e8bd4a",8552:"f996f09e",8592:"d33acda3",9008:"cc834782",9081:"deb057d8",9155:"bde68bfc",9278:"d53a26a2",9414:"b25c8892",9491:"f84c0c4b",9514:"437ca93b",9586:"b2584bc5",9730:"d00cf7a5",9791:"d6e4c2f7",9874:"0a4240c1",9945:"19621d8e"}[e]+".js"},r.miniCssF=function(e){},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},c={},t="website:",r.l=function(e,a,f,d){if(c[e])c[e].push(a);else{var n,b;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||(b=!0,(n=document.createElement("script")).charset="utf-8",n.timeout=120,r.nc&&n.setAttribute("nonce",r.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.onerror=l.bind(null,n.onerror),n.onload=l.Line truncated
+1
View File
@@ -0,0 +1 @@
!function(){"use strict";var e,a,f,c,t,d={},n={};function r(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,r),f.exports}r.m=d,e=[],r.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,b=0;b<f.length;b++)(!1&t||d>=t)&&Object.keys(r.O).every((function(e){return r.O[e](f[b])}))?f.splice(b--,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]},r.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(a,{a:a}),a},f=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.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);r.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},r.d(t,d),t},r.d=function(e,a){for(var f in a)r.o(a,f)&&!r.o(e,f)&&Object.defineProperty(e,f,{enumerable:!0,get:a[f]})},r.f={},r.e=function(e){return Promise.all(Object.keys(r.f).reduce((function(a,f){return r.f[f](e,a),a}),[]))},r.u=function(e){return"assets/js/"+({53:"935f2afb",219:"461f728c",336:"e836e7f0",361:"7d2d738e",763:"8c52c42d",992:"d65f8ccc",1339:"5d76cae1",1358:"afe7e8e5",1477:"b2f554cd",1521:"0f06fd08",1623:"0a2b764e",1800:"cfe61e10",1884:"c8b7a7b8",2017:"081aa3d8",2031:"dadefd20",2115:"99ade4d8",2202:"34a267b8",2446:"831ab327",2597:"384e58e1",3085:"1f391b9e",3120:"2c127759",3128:"2ff920a5",3149:"9a9bc35c",3218:"01e0aabd",3237:"1df93b7f",3287:"5fabe7ef",3412:"ed6cb704",3515:"3e27f708",3537:"ec013d60",3608:"9e4087bc",3656:"1efa5838",3792:"fb92962e",4270:"3a94ab6a",4434:"c2e48a87",4467:"a301658a",4571:"ddb2ec41",4677:"fe5eec09",4772:"871b43d2",4960:"a0cc59ae",5102:"bd024966",5199:"3517af41",5990:"c864612b",6090:"436dd28b",6169:"03b72f95",6193:"d4a6286b",6508:"7bd87f6f",6533:"0419c24a",6635:"b3a43e68",6661:"8c5ee32e",6901:"ecb88550",6971:"c377a04b",6995:"56163916",7008:"fd4717da",7150:"a484ef80",7309:"f402e59b",7330:"011f4266",7414:"393be207",7438:"036a6f83",7653:"27ba855c",7732:"64d6ef68",7835:"23a5733a",7918:"17896441",8431:"2e6924e9",8552:"c038339d",8592:"3e61bb29",9008:"ea722c4f",9081:"475acb0d",9155:"d6b25613",9278:"75f8f779",9414:"5d7eb90d",9491:"adbed512",9514:"1be78505",9586:"85ef8f6b",9730:"daa8642d",9791:"1d131567",9874:"e381a92a",9945:"e36123ca"}[e]||e)+"."+{53:"53c77cd8",138:"8c2f12a0",219:"b820160a",336:"a0b1c040",361:"c4df82e9",763:"58fbf050",992:"6b822db2",1339:"46b1d65e",1358:"e548efc7",1477:"ef5c39b9",1521:"d4ebac72",1623:"a5c99de4",1800:"ac8edef7",1884:"1244de6b",2017:"613dd3bb",2031:"c4f33690",2115:"bf7ac38c",2202:"7c4bf082",2446:"ad1adc8e",2597:"dd2f2a42",3085:"285892b7",3120:"b3668ffc",3128:"17103e82",3149:"a8da96bc",3218:"9a2e3610",3237:"1c5fe22a",3287:"e6dde9c7",3412:"d5a80d57",3515:"0d3a6fcb",3537:"b2c608c1",3608:"c4301948",3656:"7abcb9be",3792:"f659f77d",4270:"6c6937cd",4434:"f11c6f96",4467:"ab655b70",4571:"d45737bb",4608:"622b8e38",4677:"964da253",4772:"e785d0e5",4960:"c112455b",5102:"493b5518",5199:"529a51a0",5897:"cc508d32",5990:"ed1ec728",6090:"c3dc6977",6169:"1a2d33bf",6193:"082dce9f",6385:"4701e2d8",6508:"f641f65a",6533:"def12f56",6635:"deaba65f",6661:"25e86019",6901:"c047338d",6971:"43108ef0",6995:"09d0d563",7008:"31a8476e",7150:"74e7ebce",7309:"d5492e0e",7330:"f863e9e9",7414:"7d8576b6",7438:"1389c135",7653:"7d791384",7732:"4b5bc58d",7835:"df1e6b5a",7918:"8bdb7612",8431:"11e8bd4a",8552:"f996f09e",8592:"d33acda3",9008:"cc834782",9081:"deb057d8",9155:"bde68bfc",9278:"d53a26a2",9414:"b25c8892",9491:"f84c0c4b",9514:"437ca93b",9586:"b2584bc5",9730:"d00cf7a5",9791:"d6e4c2f7",9874:"0a4240c1",9945:"19621d8e"}[e]+".js"},r.miniCssF=function(e){},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},c={},t="website:",r.l=function(e,a,f,d){if(c[e])c[e].push(a);else{var n,b;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||(b=!0,(n=document.createElement("script")).charset="utf-8",n.timeout=120,r.nc&&n.setAttribute("nonce",r.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.onerror=l.bind(null,n.onerror),n.onload=l.bind(null,n.onload),b&&document.head.appendChild(n)}},r.r=functiLine truncated