This commit is contained in:
github-actions[bot] committed 2022-06-25 12:13:14 +00:00
1 parent b93aa56e5e
commit 08ea68d5b4
92 files changed
+387 -387

No files matched your search

+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 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,f=p["".concat(c,".").concat(m)]||p[m]||u[m]||a;return t?r.createElement(f,i(i({ref:n},d),{},{components:t})):r.createElement(f,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,{assets:function(){return d},contentTitle:function(){return c},default:function(){return m},frontMatter:function(){return s},metadata:function(){return l},toc:function(){return u}});var r=t(3117),o=t(102),a=(t(7294),t(3905)),i=["components"],s={sidebar_position:2},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",draft:!1,editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_inventory/config.md",tags:[],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2},sidebar:"docs",previous:{title:"Getting Started",permalink:"/docs/ox_inventory/"},next:{title:"Search",permalink:"/docs/ox_inventory/Functions/Client/Inventory/Search"}},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 (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\nseLine truncated
+1
View File
@@ -0,0 +1 @@
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3128],{5162:function(e,t,n){n.d(t,{Z:function(){return i}});var a=n(7294),o=n(6010),r="tabItem_Ymn6";function i(e){var t=e.children,n=e.hidden,i=e.className;return a.createElement("div",{role:"tabpanel",className:(0,o.Z)(r,i),hidden:n},t)}},5488:function(e,t,n){n.d(t,{Z:function(){return c}});var a=n(3117),o=n(7294),r=n(6010),i=n(2389),l=n(7392),s=n(7094),d=n(2466),u="tabList__CuJ",p="tabItem_LNqP";function m(e){var t,n,i=e.lazy,m=e.block,c=e.defaultValue,h=e.values,v=e.groupId,f=e.className,k=o.Children.map(e.children,(function(e){if((0,o.isValidElement)(e)&&"value"in e.props)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.')})),y=null!=h?h:k.map((function(e){var t=e.props;return{value:t.value,label:t.label,attributes:t.attributes}})),b=(0,l.l)(y,(function(e,t){return e.value===t.value}));if(b.length>0)throw new Error('Docusaurus error: Duplicate values "'+b.map((function(e){return e.value})).join(", ")+'" found in <Tabs>. Every value needs to be unique.');var g=null===c?c:null!=(t=null!=c?c:null==(n=k.find((function(e){return e.props.default})))?void 0:n.props.value)?t:k[0].props.value;if(null!==g&&!y.some((function(e){return e.value===g})))throw new Error('Docusaurus error: The <Tabs> has a defaultValue "'+g+'" but none of its children has the corresponding value. Available values are: '+y.map((function(e){return e.value})).join(", ")+". If you intend to show no default tab, use defaultValue={null} instead.");var x=(0,s.U)(),w=x.tabGroupChoices,N=x.setTabGroupChoices,I=(0,o.useState)(g),T=I[0],_=I[1],q=[],S=(0,d.o5)().blockElementScrollPositionUntilNextRender;if(null!=v){var E=w[v];null!=E&&E!==T&&y.some((function(e){return e.value===E}))&&_(E)}var Z=function(e){var t=e.currentTarget,n=q.indexOf(t),a=y[n].value;a!==T&&(S(t),_(a),null!=v&&N(v,String(a)))},R=function(e){var t,n=null;switch(e.key){case"ArrowRight":var a,o=q.indexOf(e.currentTarget)+1;n=null!=(a=q[o])?a:q[0];break;case"ArrowLeft":var r,i=q.indexOf(e.currentTarget)-1;n=null!=(r=q[i])?r:q[q.length-1]}null==(t=n)||t.focus()};return o.createElement("div",{className:(0,r.Z)("tabs-container",u)},o.createElement("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":m},f)},y.map((function(e){var t=e.value,n=e.label,i=e.attributes;return o.createElement("li",(0,a.Z)({role:"tab",tabIndex:T===t?0:-1,"aria-selected":T===t,key:t,ref:function(e){return q.push(e)},onKeyDown:R,onFocus:Z,onClick:Z},i,{className:(0,r.Z)("tabs__item",p,null==i?void 0:i.className,{"tabs__item--active":T===t})}),null!=n?n:t)}))),i?(0,o.cloneElement)(k.filter((function(e){return e.props.value===T}))[0],{className:"margin-top--md"}):o.createElement("div",{className:"margin-top--md"},k.map((function(e,t){return(0,o.cloneElement)(e,{key:t,hidden:e.props.value!==T})}))))}function c(e){var t=(0,i.Z)();return o.createElement(m,(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,{assets:function(){return h},contentTitle:function(){return m},default:function(){return k},frontMatter:function(){return p},metadata:function(){return c},toc:function(){return v}});var a=n(3117),o=n(102),r=(n(7294),n(3905)),i=n(1280),l=n(3750),s=n(5488),d=n(5162),u=["components"],p={title:"Getting Started",sidebar_position:1},m=void 0,c={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/",draft:!1,editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_inventory/index.md",tags:[],version:"current",sidebarPosition:1,frontMatter:{title:"Getting Started",sidebar_position:1},sidebar:"docs",previous:{title:"Client",permalink:"/docs/ox_lib/Zones/Client"},next:{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"Line truncated
@@ -1 +1 @@
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2202],{3905:function(e,t,n){n.d(t,{Zo:function(){return u},kt:function(){return d}});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 o(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?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(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,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),s=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},u=function(e){var t=s(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)}},f=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,u=l(e,["components","mdxType","originalType","parentName"]),f=s(n),d=a,m=f["".concat(c,".").concat(d)]||f[d]||p[d]||o;return n?r.createElement(m,i(i({ref:t},u),{},{components:n})):r.createElement(m,i({ref:t},u))}));function d(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,i=new Array(o);i[0]=f;var l={};for(var c in t)hasOwnProperty.call(t,c)&&(l[c]=t[c]);l.originalType=e,l.mdxType="string"==typeof e?e:a,i[1]=l;for(var s=2;s<o;s++)i[s]=n[s];return r.createElement.apply(null,i)}return r.createElement.apply(null,n)}f.displayName="MDXCreateElement"},3713:function(e,t,n){n.r(t),n.d(t,{assets:function(){return u},contentTitle:function(){return c},default:function(){return d},frontMatter:function(){return l},metadata:function(){return s},toc:function(){return p}});var r=n(3117),a=n(102),o=(n(7294),n(3905)),i=["components"],l={},c="Update",s={unversionedId:"oxmysql/Usage/update",id:"oxmysql/Usage/update",title:"Update",description:"Returns the number of affected rows by the query.",source:"@site/docs/oxmysql/Usage/update.md",sourceDirName:"oxmysql/Usage",slug:"/oxmysql/Usage/update",permalink:"/docs/oxmysql/Usage/update",draft:!1,editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/oxmysql/Usage/update.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Transaction",permalink:"/docs/oxmysql/Usage/transaction"},next:{title:"Getting Started",permalink:"/docs/ox_lib/index"}},u={},p=[{value:"Lua",id:"lua",level:2},{value:"Callback",id:"callback",level:3},{value:"Promise",id:"promise",level:3},{value:"JavaScript",id:"javascript",level:2},{value:"Callback",id:"callback-1",level:3},{value:"Promise",id:"promise-1",level:3}],f={toc:p};function d(e){var t=e.components,n=(0,a.Z)(e,i);return(0,o.kt)("wrapper",(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"update"},"Update"),(0,o.kt)("p",null,"Returns the number of affected rows by the query."),(0,o.kt)("h2",{id:"lua"},"Lua"),(0,o.kt)("h3",{id:"callback"},"Callback"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-lua"},"-- Alias: exports.oxmysql:update\n-- Alias: MySQL.Async.execute\n\nMySQL.update('UPDATE users SET firstname = ? WHERE identifier = ?', {newName, playerIdentifier}, function(affectedRows)\n if affectedRows then\n print(affectedRows)\n end\nend)\n")),(0,o.kt)("h3",{id:"promise"},"Promise"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-lua"},"-- Alias: exports.oxmysql:update_async\n-- Alias: MySQL.Sync.execute\n\nCreateThread(function()\n local affectedRows = MySQL.update.await('UPDATE users SET firstname = ? WHERE identifier = ?', {newName, playerIdentifier})\n if affectedRows then\n print(affectedRows)\n end\nend)\n")),(0,o.kt)("h2",{id:"javascript"},"JavaScript"),(0,o.kt)("h3",{id:"callback-1"},"Callback"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-js"},"exports.oxmysql.update('UPDATE users SET firstname = ? WHERE identifier = ? ', [newName, playerIdentifier], function(affectedRows) {\n if (affectedRows)\n console.log(affectedRows)\n})\n")),(0,o.kt)("h3",{id:"promise-1"},"Promise"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-js"},"setImmediate(async () => {\n const id = exports.oxmysql.update_aLine truncated
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2202],{3905:function(e,t,n){n.d(t,{Zo:function(){return u},kt:function(){return d}});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 o(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?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(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,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=r.createContext({}),s=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},u=function(e){var t=s(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)}},f=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,c=e.parentName,u=l(e,["components","mdxType","originalType","parentName"]),f=s(n),d=a,m=f["".concat(c,".").concat(d)]||f[d]||p[d]||o;return n?r.createElement(m,i(i({ref:t},u),{},{components:n})):r.createElement(m,i({ref:t},u))}));function d(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,i=new Array(o);i[0]=f;var l={};for(var c in t)hasOwnProperty.call(t,c)&&(l[c]=t[c]);l.originalType=e,l.mdxType="string"==typeof e?e:a,i[1]=l;for(var s=2;s<o;s++)i[s]=n[s];return r.createElement.apply(null,i)}return r.createElement.apply(null,n)}f.displayName="MDXCreateElement"},3713:function(e,t,n){n.r(t),n.d(t,{assets:function(){return u},contentTitle:function(){return c},default:function(){return d},frontMatter:function(){return l},metadata:function(){return s},toc:function(){return p}});var r=n(3117),a=n(102),o=(n(7294),n(3905)),i=["components"],l={},c="Update",s={unversionedId:"oxmysql/Usage/update",id:"oxmysql/Usage/update",title:"Update",description:"Returns the number of affected rows by the query.",source:"@site/docs/oxmysql/Usage/update.md",sourceDirName:"oxmysql/Usage",slug:"/oxmysql/Usage/update",permalink:"/docs/oxmysql/Usage/update",draft:!1,editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/oxmysql/Usage/update.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Transaction",permalink:"/docs/oxmysql/Usage/transaction"},next:{title:"Getting Started",permalink:"/docs/ox_lib/"}},u={},p=[{value:"Lua",id:"lua",level:2},{value:"Callback",id:"callback",level:3},{value:"Promise",id:"promise",level:3},{value:"JavaScript",id:"javascript",level:2},{value:"Callback",id:"callback-1",level:3},{value:"Promise",id:"promise-1",level:3}],f={toc:p};function d(e){var t=e.components,n=(0,a.Z)(e,i);return(0,o.kt)("wrapper",(0,r.Z)({},f,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"update"},"Update"),(0,o.kt)("p",null,"Returns the number of affected rows by the query."),(0,o.kt)("h2",{id:"lua"},"Lua"),(0,o.kt)("h3",{id:"callback"},"Callback"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-lua"},"-- Alias: exports.oxmysql:update\n-- Alias: MySQL.Async.execute\n\nMySQL.update('UPDATE users SET firstname = ? WHERE identifier = ?', {newName, playerIdentifier}, function(affectedRows)\n if affectedRows then\n print(affectedRows)\n end\nend)\n")),(0,o.kt)("h3",{id:"promise"},"Promise"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-lua"},"-- Alias: exports.oxmysql:update_async\n-- Alias: MySQL.Sync.execute\n\nCreateThread(function()\n local affectedRows = MySQL.update.await('UPDATE users SET firstname = ? WHERE identifier = ?', {newName, playerIdentifier})\n if affectedRows then\n print(affectedRows)\n end\nend)\n")),(0,o.kt)("h2",{id:"javascript"},"JavaScript"),(0,o.kt)("h3",{id:"callback-1"},"Callback"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-js"},"exports.oxmysql.update('UPDATE users SET firstname = ? WHERE identifier = ? ', [newName, playerIdentifier], function(affectedRows) {\n if (affectedRows)\n console.log(affectedRows)\n})\n")),(0,o.kt)("h3",{id:"promise-1"},"Promise"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-js"},"setImmediate(async () => {\n const id = exports.oxmysql.update_async(Line truncated
@@ -1 +1 @@
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3405],{3905:function(e,n,t){t.d(n,{Zo:function(){return u},kt:function(){return b}});var o=t(7294);function r(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 o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function l(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){r(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,o,r=function(e,n){if(null==e)return{};var t,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)t=i[o],n.indexOf(t)>=0||(r[t]=e[t]);return r}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)t=i[o],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}var c=o.createContext({}),s=function(e){var n=o.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):l(l({},n),e)),t},u=function(e){var n=s(e.components);return o.createElement(c.Provider,{value:n},e.children)},p={inlineCode:"code",wrapper:function(e){var n=e.children;return o.createElement(o.Fragment,{},n)}},d=o.forwardRef((function(e,n){var t=e.components,r=e.mdxType,i=e.originalType,c=e.parentName,u=a(e,["components","mdxType","originalType","parentName"]),d=s(t),b=r,f=d["".concat(c,".").concat(b)]||d[b]||p[b]||i;return t?o.createElement(f,l(l({ref:n},u),{},{components:t})):o.createElement(f,l({ref:n},u))}));function b(e,n){var t=arguments,r=n&&n.mdxType;if("string"==typeof e||r){var i=t.length,l=new Array(i);l[0]=d;var a={};for(var c in n)hasOwnProperty.call(n,c)&&(a[c]=n[c]);a.originalType=e,a.mdxType="string"==typeof e?e:r,l[1]=a;for(var s=2;s<i;s++)l[s]=t[s];return o.createElement.apply(null,l)}return o.createElement.apply(null,t)}d.displayName="MDXCreateElement"},6104:function(e,n,t){t.r(n),t.d(n,{assets:function(){return u},contentTitle:function(){return c},default:function(){return b},frontMatter:function(){return a},metadata:function(){return s},toc:function(){return p}});var o=t(3117),r=t(102),i=(t(7294),t(3905)),l=["components"],a={},c=void 0,s={unversionedId:"ox_lib/Zones/Client",id:"ox_lib/Zones/Client",title:"Client",description:"An alternative to PolyZone utilising glm.polygon.",source:"@site/docs/ox_lib/Zones/Client.md",sourceDirName:"ox_lib/Zones",slug:"/ox_lib/Zones/Client",permalink:"/docs/ox_lib/Zones/Client",draft:!1,editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_lib/Zones/Client.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Shared",permalink:"/docs/ox_lib/Version/Shared"},next:{title:"Getting Started",permalink:"/docs/ox_inventory/index"}},u={},p=[],d={toc:p};function b(e){var n=e.components,t=(0,r.Z)(e,l);return(0,i.kt)("wrapper",(0,o.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,i.kt)("p",null,"An alternative to PolyZone utilising ",(0,i.kt)("a",{parentName:"p",href:"https://github.com/gottfriedleibniz/lua/blob/luaglm/EXTENDED.md#polygon"},"glm.polygon"),"."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-lua"},"-- data: table\n -- points: vector3[] all z values must match\n -- thickness: number (optional), default 4\n -- debug: bool (optional)\nlib.zones.poly(data)\n\n-- data: table\n -- coords: vector3\n -- size: vector3 (optional), default is vec3(4, 4, 4)\n -- rotation: number (optional), angle in degrees\n -- debug: bool (optional)\nlib.zones.box(data)\n\n-- data: table\n -- coords: vector3\n -- radius: number (optional), default is 2\n -- debug: bool (optional)\nlib.zones.sphere(data)\n")),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-lua"},"function onEnter(self)\n print('entered zone', self.id)\nend\n\nfunction onExit(self)\n print('exited zone', self.id)\nend\n\nfunction inside(self)\n print('you are inside zone ' .. self.id)\nend\n\nlocal poly = lib.zones.poly({\n points = {\n vec(413.8, -1026.1, 29),\n vec(411.6, -1023.1, 29),\n vec(412.2, -1018.0, 29),\n vec(417.2, -1016.3, 29),\n vec(422.3, -1020.0, 29),\n vec(426.8, -1015.9, 29),\n vec(431.8, -1013.0, 29),\n vec(437.3, -1018.4, 29),\n vec(432.4, -1027.2, 29),\n vec(424.7, -1023.5, 29),\n vec(420.0, -1030.2, 29),\n vec(409.8, -1028.4, 29),\n },\n thickness = 2,\n debug = true,\n inside = inside,\n onEnter = onEnter,\n onExit = onExit\n})\n\nlocal sphere = lib.zones.sphere({\n coords = vec3(442.5363, -1017.666, 28.65637),\n radius = 1,\n Line truncated
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3405],{3905:function(e,n,t){t.d(n,{Zo:function(){return u},kt:function(){return b}});var o=t(7294);function r(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 o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function l(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){r(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,o,r=function(e,n){if(null==e)return{};var t,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)t=i[o],n.indexOf(t)>=0||(r[t]=e[t]);return r}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)t=i[o],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}var c=o.createContext({}),s=function(e){var n=o.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):l(l({},n),e)),t},u=function(e){var n=s(e.components);return o.createElement(c.Provider,{value:n},e.children)},p={inlineCode:"code",wrapper:function(e){var n=e.children;return o.createElement(o.Fragment,{},n)}},d=o.forwardRef((function(e,n){var t=e.components,r=e.mdxType,i=e.originalType,c=e.parentName,u=a(e,["components","mdxType","originalType","parentName"]),d=s(t),b=r,f=d["".concat(c,".").concat(b)]||d[b]||p[b]||i;return t?o.createElement(f,l(l({ref:n},u),{},{components:t})):o.createElement(f,l({ref:n},u))}));function b(e,n){var t=arguments,r=n&&n.mdxType;if("string"==typeof e||r){var i=t.length,l=new Array(i);l[0]=d;var a={};for(var c in n)hasOwnProperty.call(n,c)&&(a[c]=n[c]);a.originalType=e,a.mdxType="string"==typeof e?e:r,l[1]=a;for(var s=2;s<i;s++)l[s]=t[s];return o.createElement.apply(null,l)}return o.createElement.apply(null,t)}d.displayName="MDXCreateElement"},6104:function(e,n,t){t.r(n),t.d(n,{assets:function(){return u},contentTitle:function(){return c},default:function(){return b},frontMatter:function(){return a},metadata:function(){return s},toc:function(){return p}});var o=t(3117),r=t(102),i=(t(7294),t(3905)),l=["components"],a={},c=void 0,s={unversionedId:"ox_lib/Zones/Client",id:"ox_lib/Zones/Client",title:"Client",description:"An alternative to PolyZone utilising glm.polygon.",source:"@site/docs/ox_lib/Zones/Client.md",sourceDirName:"ox_lib/Zones",slug:"/ox_lib/Zones/Client",permalink:"/docs/ox_lib/Zones/Client",draft:!1,editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_lib/Zones/Client.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Shared",permalink:"/docs/ox_lib/Version/Shared"},next:{title:"Getting Started",permalink:"/docs/ox_inventory/"}},u={},p=[],d={toc:p};function b(e){var n=e.components,t=(0,r.Z)(e,l);return(0,i.kt)("wrapper",(0,o.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,i.kt)("p",null,"An alternative to PolyZone utilising ",(0,i.kt)("a",{parentName:"p",href:"https://github.com/gottfriedleibniz/lua/blob/luaglm/EXTENDED.md#polygon"},"glm.polygon"),"."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-lua"},"-- data: table\n -- points: vector3[] all z values must match\n -- thickness: number (optional), default 4\n -- debug: bool (optional)\nlib.zones.poly(data)\n\n-- data: table\n -- coords: vector3\n -- size: vector3 (optional), default is vec3(4, 4, 4)\n -- rotation: number (optional), angle in degrees\n -- debug: bool (optional)\nlib.zones.box(data)\n\n-- data: table\n -- coords: vector3\n -- radius: number (optional), default is 2\n -- debug: bool (optional)\nlib.zones.sphere(data)\n")),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-lua"},"function onEnter(self)\n print('entered zone', self.id)\nend\n\nfunction onExit(self)\n print('exited zone', self.id)\nend\n\nfunction inside(self)\n print('you are inside zone ' .. self.id)\nend\n\nlocal poly = lib.zones.poly({\n points = {\n vec(413.8, -1026.1, 29),\n vec(411.6, -1023.1, 29),\n vec(412.2, -1018.0, 29),\n vec(417.2, -1016.3, 29),\n vec(422.3, -1020.0, 29),\n vec(426.8, -1015.9, 29),\n vec(431.8, -1013.0, 29),\n vec(437.3, -1018.4, 29),\n vec(432.4, -1027.2, 29),\n vec(424.7, -1023.5, 29),\n vec(420.0, -1030.2, 29),\n vec(409.8, -1028.4, 29),\n },\n thickness = 2,\n debug = true,\n inside = inside,\n onEnter = onEnter,\n onExit = onExit\n})\n\nlocal sphere = lib.zones.sphere({\n coords = vec3(442.5363, -1017.666, 28.65637),\n radius = 1,\n deLine truncated
-1
View File
@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9393],{3905:function(e,t,n){n.d(t,{Zo:function(){return u},kt:function(){return m}});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 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 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){a(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,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(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)&&(a[n]=e[n])}return a}var s=r.createContext({}),p=function(e){var t=r.useContext(s),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(s.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},c=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,i=e.originalType,s=e.parentName,u=l(e,["components","mdxType","originalType","parentName"]),c=p(n),m=a,h=c["".concat(s,".").concat(m)]||c[m]||d[m]||i;return n?r.createElement(h,o(o({ref:t},u),{},{components:n})):r.createElement(h,o({ref:t},u))}));function m(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var i=n.length,o=new Array(i);o[0]=c;var l={};for(var s in t)hasOwnProperty.call(t,s)&&(l[s]=t[s]);l.originalType=e,l.mdxType="string"==typeof e?e:a,o[1]=l;for(var p=2;p<i;p++)o[p]=n[p];return r.createElement.apply(null,o)}return r.createElement.apply(null,n)}c.displayName="MDXCreateElement"},8448:function(e,t,n){n.r(t),n.d(t,{assets:function(){return u},contentTitle:function(){return s},default:function(){return m},frontMatter:function(){return l},metadata:function(){return p},toc:function(){return d}});var r=n(3117),a=n(102),i=(n(7294),n(3905)),o=["components"],l={title:"Getting Started"},s=void 0,p={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/1-index.md",sourceDirName:"ox_lib",slug:"/ox_lib/index",permalink:"/docs/ox_lib/index",draft:!1,editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_lib/1-index.md",tags:[],version:"current",sidebarPosition:1,frontMatter:{title:"Getting Started"},sidebar:"docs",previous:{title:"Update",permalink:"/docs/oxmysql/Usage/update"},next:{title:"Server",permalink:"/docs/ox_lib/ACL/Server"}},u={},d=[],c={toc:d};function m(e){var t=e.components,n=(0,a.Z)(e,o);return(0,i.kt)("wrapper",(0,r.Z)({},c,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."),(0,i.kt)("h1",{id:"building-the-ui"},"Building the UI"),(0,i.kt)("p",null,"If you wish to edit any of the UI elements you will need to download the ",(0,i.kt)("em",{parentName:"p"},"source")," code, edit what you need and then\ncompile it."),(0,i.kt)("div",{className:"admonition admonition-danger alert alert--danger"},(0,iLine truncated
-1
View File
@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1611],{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,f=p["".concat(c,".").concat(m)]||p[m]||u[m]||a;return t?r.createElement(f,i(i({ref:n},d),{},{components:t})):r.createElement(f,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"},5250:function(e,n,t){t.r(n),t.d(n,{assets:function(){return d},contentTitle:function(){return c},default:function(){return m},frontMatter:function(){return s},metadata:function(){return l},toc:function(){return u}});var r=t(3117),o=t(102),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/2-config.md",sourceDirName:"ox_inventory",slug:"/ox_inventory/config",permalink:"/docs/ox_inventory/config",draft:!1,editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_inventory/2-config.md",tags:[],version:"current",sidebarPosition:2,frontMatter:{},sidebar:"docs",previous:{title:"Getting Started",permalink:"/docs/ox_inventory/index"},next:{title:"Search",permalink:"/docs/ox_inventory/Functions/Client/Inventory/Search"}},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 (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# Line 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":"link","label":"Getting Started","href":"/docs/ox_lib/","docId":"ox_lib/index"},{"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":"Alert Dialog","href":"/docs/ox_lib/Interface/Client/alert","docId":"ox_lib/Interface/Client/alert"},{"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","coLine truncated
-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":"link","label":"Getting Started","href":"/docs/ox_lib/index","docId":"ox_lib/index"},{"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":"Alert Dialog","href":"/docs/ox_lib/Interface/Client/alert","docId":"ox_lib/Interface/Client/alert"},{"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":"VersionLine truncated
@@ -1 +1 @@
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4764],{3905:function(e,r,n){n.d(r,{Zo:function(){return s},kt:function(){return m}});var t=n(7294);function i(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function a(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function l(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?a(Object(n),!0).forEach((function(r){i(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function o(e,r){if(null==e)return{};var n,t,i=function(e,r){if(null==e)return{};var n,t,i={},a=Object.keys(e);for(t=0;t<a.length;t++)n=a[t],r.indexOf(n)>=0||(i[n]=e[n]);return i}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t<a.length;t++)n=a[t],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var p=t.createContext({}),c=function(e){var r=t.useContext(p),n=r;return e&&(n="function"==typeof e?e(r):l(l({},r),e)),n},s=function(e){var r=c(e.components);return t.createElement(p.Provider,{value:r},e.children)},d={inlineCode:"code",wrapper:function(e){var r=e.children;return t.createElement(t.Fragment,{},r)}},u=t.forwardRef((function(e,r){var n=e.components,i=e.mdxType,a=e.originalType,p=e.parentName,s=o(e,["components","mdxType","originalType","parentName"]),u=c(n),m=i,b=u["".concat(p,".").concat(m)]||u[m]||d[m]||a;return n?t.createElement(b,l(l({ref:r},s),{},{components:n})):t.createElement(b,l({ref:r},s))}));function m(e,r){var n=arguments,i=r&&r.mdxType;if("string"==typeof e||i){var a=n.length,l=new Array(a);l[0]=u;var o={};for(var p in r)hasOwnProperty.call(r,p)&&(o[p]=r[p]);o.originalType=e,o.mdxType="string"==typeof e?e:i,l[1]=o;for(var c=2;c<a;c++)l[c]=n[c];return t.createElement.apply(null,l)}return t.createElement.apply(null,n)}u.displayName="MDXCreateElement"},7723:function(e,r,n){n.r(r),n.d(r,{assets:function(){return s},contentTitle:function(){return p},default:function(){return m},frontMatter:function(){return o},metadata:function(){return c},toc:function(){return d}});var t=n(3117),i=n(102),a=(n(7294),n(3905)),l=["components"],o={},p=void 0,c={unversionedId:"ox_lib/ACL/Server",id:"ox_lib/ACL/Server",title:"Server",description:"Wrapper around the built-in ACL system. Handles lib.addCommand and ox_groups permissions.",source:"@site/docs/ox_lib/ACL/Server.md",sourceDirName:"ox_lib/ACL",slug:"/ox_lib/ACL/Server",permalink:"/docs/ox_lib/ACL/Server",draft:!1,editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_lib/ACL/Server.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Getting Started",permalink:"/docs/ox_lib/index"},next:{title:"Server",permalink:"/docs/ox_lib/AddCommand/Server"}},s={},d=[{value:"lib.addAce",id:"libaddace",level:3},{value:"lib.removeAce",id:"libremoveace",level:3},{value:"lib.addPrincipal",id:"libaddprincipal",level:3},{value:"lib.removePrincipal",id:"libremoveprincipal",level:3}],u={toc:d};function m(e){var r=e.components,n=(0,i.Z)(e,l);return(0,a.kt)("wrapper",(0,t.Z)({},u,n,{components:r,mdxType:"MDXLayout"}),(0,a.kt)("p",null,"Wrapper around the built-in ACL system. Handles lib.addCommand and ox_groups permissions.",(0,a.kt)("br",{parentName:"p"}),"\n","Refer to ",(0,a.kt)("a",{parentName:"p",href:"https://forum.cfx.re/t/basic-aces-principals-overview-guide/90917"},"Basic Aces & Principals overview/guide")," for more information."),(0,a.kt)("h3",{id:"libaddace"},"lib.addAce"),(0,a.kt)("p",null,"Assigns the ace permission to a principal. Third parameter defaults to 'allow', while false sets the permission to 'deny'."),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-lua"},"-- principal: string\n-- ace: string\n-- allow: boolean\nlib.addAce(principal, ace, allow)\n\nlib.addAce('group.admin', 'command.say')\n")),(0,a.kt)("h3",{id:"libremoveace"},"lib.removeAce"),(0,a.kt)("p",null,"Removes the ace permission from a principal. Third parameter defaults to 'allow', while false sets the permission to 'deny'."),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-lua"},"-- principal: string\n-- ace: string\n-- allow: boolean\nlib.removeAce(principal, ace, allow)\n\nlib.removeAce('group.admin', 'command.say')\n")),(0,a.kt)("h3",{id:"libaddprincipal"},"lib.addPrincipal"),(0,a.kt)("p",null,"Assigns a principal to a parent principal. Children inherit permissions from the parent."),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-lua"},"-- child: string\n-- parent: string\nlib.addPrincipal(child, parent)\n\nlib.addPrincipal('player.1', 'gLine truncated
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4764],{3905:function(e,r,n){n.d(r,{Zo:function(){return s},kt:function(){return m}});var t=n(7294);function i(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function a(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function l(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?a(Object(n),!0).forEach((function(r){i(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function o(e,r){if(null==e)return{};var n,t,i=function(e,r){if(null==e)return{};var n,t,i={},a=Object.keys(e);for(t=0;t<a.length;t++)n=a[t],r.indexOf(n)>=0||(i[n]=e[n]);return i}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t<a.length;t++)n=a[t],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var p=t.createContext({}),c=function(e){var r=t.useContext(p),n=r;return e&&(n="function"==typeof e?e(r):l(l({},r),e)),n},s=function(e){var r=c(e.components);return t.createElement(p.Provider,{value:r},e.children)},d={inlineCode:"code",wrapper:function(e){var r=e.children;return t.createElement(t.Fragment,{},r)}},u=t.forwardRef((function(e,r){var n=e.components,i=e.mdxType,a=e.originalType,p=e.parentName,s=o(e,["components","mdxType","originalType","parentName"]),u=c(n),m=i,b=u["".concat(p,".").concat(m)]||u[m]||d[m]||a;return n?t.createElement(b,l(l({ref:r},s),{},{components:n})):t.createElement(b,l({ref:r},s))}));function m(e,r){var n=arguments,i=r&&r.mdxType;if("string"==typeof e||i){var a=n.length,l=new Array(a);l[0]=u;var o={};for(var p in r)hasOwnProperty.call(r,p)&&(o[p]=r[p]);o.originalType=e,o.mdxType="string"==typeof e?e:i,l[1]=o;for(var c=2;c<a;c++)l[c]=n[c];return t.createElement.apply(null,l)}return t.createElement.apply(null,n)}u.displayName="MDXCreateElement"},7723:function(e,r,n){n.r(r),n.d(r,{assets:function(){return s},contentTitle:function(){return p},default:function(){return m},frontMatter:function(){return o},metadata:function(){return c},toc:function(){return d}});var t=n(3117),i=n(102),a=(n(7294),n(3905)),l=["components"],o={},p=void 0,c={unversionedId:"ox_lib/ACL/Server",id:"ox_lib/ACL/Server",title:"Server",description:"Wrapper around the built-in ACL system. Handles lib.addCommand and ox_groups permissions.",source:"@site/docs/ox_lib/ACL/Server.md",sourceDirName:"ox_lib/ACL",slug:"/ox_lib/ACL/Server",permalink:"/docs/ox_lib/ACL/Server",draft:!1,editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_lib/ACL/Server.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Getting Started",permalink:"/docs/ox_lib/"},next:{title:"Server",permalink:"/docs/ox_lib/AddCommand/Server"}},s={},d=[{value:"lib.addAce",id:"libaddace",level:3},{value:"lib.removeAce",id:"libremoveace",level:3},{value:"lib.addPrincipal",id:"libaddprincipal",level:3},{value:"lib.removePrincipal",id:"libremoveprincipal",level:3}],u={toc:d};function m(e){var r=e.components,n=(0,i.Z)(e,l);return(0,a.kt)("wrapper",(0,t.Z)({},u,n,{components:r,mdxType:"MDXLayout"}),(0,a.kt)("p",null,"Wrapper around the built-in ACL system. Handles lib.addCommand and ox_groups permissions.",(0,a.kt)("br",{parentName:"p"}),"\n","Refer to ",(0,a.kt)("a",{parentName:"p",href:"https://forum.cfx.re/t/basic-aces-principals-overview-guide/90917"},"Basic Aces & Principals overview/guide")," for more information."),(0,a.kt)("h3",{id:"libaddace"},"lib.addAce"),(0,a.kt)("p",null,"Assigns the ace permission to a principal. Third parameter defaults to 'allow', while false sets the permission to 'deny'."),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-lua"},"-- principal: string\n-- ace: string\n-- allow: boolean\nlib.addAce(principal, ace, allow)\n\nlib.addAce('group.admin', 'command.say')\n")),(0,a.kt)("h3",{id:"libremoveace"},"lib.removeAce"),(0,a.kt)("p",null,"Removes the ace permission from a principal. Third parameter defaults to 'allow', while false sets the permission to 'deny'."),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-lua"},"-- principal: string\n-- ace: string\n-- allow: boolean\nlib.removeAce(principal, ace, allow)\n\nlib.removeAce('group.admin', 'command.say')\n")),(0,a.kt)("h3",{id:"libaddprincipal"},"lib.addPrincipal"),(0,a.kt)("p",null,"Assigns a principal to a parent principal. Children inherit permissions from the parent."),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-lua"},"-- child: string\n-- parent: string\nlib.addPrincipal(child, parent)\n\nlib.addPrincipal('player.1', 'group.Line truncated
+1
View File
@@ -0,0 +1 @@
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4434],{3905:function(e,t,n){n.d(t,{Zo:function(){return u},kt:function(){return m}});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 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 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){a(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,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(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)&&(a[n]=e[n])}return a}var s=r.createContext({}),p=function(e){var t=r.useContext(s),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},u=function(e){var t=p(e.components);return r.createElement(s.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},c=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,i=e.originalType,s=e.parentName,u=l(e,["components","mdxType","originalType","parentName"]),c=p(n),m=a,h=c["".concat(s,".").concat(m)]||c[m]||d[m]||i;return n?r.createElement(h,o(o({ref:t},u),{},{components:n})):r.createElement(h,o({ref:t},u))}));function m(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var i=n.length,o=new Array(i);o[0]=c;var l={};for(var s in t)hasOwnProperty.call(t,s)&&(l[s]=t[s]);l.originalType=e,l.mdxType="string"==typeof e?e:a,o[1]=l;for(var p=2;p<i;p++)o[p]=n[p];return r.createElement.apply(null,o)}return r.createElement.apply(null,n)}c.displayName="MDXCreateElement"},2192:function(e,t,n){n.r(t),n.d(t,{assets:function(){return u},contentTitle:function(){return s},default:function(){return m},frontMatter:function(){return l},metadata:function(){return p},toc:function(){return d}});var r=n(3117),a=n(102),i=(n(7294),n(3905)),o=["components"],l={title:"Getting Started",sidebar_position:1},s=void 0,p={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/",draft:!1,editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_lib/index.md",tags:[],version:"current",sidebarPosition:1,frontMatter:{title:"Getting Started",sidebar_position:1},sidebar:"docs",previous:{title:"Update",permalink:"/docs/oxmysql/Usage/update"},next:{title:"Server",permalink:"/docs/ox_lib/ACL/Server"}},u={},d=[],c={toc:d};function m(e){var t=e.components,n=(0,a.Z)(e,o);return(0,i.kt)("wrapper",(0,r.Z)({},c,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."),(0,i.kt)("h1",{id:"building-the-ui"},"Building the UI"),(0,i.kt)("p",null,"If you wish to edit any of the UI elements you will need to download the ",(0,i.kt)("em",{parentName:"p"},"source")," code, edit what you need and then\ncompile it."),(0,i.kt)("div",{className:"admonition admonition-danger alLine truncated
-1
View File
@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[6588],{5162:function(e,t,n){n.d(t,{Z:function(){return i}});var a=n(7294),o=n(6010),r="tabItem_Ymn6";function i(e){var t=e.children,n=e.hidden,i=e.className;return a.createElement("div",{role:"tabpanel",className:(0,o.Z)(r,i),hidden:n},t)}},5488:function(e,t,n){n.d(t,{Z:function(){return c}});var a=n(3117),o=n(7294),r=n(6010),i=n(2389),l=n(7392),s=n(7094),d=n(2466),u="tabList__CuJ",p="tabItem_LNqP";function m(e){var t,n,i=e.lazy,m=e.block,c=e.defaultValue,h=e.values,v=e.groupId,f=e.className,k=o.Children.map(e.children,(function(e){if((0,o.isValidElement)(e)&&"value"in e.props)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.')})),y=null!=h?h:k.map((function(e){var t=e.props;return{value:t.value,label:t.label,attributes:t.attributes}})),b=(0,l.l)(y,(function(e,t){return e.value===t.value}));if(b.length>0)throw new Error('Docusaurus error: Duplicate values "'+b.map((function(e){return e.value})).join(", ")+'" found in <Tabs>. Every value needs to be unique.');var g=null===c?c:null!=(t=null!=c?c:null==(n=k.find((function(e){return e.props.default})))?void 0:n.props.value)?t:k[0].props.value;if(null!==g&&!y.some((function(e){return e.value===g})))throw new Error('Docusaurus error: The <Tabs> has a defaultValue "'+g+'" but none of its children has the corresponding value. Available values are: '+y.map((function(e){return e.value})).join(", ")+". If you intend to show no default tab, use defaultValue={null} instead.");var x=(0,s.U)(),w=x.tabGroupChoices,N=x.setTabGroupChoices,I=(0,o.useState)(g),T=I[0],_=I[1],q=[],S=(0,d.o5)().blockElementScrollPositionUntilNextRender;if(null!=v){var E=w[v];null!=E&&E!==T&&y.some((function(e){return e.value===E}))&&_(E)}var Z=function(e){var t=e.currentTarget,n=q.indexOf(t),a=y[n].value;a!==T&&(S(t),_(a),null!=v&&N(v,String(a)))},R=function(e){var t,n=null;switch(e.key){case"ArrowRight":var a,o=q.indexOf(e.currentTarget)+1;n=null!=(a=q[o])?a:q[0];break;case"ArrowLeft":var r,i=q.indexOf(e.currentTarget)-1;n=null!=(r=q[i])?r:q[q.length-1]}null==(t=n)||t.focus()};return o.createElement("div",{className:(0,r.Z)("tabs-container",u)},o.createElement("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":m},f)},y.map((function(e){var t=e.value,n=e.label,i=e.attributes;return o.createElement("li",(0,a.Z)({role:"tab",tabIndex:T===t?0:-1,"aria-selected":T===t,key:t,ref:function(e){return q.push(e)},onKeyDown:R,onFocus:Z,onClick:Z},i,{className:(0,r.Z)("tabs__item",p,null==i?void 0:i.className,{"tabs__item--active":T===t})}),null!=n?n:t)}))),i?(0,o.cloneElement)(k.filter((function(e){return e.props.value===T}))[0],{className:"margin-top--md"}):o.createElement("div",{className:"margin-top--md"},k.map((function(e,t){return(0,o.cloneElement)(e,{key:t,hidden:e.props.value!==T})}))))}function c(e){var t=(0,i.Z)();return o.createElement(m,(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))}},7921:function(e,t,n){n.r(t),n.d(t,{assets:function(){return h},contentTitle:function(){return m},default:function(){return k},frontMatter:function(){return p},metadata:function(){return c},toc:function(){return v}});var a=n(3117),o=n(102),r=(n(7294),n(3905)),i=n(1280),l=n(3750),s=n(5488),d=n(5162),u=["components"],p={title:"Getting Started"},m=void 0,c={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/1-index.md",sourceDirName:"ox_inventory",slug:"/ox_inventory/index",permalink:"/docs/ox_inventory/index",draft:!1,editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_inventory/1-index.md",tags:[],version:"current",sidebarPosition:1,frontMatter:{title:"Getting Started"},sidebar:"docs",previous:{title:"Client",permalink:"/docs/ox_lib/Zones/Client"},next:{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:"OptionLine truncated
-2
View File
@@ -1,2 +0,0 @@
/*! For license information please see main.6ee8f5a3.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"}))}},1205:function(e,t){"use strict";var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var o,a;switch(n=n||{},r.util.type(t)){case"Object":if(a=r.util.objId(t),n[a])return n[a];for(var i in o={},n[a]=o,t)t.hasOwnProperty(i)&&(o[i]=e(t[i],n));return o;case"Array":return a=r.util.objId(t),n[a]?n[a]:(o=[],n[a]=o,t.forEach((function(t,r){o[r]=e(t,n)})),o);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){var a=(o=o||r.languages)[e],i={};for(var l in a)if(a.hasOwnProperty(l)){if(l==t)for(var s in n)n.hasOwnProperty(s)&&(i[s]=n[s]);n.hasOwnProperty(l)||(i[l]=a[l])}var u=o[e];return o[e]=i,r.languages.DFS(r.languages,(function(t,n){n===u&&t!=e&&(this[t]=i)})),i},DFS:function e(t,n,o,a){a=a||{};var i=r.util.objId;for(var l in t)if(t.hasOwnProperty(l)){n.call(t,l,t[l],o||l);var s=t[l],u=r.util.type(s);"Object"!==u||a[i(s)]?"Array"!==u||a[i(s)]||(a[i(s)]=!0,e(s,n,l,a)):(a[i(s)]=!0,e(s,n,null,a))}}},plugins:{},highlight:function(e,t,n){var a={code:e,grammar:t,language:n};return r.hooks.run("before-tokenize",a),a.tokens=r.tokenize(a.code,a.grammar),r.hooks.run("after-tokenize",a),o.stringify(r.util.encode(a.tokens),a.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new l;return s(o,o.head,e),i(e,o,t,o.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,a=0;o=n[a++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var a=o[1].length;o.index+=a,o[0]=o[0].slice(a)}return o}function i(e,t,n,l,c,d){for(var f in n)if(n.hasOwnProperty(f)&&n[f]){var p=n[f];p=Array.isArray(p)?p:[p];for(var m=0;m<p.length;++m){if(d&&d.cause==f+","+m)return;var h=p[m],v=h.inside,g=!!h.lookbehind,b=!!h.greedy,y=h.alias;if(b&&!h.pattern.global){var w=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,w+"g")}for(var x=h.pattern||h,E=l.next,S=c;E!==t.tail&&!(d&&S>=d.reach);S+=E.value.length,E=E.next){var k=E.value;if(t.length>e.length)return;if(!(k instanceof o)){var _,C=1;if(b){if(!(_=a(x,S,e,g))||_.index>=e.length)break;var I=_.index,T=_.index+_[0].length,O=S;for(O+=E.value.length;I>=O;)O+=(E=E.next).value.length;if(S=O-=E.value.length,E.value instanceof o)continue;for(var A=E;A!==t.tail&&(O<T||"string"==typeof A.value);A=A.next)C++,O+=A.value.length;C--,k=e.slice(S,O),_.index-=S}else if(!(_=a(x,0,k,g)))continue;I=_.index;var L=_[0],P=k.slice(0,I),N=k.slice(I+L.length),F=S+k.length;d&&F>d.reach&&(d.reach=F);var R=E.prev;if(P&&(R=s(t,R,P),S+=P.length),u(t,R,C),E=s(t,R,new o(f,v?r.tokenize(L,v):L,y,L)),N&&s(t,E,N),C>1){var D={cause:f+","+m,reach:F};i(e,t,n,E.prev,S,D),d&&D.reach>d.reach&&(d.reach=D.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function s(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function u(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}return o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach((function(t){o+=e(t,n)})),o}var a={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},i=t.alias;i&&(Array.isArray(i)?Array.prototyLine truncated
+2
View File
@@ -0,0 +1,2 @@
/*! For license information please see main.8f52dbba.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"}))}},1205:function(e,t){"use strict";var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var o,a;switch(n=n||{},r.util.type(t)){case"Object":if(a=r.util.objId(t),n[a])return n[a];for(var i in o={},n[a]=o,t)t.hasOwnProperty(i)&&(o[i]=e(t[i],n));return o;case"Array":return a=r.util.objId(t),n[a]?n[a]:(o=[],n[a]=o,t.forEach((function(t,r){o[r]=e(t,n)})),o);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){var a=(o=o||r.languages)[e],i={};for(var l in a)if(a.hasOwnProperty(l)){if(l==t)for(var s in n)n.hasOwnProperty(s)&&(i[s]=n[s]);n.hasOwnProperty(l)||(i[l]=a[l])}var u=o[e];return o[e]=i,r.languages.DFS(r.languages,(function(t,n){n===u&&t!=e&&(this[t]=i)})),i},DFS:function e(t,n,o,a){a=a||{};var i=r.util.objId;for(var l in t)if(t.hasOwnProperty(l)){n.call(t,l,t[l],o||l);var s=t[l],u=r.util.type(s);"Object"!==u||a[i(s)]?"Array"!==u||a[i(s)]||(a[i(s)]=!0,e(s,n,l,a)):(a[i(s)]=!0,e(s,n,null,a))}}},plugins:{},highlight:function(e,t,n){var a={code:e,grammar:t,language:n};return r.hooks.run("before-tokenize",a),a.tokens=r.tokenize(a.code,a.grammar),r.hooks.run("after-tokenize",a),o.stringify(r.util.encode(a.tokens),a.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new l;return s(o,o.head,e),i(e,o,t,o.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,a=0;o=n[a++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var a=o[1].length;o.index+=a,o[0]=o[0].slice(a)}return o}function i(e,t,n,l,c,d){for(var f in n)if(n.hasOwnProperty(f)&&n[f]){var p=n[f];p=Array.isArray(p)?p:[p];for(var m=0;m<p.length;++m){if(d&&d.cause==f+","+m)return;var h=p[m],v=h.inside,g=!!h.lookbehind,b=!!h.greedy,y=h.alias;if(b&&!h.pattern.global){var w=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,w+"g")}for(var x=h.pattern||h,E=l.next,S=c;E!==t.tail&&!(d&&S>=d.reach);S+=E.value.length,E=E.next){var k=E.value;if(t.length>e.length)return;if(!(k instanceof o)){var _,C=1;if(b){if(!(_=a(x,S,e,g))||_.index>=e.length)break;var I=_.index,T=_.index+_[0].length,O=S;for(O+=E.value.length;I>=O;)O+=(E=E.next).value.length;if(S=O-=E.value.length,E.value instanceof o)continue;for(var A=E;A!==t.tail&&(O<T||"string"==typeof A.value);A=A.next)C++,O+=A.value.length;C--,k=e.slice(S,O),_.index-=S}else if(!(_=a(x,0,k,g)))continue;I=_.index;var L=_[0],P=k.slice(0,I),N=k.slice(I+L.length),F=S+k.length;d&&F>d.reach&&(d.reach=F);var R=E.prev;if(P&&(R=s(t,R,P),S+=P.length),u(t,R,C),E=s(t,R,new o(f,v?r.tokenize(L,v):L,y,L)),N&&s(t,E,N),C>1){var D={cause:f+","+m,reach:F};i(e,t,n,E.prev,S,D),d&&D.reach>d.reach&&(d.reach=D.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function s(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function u(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}return o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach((function(t){o+=e(t,n)})),o}var a={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},i=t.alias;i&&(Array.isArray(i)?Array.prototyLine truncated
+1
View File
@@ -0,0 +1 @@
!function(){"use strict";var e,a,f,c,d,t={},n={};function r(e){var a=n[e];if(void 0!==a)return a.exports;var f=n[e]={exports:{}};return t[e].call(f.exports,f,f.exports,r),f.exports}r.m=t,e=[],r.O=function(a,f,c,d){if(!f){var t=1/0;for(u=0;u<e.length;u++){f=e[u][0],c=e[u][1],d=e[u][2];for(var n=!0,b=0;b<f.length;b++)(!1&d||t>=d)&&Object.keys(r.O).every((function(e){return r.O[e](f[b])}))?f.splice(b--,1):(n=!1,d<t&&(t=d));if(n){e.splice(u--,1);var o=c();void 0!==o&&(a=o)}}return a}d=d||0;for(var u=e.length;u>0&&e[u-1][2]>d;u--)e[u]=e[u-1];e[u]=[f,c,d]},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 d=Object.create(null);r.r(d);var t={};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){t[a]=function(){return e[a]}}));return t.default=function(){return e},r.d(d,t),d},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",212:"2fb76b0a",219:"461f728c",336:"e836e7f0",361:"7d2d738e",488:"603a3945",623:"efe28d55",711:"e836461c",763:"8c52c42d",992:"d65f8ccc",1660:"94dab9da",1884:"c8b7a7b8",2017:"081aa3d8",2115:"99ade4d8",2145:"81089b86",2202:"34a267b8",2446:"831ab327",2597:"384e58e1",3085:"1f391b9e",3128:"2ff920a5",3218:"01e0aabd",3237:"1df93b7f",3287:"5fabe7ef",3405:"54c31db2",3412:"ed6cb704",3537:"ec013d60",3792:"fb92962e",4044:"93e28271",4270:"3a94ab6a",4428:"09e6f732",4431:"cd909e5f",4434:"c2e48a87",4467:"a301658a",4571:"ddb2ec41",4677:"fe5eec09",4764:"9d661e0a",4772:"871b43d2",4960:"a0cc59ae",5102:"bd024966",5199:"3517af41",5633:"b1e73860",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",8048:"704448ba",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:"1a21b05c",138:"8c2f12a0",212:"0dbb3e20",219:"a0c3e7d5",336:"c43e5448",361:"81803d5d",488:"3d50232d",623:"8d38ff15",711:"81d9241f",763:"498c27ff",992:"2d1c00f4",1660:"ee048aea",1884:"3eeed0e4",2017:"04cb537d",2115:"72e8773c",2145:"2d547b46",2202:"e2490e2e",2446:"875440d5",2597:"7826a3c1",3085:"d788478e",3128:"21594a06",3218:"27a6e3cd",3237:"4aa2caed",3287:"b76ea4a1",3405:"f2b5326a",3412:"145ee9d7",3537:"23fd2af7",3562:"145c7ae8",3792:"aff6d42c",4044:"2439b7cf",4270:"7873f880",4428:"700a91d8",4431:"f40e8194",4434:"ea87d454",4467:"ab988d89",4571:"0e29169e",4677:"1bd73148",4764:"76052099",4772:"6a864fc7",4960:"3b08cf1b",4972:"2edfaba4",5102:"2d92cc87",5199:"3511a351",5633:"4e03d916",6124:"d5fb82eb",6169:"276f0a47",6193:"f5a3352d",6227:"dee093d5",6231:"07d8da79",6385:"4701e2d8",6508:"f6c72aae",6533:"f315b748",6945:"87ff0226",6971:"ed8a6a68",6995:"32d3f0f2",7008:"66c13a41",7150:"5b11f8d1",7330:"2807e7a4",7414:"67887543",7438:"a9508c7f",7653:"80f8de73",7690:"3c45d4e8",7799:"7ff7256d",7835:"42c42266",7918:"5c358fe8",7920:"98480236",7995:"b80d2d6d",8048:"faa6ca18",8299:"8f836b7d",8431:"210b42aa",8442:"e3d63dd8",8506:"c417ce2c",8552:"9740d7fc",8592:"cd9cbb72",8729:"fe34168b",8894:"ef41ad74",8910:"a7c63ecb",9008:"3cfdf8ab",9081:"93e3bba3",9155:"5041b665",9278:"267e2c0b",9341:"eb4c79e1",9414:"4ef52d91",9491:"2d4dfafe",9514:"f353ebc5",9586:"3a86a44e",9730:"913464c3",9945:"8d4ac2f3"}[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={},d="website:",r.l=function(e,a,f,t){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")==d+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",d+f),n.src=e),c[e]=[a];var l=function(a,f){n.onerror=n.onload=null,clearTimeout(s);var d=c[e];if(delete c[e],n.parentNode&&n.parentNode.removeChild(n),d&&d.forEach((function(e){return e(f)})),a)return a(f)},s=setLine truncated
-1
View File
@@ -1 +0,0 @@
!function(){"use strict";var e,a,f,d,c,t={},n={};function r(e){var a=n[e];if(void 0!==a)return a.exports;var f=n[e]={exports:{}};return t[e].call(f.exports,f,f.exports,r),f.exports}r.m=t,e=[],r.O=function(a,f,d,c){if(!f){var t=1/0;for(u=0;u<e.length;u++){f=e[u][0],d=e[u][1],c=e[u][2];for(var n=!0,b=0;b<f.length;b++)(!1&c||t>=c)&&Object.keys(r.O).every((function(e){return r.O[e](f[b])}))?f.splice(b--,1):(n=!1,c<t&&(t=c));if(n){e.splice(u--,1);var o=d();void 0!==o&&(a=o)}}return a}c=c||0;for(var u=e.length;u>0&&e[u-1][2]>c;u--)e[u]=e[u-1];e[u]=[f,d,c]},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,d){if(1&d&&(e=this(e)),8&d)return e;if("object"==typeof e&&e){if(4&d&&e.__esModule)return e;if(16&d&&"function"==typeof e.then)return e}var c=Object.create(null);r.r(c);var t={};a=a||[null,f({}),f([]),f(f)];for(var n=2&d&&e;"object"==typeof n&&!~a.indexOf(n);n=f(n))Object.getOwnPropertyNames(n).forEach((function(a){t[a]=function(){return e[a]}}));return t.default=function(){return e},r.d(c,t),c},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",212:"2fb76b0a",219:"461f728c",336:"e836e7f0",361:"7d2d738e",488:"603a3945",623:"efe28d55",711:"e836461c",763:"8c52c42d",992:"d65f8ccc",1611:"7cd8be60",1660:"94dab9da",1884:"c8b7a7b8",2017:"081aa3d8",2115:"99ade4d8",2145:"81089b86",2202:"34a267b8",2446:"831ab327",2597:"384e58e1",3085:"1f391b9e",3218:"01e0aabd",3237:"1df93b7f",3287:"5fabe7ef",3405:"54c31db2",3412:"ed6cb704",3537:"ec013d60",3792:"fb92962e",4044:"93e28271",4270:"3a94ab6a",4428:"09e6f732",4431:"cd909e5f",4467:"a301658a",4571:"ddb2ec41",4677:"fe5eec09",4764:"9d661e0a",4772:"871b43d2",4960:"a0cc59ae",5102:"bd024966",5199:"3517af41",5633:"b1e73860",6124:"3bed0d25",6169:"03b72f95",6193:"d4a6286b",6227:"49744a1f",6231:"1edd048e",6508:"7bd87f6f",6533:"0419c24a",6588:"ee084ec9",6971:"c377a04b",6995:"56163916",7008:"fd4717da",7150:"a484ef80",7330:"011f4266",7414:"393be207",7438:"036a6f83",7690:"8cbd576d",7799:"8d5488b4",7835:"23a5733a",7918:"17896441",7920:"1a4e3797",7995:"fa305394",8048:"704448ba",8299:"b81c2ea8",8431:"2e6924e9",8506:"1abfdec1",8552:"c038339d",8592:"3e61bb29",8729:"022a8a8a",8910:"6cc2c735",9008:"ea722c4f",9081:"475acb0d",9155:"d6b25613",9278:"75f8f779",9341:"72d326dc",9393:"6f03d64f",9414:"5d7eb90d",9491:"adbed512",9514:"1be78505",9586:"85ef8f6b",9730:"daa8642d",9945:"e36123ca"}[e]||e)+"."+{53:"8394227f",138:"8c2f12a0",212:"0dbb3e20",219:"a0c3e7d5",336:"c43e5448",361:"81803d5d",488:"3d50232d",623:"8d38ff15",711:"81d9241f",763:"498c27ff",992:"2d1c00f4",1611:"fbaa4f31",1660:"ee048aea",1884:"3eeed0e4",2017:"04cb537d",2115:"72e8773c",2145:"2d547b46",2202:"7cc5f0a3",2446:"875440d5",2597:"7826a3c1",3085:"d788478e",3218:"27a6e3cd",3237:"4aa2caed",3287:"b76ea4a1",3405:"f5cd9aab",3412:"145ee9d7",3537:"23fd2af7",3562:"145c7ae8",3792:"aff6d42c",4044:"2439b7cf",4270:"7873f880",4428:"700a91d8",4431:"f40e8194",4467:"ab988d89",4571:"0e29169e",4677:"1bd73148",4764:"9cf7b1f5",4772:"6a864fc7",4960:"3b08cf1b",4972:"2edfaba4",5102:"2d92cc87",5199:"3511a351",5633:"4e03d916",6124:"d5fb82eb",6169:"276f0a47",6193:"f5a3352d",6227:"dee093d5",6231:"07d8da79",6385:"4701e2d8",6508:"f6c72aae",6533:"f315b748",6588:"0f4a7578",6945:"87ff0226",6971:"ed8a6a68",6995:"32d3f0f2",7008:"66c13a41",7150:"5b11f8d1",7330:"2807e7a4",7414:"67887543",7438:"a9508c7f",7690:"3c45d4e8",7799:"7ff7256d",7835:"42c42266",7918:"5c358fe8",7920:"98480236",7995:"b80d2d6d",8048:"faa6ca18",8299:"8f836b7d",8431:"210b42aa",8442:"e3d63dd8",8506:"c417ce2c",8552:"9740d7fc",8592:"cd9cbb72",8729:"fe34168b",8894:"ef41ad74",8910:"a7c63ecb",9008:"3cfdf8ab",9081:"93e3bba3",9155:"5041b665",9278:"267e2c0b",9341:"eb4c79e1",9393:"fd23cfed",9414:"4ef52d91",9491:"2d4dfafe",9514:"f353ebc5",9586:"3a86a44e",9730:"913464c3",9945:"8d4ac2f3"}[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)},d={},c="website:",r.l=function(e,a,f,t){if(d[e])d[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")==c+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",c+f),n.src=e),d[e]=[a];var l=function(a,f){n.onerror=n.onload=null,clearTimeout(s);var c=d[e];if(delete d[e],n.parentNode&&n.parentNode.removeChild(n),c&&c.forEach((function(e){return e(f)})),a)return a(f)},s=setLine truncated