From 1e57f5f992fa44c417a4751e7aa2cb0133a95da1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 4 Mar 2022 00:22:31 +0000 Subject: [PATCH] deploy: 16df535c5f8fc6817821501d8cfaf29b0cab8a56 --- 404.html | 4 ++-- assets/js/27ba855c.a456320a.js | 1 + assets/js/27ba855c.c07a9497.js | 1 - assets/js/2ff920a5.98ccab96.js | 1 + assets/js/2ff920a5.f88ab0ea.js | 1 - assets/js/34a267b8.359db2f0.js | 1 + assets/js/34a267b8.3ed2088b.js | 1 - assets/js/3c08f3a3.7cca2b04.js | 1 - assets/js/3c08f3a3.9a3e7180.js | 1 + assets/js/{8bbdd1b6.8d18cb3b.js => 8bbdd1b6.37fbe10d.js} | 2 +- assets/js/8c300d32.642dd282.js | 1 - assets/js/8c300d32.9e1eb290.js | 1 + assets/js/935f2afb.984ea3e2.js | 1 - assets/js/935f2afb.a7e3b91e.js | 1 + assets/js/c2e48a87.1f04ce11.js | 1 - assets/js/c2e48a87.cbcdfdb1.js | 1 + assets/js/{c377a04b.0b325b6f.js => c377a04b.3f9f550e.js} | 2 +- assets/js/{d4a6286b.5cc59cea.js => d4a6286b.8a2543c9.js} | 2 +- ...{runtime~main.f1729399.js => runtime~main.a8405c2b.js} | 2 +- blog/archive/index.html | 4 ++-- docs/index.html | 6 +++--- .../External/Client/Interface/Keyboard/index.html | 6 +++--- .../External/Client/Interface/Progress/index.html | 6 +++--- .../Functions/External/Client/Inventory/Search/index.html | 6 +++--- .../Functions/External/Client/Items/index.html | 6 +++--- .../Functions/External/Client/Utils/notify/index.html | 6 +++--- .../External/Client/Utils/weaponWheel/index.html | 6 +++--- .../Functions/External/Client/openInventory/index.html | 6 +++--- .../External/Client/openNearbyInventory/index.html | 6 +++--- .../Functions/External/Client/setStashTarget/index.html | 6 +++--- .../Functions/External/Client/useItem/index.html | 6 +++--- .../Functions/External/Client/useSlot/index.html | 6 +++--- .../External/Server/Inventory/AddItem/index.html | 6 +++--- .../External/Server/Inventory/CanCarryItem/index.html | 6 +++--- .../External/Server/Inventory/CanSwapItem/index.html | 6 +++--- .../External/Server/Inventory/ClearInventory/index.html | 6 +++--- .../Server/Inventory/ConfiscateInventory/index.html | 6 +++--- .../External/Server/Inventory/ConvertItems/index.html | 6 +++--- .../External/Server/Inventory/CustomDrop/index.html | 6 +++--- .../External/Server/Inventory/GetCurrentWeapon/index.html | 6 +++--- .../External/Server/Inventory/GetItem/index.html | 6 +++--- .../External/Server/Inventory/GetItemSlots/index.html | 6 +++--- .../External/Server/Inventory/GetSlot/index.html | 6 +++--- .../External/Server/Inventory/RegisterStash/index.html | 6 +++--- .../External/Server/Inventory/RemoveItem/index.html | 6 +++--- .../External/Server/Inventory/ReturnInventory/index.html | 6 +++--- .../Functions/External/Server/Inventory/Search/index.html | 6 +++--- .../External/Server/Inventory/SetDurability/index.html | 6 +++--- .../External/Server/Inventory/SetMetadata/index.html | 6 +++--- .../External/Server/Inventory/SwapSlots/index.html | 6 +++--- .../Functions/External/Server/Items/index.html | 6 +++--- .../External/Server/setPlayerInventory/index.html | 6 +++--- .../Functions/Internal/Client/placeholder/index.html | 6 +++--- .../Functions/Internal/Server/placeholder/index.html | 6 +++--- docs/ox_inventory/Guides/index.html | 6 +++--- docs/ox_inventory/Guides/inventory_ui/index.html | 6 +++--- docs/ox_inventory/Guides/stashes/index.html | 6 +++--- docs/ox_inventory/config/index.html | 8 ++++---- docs/ox_inventory/index.html | 8 ++++---- docs/ox_inventory/installation/index.html | 8 ++++---- docs/ox_lib/Client/cache/index.html | 6 +++--- docs/ox_lib/Client/callback/index.html | 6 +++--- docs/ox_lib/Client/disableControls/index.html | 6 +++--- docs/ox_lib/Client/index.html | 6 +++--- docs/ox_lib/Client/streaming/index.html | 6 +++--- docs/ox_lib/Client/vehicleProperties/index.html | 6 +++--- docs/ox_lib/Server/acl/index.html | 6 +++--- docs/ox_lib/Server/addCommand/index.html | 6 +++--- docs/ox_lib/Server/callback/index.html | 6 +++--- docs/ox_lib/Server/index.html | 6 +++--- docs/ox_lib/Server/version/index.html | 6 +++--- docs/ox_lib/Shared/version/index.html | 6 +++--- docs/ox_lib/index.html | 8 ++++---- docs/oxmysql/Getting Started/benchmark/index.html | 6 +++--- docs/oxmysql/Getting Started/index.html | 8 ++++---- docs/oxmysql/Getting Started/issues/index.html | 6 +++--- docs/oxmysql/Usage/index.html | 6 +++--- docs/oxmysql/Usage/insert/index.html | 6 +++--- docs/oxmysql/Usage/prepare/index.html | 6 +++--- docs/oxmysql/Usage/query/index.html | 6 +++--- docs/oxmysql/Usage/scalar/index.html | 6 +++--- docs/oxmysql/Usage/single/index.html | 6 +++--- docs/oxmysql/Usage/transaction/index.html | 6 +++--- docs/oxmysql/Usage/update/index.html | 6 +++--- docs/oxmysql/index.html | 8 ++++---- index.html | 4 ++-- markdown-page/index.html | 4 ++-- 87 files changed, 220 insertions(+), 220 deletions(-) create mode 100644 assets/js/27ba855c.a456320a.js delete mode 100644 assets/js/27ba855c.c07a9497.js create mode 100644 assets/js/2ff920a5.98ccab96.js delete mode 100644 assets/js/2ff920a5.f88ab0ea.js create mode 100644 assets/js/34a267b8.359db2f0.js delete mode 100644 assets/js/34a267b8.3ed2088b.js delete mode 100644 assets/js/3c08f3a3.7cca2b04.js create mode 100644 assets/js/3c08f3a3.9a3e7180.js rename assets/js/{8bbdd1b6.8d18cb3b.js => 8bbdd1b6.37fbe10d.js} (90%) delete mode 100644 assets/js/8c300d32.642dd282.js create mode 100644 assets/js/8c300d32.9e1eb290.js delete mode 100644 assets/js/935f2afb.984ea3e2.js create mode 100644 assets/js/935f2afb.a7e3b91e.js delete mode 100644 assets/js/c2e48a87.1f04ce11.js create mode 100644 assets/js/c2e48a87.cbcdfdb1.js rename assets/js/{c377a04b.0b325b6f.js => c377a04b.3f9f550e.js} (98%) rename assets/js/{d4a6286b.5cc59cea.js => d4a6286b.8a2543c9.js} (99%) rename assets/js/{runtime~main.f1729399.js => runtime~main.a8405c2b.js} (92%) diff --git a/404.html b/404.html index a8295c6c..77969a1b 100644 --- a/404.html +++ b/404.html @@ -5,13 +5,13 @@ Page Not Found | Overextended - +
Skip to main content

Page Not Found

We could not find what you were looking for.

Please contact the owner of the site that linked you to the original URL and let them know their link is broken.

- + \ No newline at end of file diff --git a/assets/js/27ba855c.a456320a.js b/assets/js/27ba855c.a456320a.js new file mode 100644 index 00000000..a3dd18e3 --- /dev/null +++ b/assets/js/27ba855c.a456320a.js @@ -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=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=r.createContext({}),p=function(e){var t=r.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},l=function(e){var t=p(e.components);return r.createElement(u.Provider,{value:t},e.children)},f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},s=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,i=e.originalType,u=e.parentName,l=a(e,["components","mdxType","originalType","parentName"]),s=p(n),d=o,y=s["".concat(u,".").concat(d)]||s[d]||f[d]||i;return n?r.createElement(y,c(c({ref:t},l),{},{components:n})):r.createElement(y,c({ref:t},l))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,c=new Array(i);c[0]=s;var a={};for(var u in t)hasOwnProperty.call(t,u)&&(a[u]=t[u]);a.originalType=e,a.mdxType="string"==typeof e?e:o,c[1]=a;for(var p=2;p=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var u=r.createContext({}),p=function(e){var n=r.useContext(u),t=n;return e&&(t="function"==typeof e?e(n):c(c({},n),e)),t},l=function(e){var n=p(e.components);return r.createElement(u.Provider,{value:n},e.children)},f={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},s=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,i=e.originalType,u=e.parentName,l=a(e,["components","mdxType","originalType","parentName"]),s=p(t),y=o,d=s["".concat(u,".").concat(y)]||s[y]||f[y]||i;return t?r.createElement(d,c(c({ref:n},l),{},{components:t})):r.createElement(d,c({ref:n},l))}));function y(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var i=t.length,c=new Array(i);c[0]=s;var a={};for(var u in n)hasOwnProperty.call(n,u)&&(a[u]=n[u]);a.originalType=e,a.mdxType="string"==typeof e?e:o,c[1]=a;for(var p=2;p=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var s=r.createContext({}),c=function(e){var t=r.useContext(s),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},u=function(e){var t=c(e.components);return r.createElement(s.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,o=e.originalType,s=e.parentName,u=l(e,["components","mdxType","originalType","parentName"]),d=c(n),f=a,m=d["".concat(s,".").concat(f)]||d[f]||p[f]||o;return n?r.createElement(m,i(i({ref:t},u),{},{components:n})):r.createElement(m,i({ref:t},u))}));function f(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,i=new Array(o);i[0]=d;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,i[1]=l;for(var c=2;c {\n const id = exports.oxmysql.update_async('UPDATE users SET firstname = ? WHERE identifier = ? ', [newName, playerIdentifier]) {\n if (affectedRows)\n console.log(affectedRows)\n})\n")))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/34a267b8.3ed2088b.js b/assets/js/34a267b8.3ed2088b.js deleted file mode 100644 index 64bc968e..00000000 --- a/assets/js/34a267b8.3ed2088b.js +++ /dev/null @@ -1 +0,0 @@ -"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=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var s=r.createContext({}),c=function(e){var t=r.useContext(s),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},u=function(e){var t=c(e.components);return r.createElement(s.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,s=e.parentName,u=l(e,["components","mdxType","originalType","parentName"]),f=c(n),d=a,m=f["".concat(s,".").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 s in t)hasOwnProperty.call(t,s)&&(l[s]=t[s]);l.originalType=e,l.mdxType="string"==typeof e?e:a,i[1]=l;for(var c=2;c {\n const id = exports.oxmysql.update_async('UPDATE users SET firstname = ? WHERE identifier = ? ', [newName, playerIdentifier]) {\n if (affectedRows)\n console.log(affectedRows)\n})\n")))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/3c08f3a3.7cca2b04.js b/assets/js/3c08f3a3.7cca2b04.js deleted file mode 100644 index cf54639c..00000000 --- a/assets/js/3c08f3a3.7cca2b04.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[6286],{3905:function(e,t,r){r.d(t,{Zo:function(){return s},kt:function(){return m}});var n=r(7294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var u=n.createContext({}),l=function(e){var t=n.useContext(u),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},s=function(e){var t=l(e.components);return n.createElement(u.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,i=e.originalType,u=e.parentName,s=a(e,["components","mdxType","originalType","parentName"]),f=l(r),m=o,y=f["".concat(u,".").concat(m)]||f[m]||p[m]||i;return r?n.createElement(y,c(c({ref:t},s),{},{components:r})):n.createElement(y,c({ref:t},s))}));function m(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=r.length,c=new Array(i);c[0]=f;var a={};for(var u in t)hasOwnProperty.call(t,u)&&(a[u]=t[u]);a.originalType=e,a.mdxType="string"==typeof e?e:o,c[1]=a;for(var l=2;l=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=r.createContext({}),l=function(e){var t=r.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},s=function(e){var t=l(e.components);return r.createElement(u.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},f=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,i=e.originalType,u=e.parentName,s=a(e,["components","mdxType","originalType","parentName"]),f=l(n),m=o,d=f["".concat(u,".").concat(m)]||f[m]||p[m]||i;return n?r.createElement(d,c(c({ref:t},s),{},{components:n})):r.createElement(d,c({ref:t},s))}));function m(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,c=new Array(i);c[0]=f;var a={};for(var u in t)hasOwnProperty.call(t,u)&&(a[u]=t[u]);a.originalType=e,a.mdxType="string"==typeof e?e:o,c[1]=a;for(var l=2;l=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l=r.createContext({}),u=function(e){var t=r.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},p=function(e){var t=u(e.components);return r.createElement(l.Provider,{value:t},e.children)},f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},s=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,i=e.originalType,l=e.parentName,p=a(e,["components","mdxType","originalType","parentName"]),s=u(n),d=o,b=s["".concat(l,".").concat(d)]||s[d]||f[d]||i;return n?r.createElement(b,c(c({ref:t},p),{},{components:n})):r.createElement(b,c({ref:t},p))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,c=new Array(i);c[0]=s;var a={};for(var l in t)hasOwnProperty.call(t,l)&&(a[l]=t[l]);a.originalType=e,a.mdxType="string"==typeof e?e:o,c[1]=a;for(var u=2;u=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l=r.createContext({}),u=function(e){var t=r.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},p=function(e){var t=u(e.components);return r.createElement(l.Provider,{value:t},e.children)},f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},s=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,i=e.originalType,l=e.parentName,p=a(e,["components","mdxType","originalType","parentName"]),s=u(n),d=o,b=s["".concat(l,".").concat(d)]||s[d]||f[d]||i;return n?r.createElement(b,c(c({ref:t},p),{},{components:n})):r.createElement(b,c({ref:t},p))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,c=new Array(i);c[0]=s;var a={};for(var l in t)hasOwnProperty.call(t,l)&&(a[l]=t[l]);a.originalType=e,a.mdxType="string"==typeof e?e:o,c[1]=a;for(var u=2;u 2 and xPlayer.getInventoryItem('antifreeze').count > 4 and xPlayer.getInventoryItem('sudo').count > 9 then \n xPlayer.removeInventoryItem(\"acetone\", 3)\n xPlayer.removeInventoryItem(\"antifreeze\", 5)\n xPlayer.removeInventoryItem(\"sudo\", 10)\nend\n"))),(0,r.kt)(u.Z,{value:"inventory",label:"Inventory",mdxType:"TabItem"},(0,r.kt)("p",null,"Add the following code somewhere in your resource to cache the exports metatable."),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-lua"},"local ox_inventory = exports.ox_inventory\n")),(0,r.kt)("p",null,"You will be able to reference any functions exposed through the export."),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-lua"},"local items = ox_inventory:Search(source, 'count', {'acetone', 'antifreeze', 'sudo'})\nif items and items.acetone > 2 and items.antifreeze > 4 and items.sudo > 9 then\n ox_inventory:RemoveItem(source, 'acetone', 3)\n ox_inventory:RemoveItem(source, 'antifreeze', 5)\n ox_inventory:RemoveItem(source, 'sudo', 10)\nend\n")))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/8c300d32.9e1eb290.js b/assets/js/8c300d32.9e1eb290.js new file mode 100644 index 00000000..7ca3bae7 --- /dev/null +++ b/assets/js/8c300d32.9e1eb290.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4569],{6475:function(e,t,n){n.r(t),n.d(t,{assets:function(){return v},contentTitle:function(){return c},default:function(){return g},frontMatter:function(){return p},metadata:function(){return h},toc:function(){return k}});var o=n(7462),a=n(3366),i=n(7294),r=n(3905),s=function(e){var t={fontSize:"1.7rem",paddingRight:"left"===e.side&&"0.6rem",paddingLeft:"right"===e.side&&"0.6rem",verticalAlign:"center",display:"flex"};return i.createElement("div",{style:Object.assign({width:"fit-content",height:"3rem",padding:"0.8rem",borderRadius:"0.2rem",verticalAlign:"baseline",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:"white"},e.style),className:"icon-button"},"left"===e.side&&i.createElement("div",{style:t},e.icon),i.createElement("div",null,e.children),"right"===e.side&&i.createElement("div",{style:t},e.icon))},l=n(7882),d=n(9877),u=n(8215),m=["components"],p={title:"Getting Started"},c=void 0,h={unversionedId:"ox_inventory/installation",id:"ox_inventory/installation",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/installation.mdx",sourceDirName:"ox_inventory",slug:"/ox_inventory/installation",permalink:"/docs/ox_inventory/installation",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_inventory/installation.mdx",tags:[],version:"current",frontMatter:{title:"Getting Started"},sidebar:"docs",previous:{title:"index",permalink:"/docs/ox_inventory/"},next:{title:"Overview",permalink:"/docs/ox_inventory/Guides/"}},v={},k=[{value:"Dependecies",id:"dependecies",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",id:"upgrading-esx",level:2},{value:"Optional optimisation",id:"optional-optimisation",level:3}],y={toc:k};function g(e){var t=e.components,n=(0,a.Z)(e,m);return(0,r.kt)("wrapper",(0,o.Z)({},y,n,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("div",{className:"admonition admonition-caution alert alert--warning"},(0,r.kt)("div",{parentName:"div",className:"admonition-heading"},(0,r.kt)("h5",{parentName:"div"},(0,r.kt)("span",{parentName:"h5",className:"admonition-icon"},(0,r.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},(0,r.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,r.kt)("div",{parentName:"div",className:"admonition-content"},(0,r.kt)("p",{parentName:"div"},"This resource is being designed with the intention of providing advanced functionality while remaining easy to use,\nhowever it is not recommended for beginners. You must possess a basic understanding of coding and the ability to read;\notherwise you ",(0,r.kt)("strong",{parentName:"p"},"should not")," install this resource."))),(0,r.kt)("h2",{id:"dependecies"},"Dependecies"),(0,r.kt)("h3",{id:"oxmysql"},"OxMySQL"),(0,r.kt)("p",null,"We utilise our own resource to communicate with MySQL databases via the node-mysql2 package.\nThe backend is actively maintained and updated unlike the package used by mysql-async, providing improved performance, security, and features.\nWe provide full backwards compatibility with mysql-async and build for the current Cfx architecture."),(0,r.kt)("div",{style:{display:"flex"}},(0,r.kt)("a",{href:"https://www.github.com/overextended/oxmysql",style:{marginRight:"0.6rem"}},(0,r.kt)(s,{side:"left",icon:(0,r.kt)(l.rFR,{mdxType:"BsGithub"}),mdxType:"IconButton"},"GitHub")),(0,r.kt)("a",{href:"https://overextended.github.io/docs/oxmysql/Installation/"},(0,r.kt)(s,{side:"left",icon:(0,r.kt)(l.DRM,{mdxType:"BsBookHalf"}),mdxType:"IconButton"},"Documentation"))),(0,r.kt)("h3",{id:"ox-lib"},"Ox Lib"),(0,r.kt)("p",null,"A resource designed to provide reusable functions that can be loaded into any resource with simple variable declarations rather than through fxmanifest."),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Currently used for:")),(0,r.kt)("ul",null,(0,r.kt)("li",{parentName:"ul"},"SetInterval"),(0,r.kt)("li",{parentName:"ul"},"Server Callbacks"),(0,r.kt)("li",{parentName:"ul"},"Table utilities (contains, matches)"),(0,r.kt)("li",{parentName:"ul"},"Requesting models, animations, etc."),(0,r.kt)("li",{parentName:"ul"},"Disabling control actions")),(0,r.kt)("a",{href:"https://www.github.com/overextended/ox_lib"},(0,r.kt)(s,{side:"left",icon:(0,r.kt)(l.rFR,{mdxType:"BsGithub"}),mdxType:"IconButton"},"GitHub")),(0,r.kt)("h3",{id:"production-build"},"Production Build"),(0,r.kt)("p",null,"The interface is written in TypeScript using the React library, so the code included in the repository will not work.\nYou either need to build the package yourself (more information in ",(0,r.kt)("a",{parentName:"p",href:"./Guides"},"guides")," section), or download a release (ox_inventory.zip)."),(0,r.kt)("a",{href:"https://www.github.com/overextended/ox_inventory/releases/latest",style:{marginRight:"0.6rem"}},(0,r.kt)(s,{side:"left",icon:(0,r.kt)(l.rFR,{mdxType:"BsGithub"}),mdxType:"IconButton"},"GitHub")),(0,r.kt)("h2",{id:"optional-resources"},"Optional resources"),(0,r.kt)("p",null,"The resources listed under here ",(0,r.kt)("strong",{parentName:"p"},"aren't")," necessary for the inventory to work but still have full support."),(0,r.kt)("h3",{id:"qtarget"},"qtarget"),(0,r.kt)("p",null,"A high performance targeting solution based on bt-target, and the basis for qb-target.\nIt is being updated alongside Ox Inventory to improve support as well as add compatibility when using QBCore or migrating from bt-target.\nAll stashes and shops will utilise PolyZone's instead of markers to interact with them."),(0,r.kt)("div",{className:"admonition admonition-caution alert alert--warning"},(0,r.kt)("div",{parentName:"div",className:"admonition-heading"},(0,r.kt)("h5",{parentName:"div"},(0,r.kt)("span",{parentName:"h5",className:"admonition-icon"},(0,r.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},(0,r.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,r.kt)("div",{parentName:"div",className:"admonition-content"},(0,r.kt)("p",{parentName:"div"},"If you wish to use it first you must ensure that qtarget is enabled in the resource convars.\nYou will need to enable compatibility manually by adjusting your config - more information provided below."),(0,r.kt)("p",{parentName:"div"},"You must start qtarget before the inventory and after your framework."))),(0,r.kt)("div",{style:{display:"flex"}},(0,r.kt)("a",{href:"https://www.github.com/overextended/qtarget",style:{marginRight:"0.6rem"}},(0,r.kt)(s,{side:"left",icon:(0,r.kt)(l.rFR,{mdxType:"BsGithub"}),mdxType:"IconButton"},"GitHub")),(0,r.kt)("a",{href:"https://overextended.github.io/qtarget/"},(0,r.kt)(s,{side:"left",icon:(0,r.kt)(l.DRM,{mdxType:"BsBookHalf"}),mdxType:"IconButton"},"Documentation"))),(0,r.kt)("h3",{id:"npwd"},"NPWD"),(0,r.kt)("p",null,"A standalone and feature-rich phone created by Project Error."),(0,r.kt)("p",null,"The inventory will handle disabling the phone when the player has no item, and supports toggling the phone through item use."),(0,r.kt)("div",{style:{display:"flex"}},(0,r.kt)("a",{href:"https://www.github.com/project-error/npwd",style:{marginRight:"0.6rem"}},(0,r.kt)(s,{side:"left",icon:(0,r.kt)(l.rFR,{mdxType:"BsGithub"}),mdxType:"IconButton"},"GitHub")),(0,r.kt)("a",{href:"https://projecterror.dev/docs"},(0,r.kt)(s,{side:"left",icon:(0,r.kt)(l.DRM,{mdxType:"BsBookHalf"}),mdxType:"IconButton"},"Documentation"))),(0,r.kt)("h3",{id:"installation"},"Installation"),(0,r.kt)(d.Z,{mdxType:"Tabs"},(0,r.kt)(u.Z,{value:"fresh_esx",label:"Fresh ESX",default:!0,mdxType:"TabItem"},(0,r.kt)("p",null,"Use a compatible version of ",(0,r.kt)("a",{parentName:"p",href:"https://github.com/esx-framework/esx-legacy"},"ESX Legacy")," (1.6.0+)",(0,r.kt)("br",{parentName:"p"}),"\n","Execute the query inside ",(0,r.kt)("a",{parentName:"p",href:"https://github.com/overextended/ox_inventory/blob/main/setup/install.sql"},"install.sql")," and ",(0,r.kt)("a",{parentName:"p",href:"https://github.com/overextended/ox_inventory/blob/main/setup/vehicle.sql"},"vehicle.sql"))),(0,r.kt)(u.Z,{value:"convert_esx",label:"Convert ESX",mdxType:"TabItem"},(0,r.kt)("p",null,"Use a compatible version of ",(0,r.kt)("a",{parentName:"p",href:"https://github.com/esx-framework/esx-legacy"},"ESX Legacy")," (1.6.0+)",(0,r.kt)("br",{parentName:"p"}),"\n","Execute the query inside ",(0,r.kt)("a",{parentName:"p",href:"https://github.com/overextended/ox_inventory/blob/main/setup/install.sql"},"install.sql"),"\nand ",(0,r.kt)("a",{parentName:"p",href:"https://github.com/overextended/ox_inventory/blob/main/setup/vehicle.sql"},"vehicle.sql"),(0,r.kt)("br",{parentName:"p"}),"\n","Open ",(0,r.kt)("inlineCode",{parentName:"p"},"fxmanifest.lua")," and uncomment ",(0,r.kt)("inlineCode",{parentName:"p"},"server_script 'setup/convert.lua'"),(0,r.kt)("br",{parentName:"p"}),"\n","Start the server and execute the ",(0,r.kt)("inlineCode",{parentName:"p"},"convertinventory")," command from the console",(0,r.kt)("br",{parentName:"p"}),"\n","Remove the conversion file")),(0,r.kt)(u.Z,{value:"convert_linden",label:"Upgrade from Linden Inventory",mdxType:"TabItem"},(0,r.kt)("p",null,"Execute the query inside ",(0,r.kt)("a",{parentName:"p",href:"https://github.com/overextended/ox_inventory/blob/main/setup/upgrade.sql"},"upgrade.sql"),"\nand ",(0,r.kt)("a",{parentName:"p",href:"https://github.com/overextended/ox_inventory/blob/main/setup/vehicle.sql"},"vehicle.sql"),(0,r.kt)("br",{parentName:"p"}),"\n","Open ",(0,r.kt)("inlineCode",{parentName:"p"},"fxmanifest.lua")," and uncomment ",(0,r.kt)("inlineCode",{parentName:"p"},"server_script 'setup/convert.lua'"),(0,r.kt)("br",{parentName:"p"}),"\n","Start the server and execute the ",(0,r.kt)("inlineCode",{parentName:"p"},"convertinventory")," linden command from the console",(0,r.kt)("br",{parentName:"p"}),"\n","Remove the conversion file")),(0,r.kt)(u.Z,{value:"standalone",label:"Standalone",mdxType:"TabItem"},(0,r.kt)("p",null,"Work in progress."),(0,r.kt)("p",null,'Refer to the "bridge" module to get an idea of how you setup support for any framework.',(0,r.kt)("br",{parentName:"p"}),"\n","Modifications will need to be made for licenses, owned vehicles, and jobs."))),(0,r.kt)("div",{className:"admonition admonition-caution alert alert--warning"},(0,r.kt)("div",{parentName:"div",className:"admonition-heading"},(0,r.kt)("h5",{parentName:"div"},(0,r.kt)("span",{parentName:"h5",className:"admonition-icon"},(0,r.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},(0,r.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,r.kt)("div",{parentName:"div",className:"admonition-content"},(0,r.kt)("p",{parentName:"div"},"You should restart your server after the first startup to ensure everything has been correctly setup"))),(0,r.kt)("h2",{id:"upgrading-esx"},"Upgrading ESX"),(0,r.kt)("p",null,"Ox Inventory provides a complete suite of tools to replace the built-in items and inventory system from ESX, and is not intended to be used with resources designed around it."),(0,r.kt)("ul",null,(0,r.kt)("li",{parentName:"ul"},"ESX loadouts do not exist - resources that use them need to remove references or be modified to look for the weapon as an item"),(0,r.kt)("li",{parentName:"ul"},"Stashes from resources such as esx_policejob, esx_ambulancejob, etc. should be removed"),(0,r.kt)("li",{parentName:"ul"},"Shops from esx_shops or the armoury from esx_policejob should be removed"),(0,r.kt)("li",{parentName:"ul"},"Resources like esx_inventoryhud, esx_trunkinventory, esx_addoninventory, etc. should be removed")),(0,r.kt)("h3",{id:"optional-optimisation"},"Optional optimisation"),(0,r.kt)("p",null,"All item related functions from xPlayer, such as ",(0,r.kt)("inlineCode",{parentName:"p"},"xPlayer.getInventoryItem"),", have been modified for compatibility purposes; however they are considered deprecated."),(0,r.kt)("p",null,"The reasoning is fairly simple - there's now additional function references and overhead to consider. Fortunately, the new Inventory functions can be used directly and offer a great deal of improvements over the old ones."),(0,r.kt)("p",null,"You should read through the functions section for further information, but the following should give you a decent idea."),(0,r.kt)(d.Z,{mdxType:"Tabs"},(0,r.kt)(u.Z,{value:"esx",label:"ESX",mdxType:"TabItem"},(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-lua"},"if xPlayer.getInventoryItem('acetone').count > 2 and xPlayer.getInventoryItem('antifreeze').count > 4 and xPlayer.getInventoryItem('sudo').count > 9 then \n xPlayer.removeInventoryItem(\"acetone\", 3)\n xPlayer.removeInventoryItem(\"antifreeze\", 5)\n xPlayer.removeInventoryItem(\"sudo\", 10)\nend\n"))),(0,r.kt)(u.Z,{value:"inventory",label:"Inventory",mdxType:"TabItem"},(0,r.kt)("p",null,"Add the following code somewhere in your resource to cache the exports metatable."),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-lua"},"local ox_inventory = exports.ox_inventory\n")),(0,r.kt)("p",null,"You will be able to reference any functions exposed through the export."),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-lua"},"local items = ox_inventory:Search(source, 'count', {'acetone', 'antifreeze', 'sudo'})\nif items and items.acetone > 2 and items.antifreeze > 4 and items.sudo > 9 then\n ox_inventory:RemoveItem(source, 'acetone', 3)\n ox_inventory:RemoveItem(source, 'antifreeze', 5)\n ox_inventory:RemoveItem(source, 'sudo', 10)\nend\n")))))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/935f2afb.984ea3e2.js b/assets/js/935f2afb.984ea3e2.js deleted file mode 100644 index 16ba34cc..00000000 --- a/assets/js/935f2afb.984ea3e2.js +++ /dev/null @@ -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":"link","label":"MySQL","href":"/docs/oxmysql/","docId":"oxmysql/index"},{"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"}],"href":"/docs/oxmysql/Getting Started/"},{"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":"Library","href":"/docs/ox_lib/","docId":"ox_lib/index"},{"type":"category","label":"Client","collapsible":true,"collapsed":true,"items":[{"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":"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"}],"href":"/docs/ox_lib/Client/"},{"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"}],"href":"/docs/ox_lib/Server/"},{"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"}]}],"collapsed":true,"collapsible":true},{"type":"category","label":"Inventory","items":[{"type":"link","label":"Configuration","href":"/docs/ox_inventory/config","docId":"ox_inventory/config"},{"type":"link","label":"Inventory","href":"/docs/ox_inventory/","docId":"ox_inventory/index"},{"type":"link","label":"Getting Started","href":"/docs/ox_inventory/installation","docId":"ox_inventory/installation"},{"type":"category","label":"Guides","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Building inventory UI","href":"/docs/ox_inventory/Guides/inventory_ui","docId":"ox_inventory/Guides/inventory_ui"},{"type":"link","label":"Creating custom stashes","href":"/docs/ox_inventory/Guides/stashes","docId":"ox_inventory/Guides/stashes"}],"href":"/docs/ox_inventory/Guides/"},{"type":"category","label":"Functions","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"External","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"Client","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Items","href":"/docs/ox_inventory/Functions/External/Client/Items","docId":"ox_inventory/Functions/External/Client/Items"},{"type":"link","label":"openInventory","href":"/docs/ox_inventory/Functions/External/Client/openInventory","docId":"ox_inventory/Functions/External/Client/openInventory"},{"type":"link","label":"openNearbyInventory","href":"/docs/ox_inventory/Functions/External/Client/openNearbyInventory","docId":"ox_inventory/Functions/External/Client/openNearbyInventory"},{"type":"link","label":"setStashTarget","href":"/docs/ox_inventory/Functions/External/Client/setStashTarget","docId":"ox_inventory/Functions/External/Client/setStashTarget"},{"type":"link","label":"useItem","href":"/docs/ox_inventory/Functions/External/Client/useItem","docId":"ox_inventory/Functions/External/Client/useItem"},{"type":"link","label":"useSlot","href":"/docs/ox_inventory/Functions/External/Client/useSlot","docId":"ox_inventory/Functions/External/Client/useSlot"},{"type":"category","label":"Interface","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Keyboard","href":"/docs/ox_inventory/Functions/External/Client/Interface/Keyboard","docId":"ox_inventory/Functions/External/Client/Interface/Keyboard"},{"type":"link","label":"Progress","href":"/docs/ox_inventory/Functions/External/Client/Interface/Progress","docId":"ox_inventory/Functions/External/Client/Interface/Progress"}]},{"type":"category","label":"Inventory","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Search","href":"/docs/ox_inventory/Functions/External/Client/Inventory/Search","docId":"ox_inventory/Functions/External/Client/Inventory/Search"}]},{"type":"category","label":"Utils","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"notify","href":"/docs/ox_inventory/Functions/External/Client/Utils/notify","docId":"ox_inventory/Functions/External/Client/Utils/notify"},{"type":"link","label":"weaponWheel","href":"/docs/ox_inventory/Functions/External/Client/Utils/weaponWheel","docId":"ox_inventory/Functions/External/Client/Utils/weaponWheel"}]}]},{"type":"category","label":"Server","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Items","href":"/docs/ox_inventory/Functions/External/Server/Items","docId":"ox_inventory/Functions/External/Server/Items"},{"type":"link","label":"setPlayerInventory","href":"/docs/ox_inventory/Functions/External/Server/setPlayerInventory","docId":"ox_inventory/Functions/External/Server/setPlayerInventory"},{"type":"category","label":"Inventory","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"AddItem","href":"/docs/ox_inventory/Functions/External/Server/Inventory/AddItem","docId":"ox_inventory/Functions/External/Server/Inventory/AddItem"},{"type":"link","label":"CanCarryItem","href":"/docs/ox_inventory/Functions/External/Server/Inventory/CanCarryItem","docId":"ox_inventory/Functions/External/Server/Inventory/CanCarryItem"},{"type":"link","label":"CanSwapItem","href":"/docs/ox_inventory/Functions/External/Server/Inventory/CanSwapItem","docId":"ox_inventory/Functions/External/Server/Inventory/CanSwapItem"},{"type":"link","label":"ClearInventory","href":"/docs/ox_inventory/Functions/External/Server/Inventory/ClearInventory","docId":"ox_inventory/Functions/External/Server/Inventory/ClearInventory"},{"type":"link","label":"ConfiscateInventory","href":"/docs/ox_inventory/Functions/External/Server/Inventory/ConfiscateInventory","docId":"ox_inventory/Functions/External/Server/Inventory/ConfiscateInventory"},{"type":"link","label":"ConvertItems","href":"/docs/ox_inventory/Functions/External/Server/Inventory/ConvertItems","docId":"ox_inventory/Functions/External/Server/Inventory/ConvertItems"},{"type":"link","label":"CustomDrop","href":"/docs/ox_inventory/Functions/External/Server/Inventory/CustomDrop","docId":"ox_inventory/Functions/External/Server/Inventory/CustomDrop"},{"type":"link","label":"GetCurrentWeapon","href":"/docs/ox_inventory/Functions/External/Server/Inventory/GetCurrentWeapon","docId":"ox_inventory/Functions/External/Server/Inventory/GetCurrentWeapon"},{"type":"link","label":"GetItem","href":"/docs/ox_inventory/Functions/External/Server/Inventory/GetItem","docId":"ox_inventory/Functions/External/Server/Inventory/GetItem"},{"type":"link","label":"GetItemSlots","href":"/docs/ox_inventory/Functions/External/Server/Inventory/GetItemSlots","docId":"ox_inventory/Functions/External/Server/Inventory/GetItemSlots"},{"type":"link","label":"GetSlot","href":"/docs/ox_inventory/Functions/External/Server/Inventory/GetSlot","docId":"ox_inventory/Functions/External/Server/Inventory/GetSlot"},{"type":"link","label":"RegisterStash","href":"/docs/ox_inventory/Functions/External/Server/Inventory/RegisterStash","docId":"ox_inventory/Functions/External/Server/Inventory/RegisterStash"},{"type":"link","label":"RemoveItem","href":"/docs/ox_inventory/Functions/External/Server/Inventory/RemoveItem","docId":"ox_inventory/Functions/External/Server/Inventory/RemoveItem"},{"type":"link","label":"ReturnInventory","href":"/docs/ox_inventory/Functions/External/Server/Inventory/ReturnInventory","docId":"ox_inventory/Functions/External/Server/Inventory/ReturnInventory"},{"type":"link","label":"Search","href":"/docs/ox_inventory/Functions/External/Server/Inventory/Search","docId":"ox_inventory/Functions/External/Server/Inventory/Search"},{"type":"link","label":"SetDurability","href":"/docs/ox_inventory/Functions/External/Server/Inventory/SetDurability","docId":"ox_inventory/Functions/External/Server/Inventory/SetDurability"},{"type":"link","label":"SetMetadata","href":"/docs/ox_inventory/Functions/External/Server/Inventory/SetMetadata","docId":"ox_inventory/Functions/External/Server/Inventory/SetMetadata"},{"type":"link","label":"SwapSlots","href":"/docs/ox_inventory/Functions/External/Server/Inventory/SwapSlots","docId":"ox_inventory/Functions/External/Server/Inventory/SwapSlots"}]}]}]},{"type":"category","label":"Internal","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"Client","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Placeholder","href":"/docs/ox_inventory/Functions/Internal/Client/placeholder","docId":"ox_inventory/Functions/Internal/Client/placeholder"}]},{"type":"category","label":"Server","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Placeholder","href":"/docs/ox_inventory/Functions/Internal/Server/placeholder","docId":"ox_inventory/Functions/Internal/Server/placeholder"}]}]}]}],"collapsed":true,"collapsible":true}]},"docs":{"index":{"id":"index","title":"Documentation","description":"Here you can find all of the official documentation for resoruces developed by the Overextended team","sidebar":"docs"},"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.","sidebar":"docs"},"ox_inventory/Functions/External/Client/Interface/Keyboard":{"id":"ox_inventory/Functions/External/Client/Interface/Keyboard","title":"Keyboard","description":"Opens a keyboard input dialog.","sidebar":"docs"},"ox_inventory/Functions/External/Client/Interface/Progress":{"id":"ox_inventory/Functions/External/Client/Interface/Progress","title":"Progress","description":"Starts a progress bar that can callback a function upon completion or cancellation.","sidebar":"docs"},"ox_inventory/Functions/External/Client/Inventory/Search":{"id":"ox_inventory/Functions/External/Client/Inventory/Search","title":"Search","description":"Searches the inventory for a specified item.","sidebar":"docs"},"ox_inventory/Functions/External/Client/Items":{"id":"ox_inventory/Functions/External/Client/Items","title":"Items","description":"Returns a table of all registered items.","sidebar":"docs"},"ox_inventory/Functions/External/Client/openInventory":{"id":"ox_inventory/Functions/External/Client/openInventory","title":"openInventory","description":"Opens an inventory using on the passed data.","sidebar":"docs"},"ox_inventory/Functions/External/Client/openNearbyInventory":{"id":"ox_inventory/Functions/External/Client/openNearbyInventory","title":"openNearbyInventory","description":"If possible opens the nearby player\'s inventory.","sidebar":"docs"},"ox_inventory/Functions/External/Client/setStashTarget":{"id":"ox_inventory/Functions/External/Client/setStashTarget","title":"setStashTarget","description":"Forces the secondary-inventory key to open the passed inventory. Can be useful to enable inventory access while standing inside a marker.","sidebar":"docs"},"ox_inventory/Functions/External/Client/useItem":{"id":"ox_inventory/Functions/External/Client/useItem","title":"useItem","description":"Uses the passed item, then triggers the callback function.","sidebar":"docs"},"ox_inventory/Functions/External/Client/useSlot":{"id":"ox_inventory/Functions/External/Client/useSlot","title":"useSlot","description":"Uses the item in the given inventory slot.","sidebar":"docs"},"ox_inventory/Functions/External/Client/Utils/notify":{"id":"ox_inventory/Functions/External/Client/Utils/notify","title":"notify","description":"Displays the notification used accross the inventory.","sidebar":"docs"},"ox_inventory/Functions/External/Client/Utils/weaponWheel":{"id":"ox_inventory/Functions/External/Client/Utils/weaponWheel","title":"weaponWheel","description":"Enables the weapon wheel, but disables the use of inventory items.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/AddItem":{"id":"ox_inventory/Functions/External/Server/Inventory/AddItem","title":"AddItem","description":"Adds an item into the specified inventory.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/CanCarryItem":{"id":"ox_inventory/Functions/External/Server/Inventory/CanCarryItem","title":"CanCarryItem","description":"Returns true or false depending if the inventory can carry the specified item.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/CanSwapItem":{"id":"ox_inventory/Functions/External/Server/Inventory/CanSwapItem","title":"CanSwapItem","description":"Returns true if the item swap is possible based on inventory weight.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/ClearInventory":{"id":"ox_inventory/Functions/External/Server/Inventory/ClearInventory","title":"ClearInventory","description":"Clears the specified inventory.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/ConfiscateInventory":{"id":"ox_inventory/Functions/External/Server/Inventory/ConfiscateInventory","title":"ConfiscateInventory","description":"Clears a player\'s inventory and saves it to a stash.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/ConvertItems":{"id":"ox_inventory/Functions/External/Server/Inventory/ConvertItems","title":"ConvertItems","description":"Takes traditional item data and updates it to support ox_inventory.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/CustomDrop":{"id":"ox_inventory/Functions/External/Server/Inventory/CustomDrop","title":"CustomDrop","description":"Creates an inventory drop at the specified coords.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/GetCurrentWeapon":{"id":"ox_inventory/Functions/External/Server/Inventory/GetCurrentWeapon","title":"GetCurrentWeapon","description":"Returns the player\'s currently equipped weapon as a table.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/GetItem":{"id":"ox_inventory/Functions/External/Server/Inventory/GetItem","title":"GetItem","description":"Returns the item from the specified inventory.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/GetItemSlots":{"id":"ox_inventory/Functions/External/Server/Inventory/GetItemSlots","title":"GetItemSlots","description":"Returns the number of slots the specified item is in, the item\'s total count and the remaining empty slots.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/GetSlot":{"id":"ox_inventory/Functions/External/Server/Inventory/GetSlot","title":"GetSlot","description":"Returns the specified slot data as a table.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/RegisterStash":{"id":"ox_inventory/Functions/External/Server/Inventory/RegisterStash","title":"RegisterStash","description":"Creates a new custom stash.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/RemoveItem":{"id":"ox_inventory/Functions/External/Server/Inventory/RemoveItem","title":"RemoveItem","description":"Removes the specified item from the specified inventory.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/ReturnInventory":{"id":"ox_inventory/Functions/External/Server/Inventory/ReturnInventory","title":"ReturnInventory","description":"Returns the confiscated inventory back to the player.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/Search":{"id":"ox_inventory/Functions/External/Server/Inventory/Search","title":"Search","description":"Searches an inventory for a specified item.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/SetDurability":{"id":"ox_inventory/Functions/External/Server/Inventory/SetDurability","title":"SetDurability","description":"Sets durability onto the specified slot.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/SetMetadata":{"id":"ox_inventory/Functions/External/Server/Inventory/SetMetadata","title":"SetMetadata","description":"Sets metadata on the specified slot.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/SwapSlots":{"id":"ox_inventory/Functions/External/Server/Inventory/SwapSlots","title":"SwapSlots","description":"Swaps slots in specified inventories.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Items":{"id":"ox_inventory/Functions/External/Server/Items","title":"Items","description":"Returns a table of all registered items.","sidebar":"docs"},"ox_inventory/Functions/External/Server/setPlayerInventory":{"id":"ox_inventory/Functions/External/Server/setPlayerInventory","title":"setPlayerInventory","description":"Creates and sets the player\'s inventory.","sidebar":"docs"},"ox_inventory/Functions/Internal/Client/placeholder":{"id":"ox_inventory/Functions/Internal/Client/placeholder","title":"Placeholder","description":"","sidebar":"docs"},"ox_inventory/Functions/Internal/Server/placeholder":{"id":"ox_inventory/Functions/Internal/Server/placeholder","title":"Placeholder","description":"","sidebar":"docs"},"ox_inventory/Guides/index":{"id":"ox_inventory/Guides/index","title":"Overview","description":"Providing examples and explaining certain inventory API into more detail.","sidebar":"docs"},"ox_inventory/Guides/inventory_ui":{"id":"ox_inventory/Guides/inventory_ui","title":"Building inventory UI","description":"* Node.js","sidebar":"docs"},"ox_inventory/Guides/stashes":{"id":"ox_inventory/Guides/stashes","title":"Creating custom stashes","description":"We can set up custom stashes from outside the resource utilising the exported RegisterStash function. Firstly, we need to define the stashes properties.","sidebar":"docs"},"ox_inventory/index":{"id":"ox_inventory/index","title":"Inventory","description":"","sidebar":"docs"},"ox_inventory/installation":{"id":"ox_inventory/installation","title":"Getting Started","description":"This resource is being designed with the intention of providing advanced functionality while remaining easy to use,","sidebar":"docs"},"ox_lib/Client/cache":{"id":"ox_lib/Client/cache","title":"Cache","description":"Caches data related to the player and handling some events or statebags.","sidebar":"docs"},"ox_lib/Client/callback":{"id":"ox_lib/Client/callback","title":"Callbacks","description":"Triggers a registered server callback and registers an event handler for the response.","sidebar":"docs"},"ox_lib/Client/disableControls":{"id":"ox_lib/Client/disableControls","title":"Disable Controls","description":"lib.disableControls","sidebar":"docs"},"ox_lib/Client/index":{"id":"ox_lib/Client/index","title":"index","description":"","sidebar":"docs"},"ox_lib/Client/streaming":{"id":"ox_lib/Client/streaming","title":"Streaming","description":"Check if assets exist, such as models, and loads them into memory.","sidebar":"docs"},"ox_lib/Client/vehicleProperties":{"id":"ox_lib/Client/vehicleProperties","title":"Vehicle Properties","description":"Mostly follows the format used by ESX and QBCore, with extra data such as damaged/missing props.","sidebar":"docs"},"ox_lib/index":{"id":"ox_lib/index","title":"Library","description":"","sidebar":"docs"},"ox_lib/Server/acl":{"id":"ox_lib/Server/acl","title":"Permissions","description":"Wrapper around the built-in ACL system. Handles lib.addCommand and ox_groups permissions.","sidebar":"docs"},"ox_lib/Server/addCommand":{"id":"ox_lib/Server/addCommand","title":"Command","description":"","sidebar":"docs"},"ox_lib/Server/callback":{"id":"ox_lib/Server/callback","title":"Callbacks","description":"lib.callback.register","sidebar":"docs"},"ox_lib/Server/index":{"id":"ox_lib/Server/index","title":"index","description":"","sidebar":"docs"},"ox_lib/Server/version":{"id":"ox_lib/Server/version","title":"Version check","description":"lib.versionCheck","sidebar":"docs"},"ox_lib/Shared/version":{"id":"ox_lib/Shared/version","title":"Dependency version","description":"lib.checkDependency","sidebar":"docs"},"oxmysql/Getting Started/benchmark":{"id":"oxmysql/Getting Started/benchmark","title":"Benchmark","description":"Internal benchmark","sidebar":"docs"},"oxmysql/Getting Started/index":{"id":"oxmysql/Getting Started/index","title":"Getting Started","description":"Installation","sidebar":"docs"},"oxmysql/Getting Started/issues":{"id":"oxmysql/Getting Started/issues","title":"Common Issues","description":"Unable to establish a connection","sidebar":"docs"},"oxmysql/index":{"id":"oxmysql/index","title":"MySQL","description":"","sidebar":"docs"},"oxmysql/Usage/index":{"id":"oxmysql/Usage/index","title":"Usage","description":"todo - include some information about proper formatting, placeholders, bad practices, etc.","sidebar":"docs"},"oxmysql/Usage/insert":{"id":"oxmysql/Usage/insert","title":"Insert","description":"Inserts a new entry into the database and returns the insert id for the row, if valid.","sidebar":"docs"},"oxmysql/Usage/prepare":{"id":"oxmysql/Usage/prepare","title":"Prepare","description":"The only function that provides true prepared statements, granting native protection and query planning by MySQL.","sidebar":"docs"},"oxmysql/Usage/query":{"id":"oxmysql/Usage/query","title":"Query","description":"Generic function that can be utilised for any query.","sidebar":"docs"},"oxmysql/Usage/scalar":{"id":"oxmysql/Usage/scalar","title":"Scalar","description":"Returns the first column for a single row.","sidebar":"docs"},"oxmysql/Usage/single":{"id":"oxmysql/Usage/single","title":"Single","description":"Returns the columns for a single row.","sidebar":"docs"},"oxmysql/Usage/transaction":{"id":"oxmysql/Usage/transaction","title":"Transaction","description":"todo - update formatting and information","sidebar":"docs"},"oxmysql/Usage/update":{"id":"oxmysql/Usage/update","title":"Update","description":"Returns the number of affected rows by the query.","sidebar":"docs"}}}')}}]); \ No newline at end of file diff --git a/assets/js/935f2afb.a7e3b91e.js b/assets/js/935f2afb.a7e3b91e.js new file mode 100644 index 00000000..93c8ec8f --- /dev/null +++ b/assets/js/935f2afb.a7e3b91e.js @@ -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":"link","label":"index","href":"/docs/oxmysql/","docId":"oxmysql/index"},{"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"}],"href":"/docs/oxmysql/Getting Started/"},{"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":"index","href":"/docs/ox_lib/","docId":"ox_lib/index"},{"type":"category","label":"Client","collapsible":true,"collapsed":true,"items":[{"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":"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"}],"href":"/docs/ox_lib/Client/"},{"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"}],"href":"/docs/ox_lib/Server/"},{"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"}]}],"collapsed":true,"collapsible":true},{"type":"category","label":"Inventory","items":[{"type":"link","label":"Configuration","href":"/docs/ox_inventory/config","docId":"ox_inventory/config"},{"type":"link","label":"index","href":"/docs/ox_inventory/","docId":"ox_inventory/index"},{"type":"link","label":"Getting Started","href":"/docs/ox_inventory/installation","docId":"ox_inventory/installation"},{"type":"category","label":"Guides","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Building inventory UI","href":"/docs/ox_inventory/Guides/inventory_ui","docId":"ox_inventory/Guides/inventory_ui"},{"type":"link","label":"Creating custom stashes","href":"/docs/ox_inventory/Guides/stashes","docId":"ox_inventory/Guides/stashes"}],"href":"/docs/ox_inventory/Guides/"},{"type":"category","label":"Functions","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"External","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"Client","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Items","href":"/docs/ox_inventory/Functions/External/Client/Items","docId":"ox_inventory/Functions/External/Client/Items"},{"type":"link","label":"openInventory","href":"/docs/ox_inventory/Functions/External/Client/openInventory","docId":"ox_inventory/Functions/External/Client/openInventory"},{"type":"link","label":"openNearbyInventory","href":"/docs/ox_inventory/Functions/External/Client/openNearbyInventory","docId":"ox_inventory/Functions/External/Client/openNearbyInventory"},{"type":"link","label":"setStashTarget","href":"/docs/ox_inventory/Functions/External/Client/setStashTarget","docId":"ox_inventory/Functions/External/Client/setStashTarget"},{"type":"link","label":"useItem","href":"/docs/ox_inventory/Functions/External/Client/useItem","docId":"ox_inventory/Functions/External/Client/useItem"},{"type":"link","label":"useSlot","href":"/docs/ox_inventory/Functions/External/Client/useSlot","docId":"ox_inventory/Functions/External/Client/useSlot"},{"type":"category","label":"Interface","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Keyboard","href":"/docs/ox_inventory/Functions/External/Client/Interface/Keyboard","docId":"ox_inventory/Functions/External/Client/Interface/Keyboard"},{"type":"link","label":"Progress","href":"/docs/ox_inventory/Functions/External/Client/Interface/Progress","docId":"ox_inventory/Functions/External/Client/Interface/Progress"}]},{"type":"category","label":"Inventory","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Search","href":"/docs/ox_inventory/Functions/External/Client/Inventory/Search","docId":"ox_inventory/Functions/External/Client/Inventory/Search"}]},{"type":"category","label":"Utils","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"notify","href":"/docs/ox_inventory/Functions/External/Client/Utils/notify","docId":"ox_inventory/Functions/External/Client/Utils/notify"},{"type":"link","label":"weaponWheel","href":"/docs/ox_inventory/Functions/External/Client/Utils/weaponWheel","docId":"ox_inventory/Functions/External/Client/Utils/weaponWheel"}]}]},{"type":"category","label":"Server","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Items","href":"/docs/ox_inventory/Functions/External/Server/Items","docId":"ox_inventory/Functions/External/Server/Items"},{"type":"link","label":"setPlayerInventory","href":"/docs/ox_inventory/Functions/External/Server/setPlayerInventory","docId":"ox_inventory/Functions/External/Server/setPlayerInventory"},{"type":"category","label":"Inventory","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"AddItem","href":"/docs/ox_inventory/Functions/External/Server/Inventory/AddItem","docId":"ox_inventory/Functions/External/Server/Inventory/AddItem"},{"type":"link","label":"CanCarryItem","href":"/docs/ox_inventory/Functions/External/Server/Inventory/CanCarryItem","docId":"ox_inventory/Functions/External/Server/Inventory/CanCarryItem"},{"type":"link","label":"CanSwapItem","href":"/docs/ox_inventory/Functions/External/Server/Inventory/CanSwapItem","docId":"ox_inventory/Functions/External/Server/Inventory/CanSwapItem"},{"type":"link","label":"ClearInventory","href":"/docs/ox_inventory/Functions/External/Server/Inventory/ClearInventory","docId":"ox_inventory/Functions/External/Server/Inventory/ClearInventory"},{"type":"link","label":"ConfiscateInventory","href":"/docs/ox_inventory/Functions/External/Server/Inventory/ConfiscateInventory","docId":"ox_inventory/Functions/External/Server/Inventory/ConfiscateInventory"},{"type":"link","label":"ConvertItems","href":"/docs/ox_inventory/Functions/External/Server/Inventory/ConvertItems","docId":"ox_inventory/Functions/External/Server/Inventory/ConvertItems"},{"type":"link","label":"CustomDrop","href":"/docs/ox_inventory/Functions/External/Server/Inventory/CustomDrop","docId":"ox_inventory/Functions/External/Server/Inventory/CustomDrop"},{"type":"link","label":"GetCurrentWeapon","href":"/docs/ox_inventory/Functions/External/Server/Inventory/GetCurrentWeapon","docId":"ox_inventory/Functions/External/Server/Inventory/GetCurrentWeapon"},{"type":"link","label":"GetItem","href":"/docs/ox_inventory/Functions/External/Server/Inventory/GetItem","docId":"ox_inventory/Functions/External/Server/Inventory/GetItem"},{"type":"link","label":"GetItemSlots","href":"/docs/ox_inventory/Functions/External/Server/Inventory/GetItemSlots","docId":"ox_inventory/Functions/External/Server/Inventory/GetItemSlots"},{"type":"link","label":"GetSlot","href":"/docs/ox_inventory/Functions/External/Server/Inventory/GetSlot","docId":"ox_inventory/Functions/External/Server/Inventory/GetSlot"},{"type":"link","label":"RegisterStash","href":"/docs/ox_inventory/Functions/External/Server/Inventory/RegisterStash","docId":"ox_inventory/Functions/External/Server/Inventory/RegisterStash"},{"type":"link","label":"RemoveItem","href":"/docs/ox_inventory/Functions/External/Server/Inventory/RemoveItem","docId":"ox_inventory/Functions/External/Server/Inventory/RemoveItem"},{"type":"link","label":"ReturnInventory","href":"/docs/ox_inventory/Functions/External/Server/Inventory/ReturnInventory","docId":"ox_inventory/Functions/External/Server/Inventory/ReturnInventory"},{"type":"link","label":"Search","href":"/docs/ox_inventory/Functions/External/Server/Inventory/Search","docId":"ox_inventory/Functions/External/Server/Inventory/Search"},{"type":"link","label":"SetDurability","href":"/docs/ox_inventory/Functions/External/Server/Inventory/SetDurability","docId":"ox_inventory/Functions/External/Server/Inventory/SetDurability"},{"type":"link","label":"SetMetadata","href":"/docs/ox_inventory/Functions/External/Server/Inventory/SetMetadata","docId":"ox_inventory/Functions/External/Server/Inventory/SetMetadata"},{"type":"link","label":"SwapSlots","href":"/docs/ox_inventory/Functions/External/Server/Inventory/SwapSlots","docId":"ox_inventory/Functions/External/Server/Inventory/SwapSlots"}]}]}]},{"type":"category","label":"Internal","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"Client","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Placeholder","href":"/docs/ox_inventory/Functions/Internal/Client/placeholder","docId":"ox_inventory/Functions/Internal/Client/placeholder"}]},{"type":"category","label":"Server","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Placeholder","href":"/docs/ox_inventory/Functions/Internal/Server/placeholder","docId":"ox_inventory/Functions/Internal/Server/placeholder"}]}]}]}],"collapsed":true,"collapsible":true}]},"docs":{"index":{"id":"index","title":"Documentation","description":"Here you can find all of the official documentation for resoruces developed by the Overextended team","sidebar":"docs"},"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.","sidebar":"docs"},"ox_inventory/Functions/External/Client/Interface/Keyboard":{"id":"ox_inventory/Functions/External/Client/Interface/Keyboard","title":"Keyboard","description":"Opens a keyboard input dialog.","sidebar":"docs"},"ox_inventory/Functions/External/Client/Interface/Progress":{"id":"ox_inventory/Functions/External/Client/Interface/Progress","title":"Progress","description":"Starts a progress bar that can callback a function upon completion or cancellation.","sidebar":"docs"},"ox_inventory/Functions/External/Client/Inventory/Search":{"id":"ox_inventory/Functions/External/Client/Inventory/Search","title":"Search","description":"Searches the inventory for a specified item.","sidebar":"docs"},"ox_inventory/Functions/External/Client/Items":{"id":"ox_inventory/Functions/External/Client/Items","title":"Items","description":"Returns a table of all registered items.","sidebar":"docs"},"ox_inventory/Functions/External/Client/openInventory":{"id":"ox_inventory/Functions/External/Client/openInventory","title":"openInventory","description":"Opens an inventory using on the passed data.","sidebar":"docs"},"ox_inventory/Functions/External/Client/openNearbyInventory":{"id":"ox_inventory/Functions/External/Client/openNearbyInventory","title":"openNearbyInventory","description":"If possible opens the nearby player\'s inventory.","sidebar":"docs"},"ox_inventory/Functions/External/Client/setStashTarget":{"id":"ox_inventory/Functions/External/Client/setStashTarget","title":"setStashTarget","description":"Forces the secondary-inventory key to open the passed inventory. Can be useful to enable inventory access while standing inside a marker.","sidebar":"docs"},"ox_inventory/Functions/External/Client/useItem":{"id":"ox_inventory/Functions/External/Client/useItem","title":"useItem","description":"Uses the passed item, then triggers the callback function.","sidebar":"docs"},"ox_inventory/Functions/External/Client/useSlot":{"id":"ox_inventory/Functions/External/Client/useSlot","title":"useSlot","description":"Uses the item in the given inventory slot.","sidebar":"docs"},"ox_inventory/Functions/External/Client/Utils/notify":{"id":"ox_inventory/Functions/External/Client/Utils/notify","title":"notify","description":"Displays the notification used accross the inventory.","sidebar":"docs"},"ox_inventory/Functions/External/Client/Utils/weaponWheel":{"id":"ox_inventory/Functions/External/Client/Utils/weaponWheel","title":"weaponWheel","description":"Enables the weapon wheel, but disables the use of inventory items.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/AddItem":{"id":"ox_inventory/Functions/External/Server/Inventory/AddItem","title":"AddItem","description":"Adds an item into the specified inventory.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/CanCarryItem":{"id":"ox_inventory/Functions/External/Server/Inventory/CanCarryItem","title":"CanCarryItem","description":"Returns true or false depending if the inventory can carry the specified item.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/CanSwapItem":{"id":"ox_inventory/Functions/External/Server/Inventory/CanSwapItem","title":"CanSwapItem","description":"Returns true if the item swap is possible based on inventory weight.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/ClearInventory":{"id":"ox_inventory/Functions/External/Server/Inventory/ClearInventory","title":"ClearInventory","description":"Clears the specified inventory.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/ConfiscateInventory":{"id":"ox_inventory/Functions/External/Server/Inventory/ConfiscateInventory","title":"ConfiscateInventory","description":"Clears a player\'s inventory and saves it to a stash.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/ConvertItems":{"id":"ox_inventory/Functions/External/Server/Inventory/ConvertItems","title":"ConvertItems","description":"Takes traditional item data and updates it to support ox_inventory.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/CustomDrop":{"id":"ox_inventory/Functions/External/Server/Inventory/CustomDrop","title":"CustomDrop","description":"Creates an inventory drop at the specified coords.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/GetCurrentWeapon":{"id":"ox_inventory/Functions/External/Server/Inventory/GetCurrentWeapon","title":"GetCurrentWeapon","description":"Returns the player\'s currently equipped weapon as a table.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/GetItem":{"id":"ox_inventory/Functions/External/Server/Inventory/GetItem","title":"GetItem","description":"Returns the item from the specified inventory.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/GetItemSlots":{"id":"ox_inventory/Functions/External/Server/Inventory/GetItemSlots","title":"GetItemSlots","description":"Returns the number of slots the specified item is in, the item\'s total count and the remaining empty slots.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/GetSlot":{"id":"ox_inventory/Functions/External/Server/Inventory/GetSlot","title":"GetSlot","description":"Returns the specified slot data as a table.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/RegisterStash":{"id":"ox_inventory/Functions/External/Server/Inventory/RegisterStash","title":"RegisterStash","description":"Creates a new custom stash.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/RemoveItem":{"id":"ox_inventory/Functions/External/Server/Inventory/RemoveItem","title":"RemoveItem","description":"Removes the specified item from the specified inventory.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/ReturnInventory":{"id":"ox_inventory/Functions/External/Server/Inventory/ReturnInventory","title":"ReturnInventory","description":"Returns the confiscated inventory back to the player.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/Search":{"id":"ox_inventory/Functions/External/Server/Inventory/Search","title":"Search","description":"Searches an inventory for a specified item.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/SetDurability":{"id":"ox_inventory/Functions/External/Server/Inventory/SetDurability","title":"SetDurability","description":"Sets durability onto the specified slot.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/SetMetadata":{"id":"ox_inventory/Functions/External/Server/Inventory/SetMetadata","title":"SetMetadata","description":"Sets metadata on the specified slot.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Inventory/SwapSlots":{"id":"ox_inventory/Functions/External/Server/Inventory/SwapSlots","title":"SwapSlots","description":"Swaps slots in specified inventories.","sidebar":"docs"},"ox_inventory/Functions/External/Server/Items":{"id":"ox_inventory/Functions/External/Server/Items","title":"Items","description":"Returns a table of all registered items.","sidebar":"docs"},"ox_inventory/Functions/External/Server/setPlayerInventory":{"id":"ox_inventory/Functions/External/Server/setPlayerInventory","title":"setPlayerInventory","description":"Creates and sets the player\'s inventory.","sidebar":"docs"},"ox_inventory/Functions/Internal/Client/placeholder":{"id":"ox_inventory/Functions/Internal/Client/placeholder","title":"Placeholder","description":"","sidebar":"docs"},"ox_inventory/Functions/Internal/Server/placeholder":{"id":"ox_inventory/Functions/Internal/Server/placeholder","title":"Placeholder","description":"","sidebar":"docs"},"ox_inventory/Guides/index":{"id":"ox_inventory/Guides/index","title":"Overview","description":"Providing examples and explaining certain inventory API into more detail.","sidebar":"docs"},"ox_inventory/Guides/inventory_ui":{"id":"ox_inventory/Guides/inventory_ui","title":"Building inventory UI","description":"* Node.js","sidebar":"docs"},"ox_inventory/Guides/stashes":{"id":"ox_inventory/Guides/stashes","title":"Creating custom stashes","description":"We can set up custom stashes from outside the resource utilising the exported RegisterStash function. Firstly, we need to define the stashes properties.","sidebar":"docs"},"ox_inventory/index":{"id":"ox_inventory/index","title":"index","description":"","sidebar":"docs"},"ox_inventory/installation":{"id":"ox_inventory/installation","title":"Getting Started","description":"This resource is being designed with the intention of providing advanced functionality while remaining easy to use,","sidebar":"docs"},"ox_lib/Client/cache":{"id":"ox_lib/Client/cache","title":"Cache","description":"Caches data related to the player and handling some events or statebags.","sidebar":"docs"},"ox_lib/Client/callback":{"id":"ox_lib/Client/callback","title":"Callbacks","description":"Triggers a registered server callback and registers an event handler for the response.","sidebar":"docs"},"ox_lib/Client/disableControls":{"id":"ox_lib/Client/disableControls","title":"Disable Controls","description":"lib.disableControls","sidebar":"docs"},"ox_lib/Client/index":{"id":"ox_lib/Client/index","title":"index","description":"","sidebar":"docs"},"ox_lib/Client/streaming":{"id":"ox_lib/Client/streaming","title":"Streaming","description":"Check if assets exist, such as models, and loads them into memory.","sidebar":"docs"},"ox_lib/Client/vehicleProperties":{"id":"ox_lib/Client/vehicleProperties","title":"Vehicle Properties","description":"Mostly follows the format used by ESX and QBCore, with extra data such as damaged/missing props.","sidebar":"docs"},"ox_lib/index":{"id":"ox_lib/index","title":"index","description":"","sidebar":"docs"},"ox_lib/Server/acl":{"id":"ox_lib/Server/acl","title":"Permissions","description":"Wrapper around the built-in ACL system. Handles lib.addCommand and ox_groups permissions.","sidebar":"docs"},"ox_lib/Server/addCommand":{"id":"ox_lib/Server/addCommand","title":"Command","description":"","sidebar":"docs"},"ox_lib/Server/callback":{"id":"ox_lib/Server/callback","title":"Callbacks","description":"lib.callback.register","sidebar":"docs"},"ox_lib/Server/index":{"id":"ox_lib/Server/index","title":"index","description":"","sidebar":"docs"},"ox_lib/Server/version":{"id":"ox_lib/Server/version","title":"Version check","description":"lib.versionCheck","sidebar":"docs"},"ox_lib/Shared/version":{"id":"ox_lib/Shared/version","title":"Dependency version","description":"lib.checkDependency","sidebar":"docs"},"oxmysql/Getting Started/benchmark":{"id":"oxmysql/Getting Started/benchmark","title":"Benchmark","description":"Internal benchmark","sidebar":"docs"},"oxmysql/Getting Started/index":{"id":"oxmysql/Getting Started/index","title":"Getting Started","description":"Installation","sidebar":"docs"},"oxmysql/Getting Started/issues":{"id":"oxmysql/Getting Started/issues","title":"Common Issues","description":"Unable to establish a connection","sidebar":"docs"},"oxmysql/index":{"id":"oxmysql/index","title":"index","description":"","sidebar":"docs"},"oxmysql/Usage/index":{"id":"oxmysql/Usage/index","title":"Usage","description":"todo - include some information about proper formatting, placeholders, bad practices, etc.","sidebar":"docs"},"oxmysql/Usage/insert":{"id":"oxmysql/Usage/insert","title":"Insert","description":"Inserts a new entry into the database and returns the insert id for the row, if valid.","sidebar":"docs"},"oxmysql/Usage/prepare":{"id":"oxmysql/Usage/prepare","title":"Prepare","description":"The only function that provides true prepared statements, granting native protection and query planning by MySQL.","sidebar":"docs"},"oxmysql/Usage/query":{"id":"oxmysql/Usage/query","title":"Query","description":"Generic function that can be utilised for any query.","sidebar":"docs"},"oxmysql/Usage/scalar":{"id":"oxmysql/Usage/scalar","title":"Scalar","description":"Returns the first column for a single row.","sidebar":"docs"},"oxmysql/Usage/single":{"id":"oxmysql/Usage/single","title":"Single","description":"Returns the columns for a single row.","sidebar":"docs"},"oxmysql/Usage/transaction":{"id":"oxmysql/Usage/transaction","title":"Transaction","description":"todo - update formatting and information","sidebar":"docs"},"oxmysql/Usage/update":{"id":"oxmysql/Usage/update","title":"Update","description":"Returns the number of affected rows by the query.","sidebar":"docs"}}}')}}]); \ No newline at end of file diff --git a/assets/js/c2e48a87.1f04ce11.js b/assets/js/c2e48a87.1f04ce11.js deleted file mode 100644 index 311d39e4..00000000 --- a/assets/js/c2e48a87.1f04ce11.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4434],{3905:function(e,t,r){r.d(t,{Zo:function(){return p},kt:function(){return d}});var n=r(7294);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var u=n.createContext({}),l=function(e){var t=n.useContext(u),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},p=function(e){var t=l(e.components);return n.createElement(u.Provider,{value:t},e.children)},s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,i=e.originalType,u=e.parentName,p=a(e,["components","mdxType","originalType","parentName"]),f=l(r),d=o,b=f["".concat(u,".").concat(d)]||f[d]||s[d]||i;return r?n.createElement(b,c(c({ref:t},p),{},{components:r})):n.createElement(b,c({ref:t},p))}));function d(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=r.length,c=new Array(i);c[0]=f;var a={};for(var u in t)hasOwnProperty.call(t,u)&&(a[u]=t[u]);a.originalType=e,a.mdxType="string"==typeof e?e:o,c[1]=a;for(var l=2;l=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=r.createContext({}),l=function(e){var t=r.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},p=function(e){var t=l(e.components);return r.createElement(u.Provider,{value:t},e.children)},s={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,p=a(e,["components","mdxType","originalType","parentName"]),f=l(n),d=o,m=f["".concat(u,".").concat(d)]||f[d]||s[d]||i;return n?r.createElement(m,c(c({ref:t},p),{},{components:n})):r.createElement(m,c({ref:t},p))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,c=new Array(i);c[0]=f;var a={};for(var u in t)hasOwnProperty.call(t,u)&&(a[u]=t[u]);a.originalType=e,a.mdxType="string"==typeof e?e:o,c[1]=a;for(var l=2;l=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=r.createContext({}),l=function(e){var t=r.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},f=function(e){var t=l(e.components);return r.createElement(u.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},s=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,i=e.originalType,u=e.parentName,f=a(e,["components","mdxType","originalType","parentName"]),s=l(n),d=o,m=s["".concat(u,".").concat(d)]||s[d]||p[d]||i;return n?r.createElement(m,c(c({ref:t},f),{},{components:n})):r.createElement(m,c({ref:t},f))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,c=new Array(i);c[0]=s;var a={};for(var u in t)hasOwnProperty.call(t,u)&&(a[u]=t[u]);a.originalType=e,a.mdxType="string"==typeof e?e:o,c[1]=a;for(var l=2;l=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=r.createContext({}),l=function(e){var t=r.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},f=function(e){var t=l(e.components);return r.createElement(u.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},s=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,i=e.originalType,u=e.parentName,f=a(e,["components","mdxType","originalType","parentName"]),s=l(n),d=o,m=s["".concat(u,".").concat(d)]||s[d]||p[d]||i;return n?r.createElement(m,c(c({ref:t},f),{},{components:n})):r.createElement(m,c({ref:t},f))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,c=new Array(i);c[0]=s;var a={};for(var u in t)hasOwnProperty.call(t,u)&&(a[u]=t[u]);a.originalType=e,a.mdxType="string"==typeof e?e:o,c[1]=a;for(var l=2;l=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l=r.createContext({}),c=function(e){var t=r.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},u=function(e){var t=c(e.components);return r.createElement(l.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=s(e,["components","mdxType","originalType","parentName"]),m=c(n),p=o,f=m["".concat(l,".").concat(p)]||m[p]||d[p]||a;return n?r.createElement(f,i(i({ref:t},u),{},{components:n})):r.createElement(f,i({ref:t},u))}));function p(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=n.length,i=new Array(a);i[0]=m;var s={};for(var l in t)hasOwnProperty.call(t,l)&&(s[l]=t[l]);s.originalType=e,s.mdxType="string"==typeof e?e:o,i[1]=s;for(var c=2;c=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l=r.createContext({}),c=function(e){var t=r.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},u=function(e){var t=c(e.components);return r.createElement(l.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,u=s(e,["components","mdxType","originalType","parentName"]),m=c(n),p=o,f=m["".concat(l,".").concat(p)]||m[p]||d[p]||a;return n?r.createElement(f,i(i({ref:t},u),{},{components:n})):r.createElement(f,i({ref:t},u))}));function p(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=n.length,i=new Array(a);i[0]=m;var s={};for(var l in t)hasOwnProperty.call(t,l)&&(s[l]=t[l]);s.originalType=e,s.mdxType="string"==typeof e?e:o,i[1]=s;for(var c=2;c=c)&&Object.keys(b.O).every((function(e){return b.O[e](d[r])}))?d.splice(r--,1):(n=!1,c0&&e[u-1][2]>c;u--)e[u]=e[u-1];e[u]=[d,t,c]},b.n=function(e){var f=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(f,{a:f}),f},d=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},b.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var c=Object.create(null);b.r(c);var a={};f=f||[null,d({}),d([]),d(d)];for(var n=2&t&&e;"object"==typeof n&&!~f.indexOf(n);n=d(n))Object.getOwnPropertyNames(n).forEach((function(f){a[f]=function(){return e[f]}}));return a.default=function(){return e},b.d(c,a),c},b.d=function(e,f){for(var d in f)b.o(f,d)&&!b.o(e,d)&&Object.defineProperty(e,d,{enumerable:!0,get:f[d]})},b.f={},b.e=function(e){return Promise.all(Object.keys(b.f).reduce((function(f,d){return b.f[d](e,f),f}),[]))},b.u=function(e){return"assets/js/"+({53:"935f2afb",336:"e836e7f0",528:"800d88d2",836:"1b758871",838:"37fe4dea",1187:"79c260cf",1308:"0d195716",1358:"afe7e8e5",1477:"b2f554cd",1521:"0f06fd08",1685:"29e7168c",1884:"c8b7a7b8",2031:"dadefd20",2202:"34a267b8",2352:"d3c921a8",2446:"831ab327",2558:"a3457942",2566:"3e2cefe5",2717:"078b18b7",2961:"38789362",3085:"1f391b9e",3120:"2c127759",3128:"2ff920a5",3149:"9a9bc35c",3237:"1df93b7f",3256:"b51a0084",3330:"2b610ee2",3506:"26f73f9f",3608:"9e4087bc",3656:"1efa5838",3795:"6ff605af",3964:"67ac35a6",3974:"e3015b82",4196:"4e1fc67b",4349:"341f8302",4377:"8bbdd1b6",4434:"c2e48a87",4569:"8c300d32",4772:"871b43d2",4868:"d03a288b",5231:"8e0f778b",5981:"42e2cc7c",6193:"d4a6286b",6230:"4edc5f94",6286:"3c08f3a3",6388:"d4cbf223",6661:"8c5ee32e",6763:"12ae9db4",6901:"ecb88550",6971:"c377a04b",6995:"56163916",7008:"fd4717da",7309:"f402e59b",7414:"393be207",7653:"27ba855c",7835:"23a5733a",7882:"dcdd45ce",7918:"17896441",8102:"b9b062d6",9136:"2339d2f0",9155:"d6b25613",9315:"ba38ef30",9373:"cd20b58f",9414:"5d7eb90d",9490:"6907d369",9491:"adbed512",9514:"1be78505",9586:"85ef8f6b",9666:"863aad54",9730:"daa8642d",9791:"1d131567",9931:"f133530e",9957:"09dc1e0e"}[e]||e)+"."+{53:"984ea3e2",336:"673b3edf",528:"09e65ce2",836:"481b561e",838:"6e68fcdf",1187:"bc7e0407",1308:"68d99755",1358:"13c6cbb7",1477:"ef5c39b9",1521:"8556017d",1685:"e2ef1cd1",1884:"1244de6b",2031:"1d13f36f",2202:"3ed2088b",2352:"484d4352",2446:"d2530474",2558:"ff70a6d3",2566:"360ab7e3",2717:"4bf7cd9b",2961:"5215d409",3085:"ec33a90a",3120:"78439447",3128:"f88ab0ea",3149:"2cac84a2",3237:"84d7bf77",3256:"01f49bf8",3330:"b963f4d0",3506:"5a53b0a0",3608:"49f3d38a",3656:"7abcb9be",3795:"730df6d8",3964:"a9767eb6",3974:"6191525d",4196:"e4dccbeb",4349:"b26e2fda",4377:"8d18cb3b",4434:"1f04ce11",4569:"642dd282",4608:"8a1af423",4772:"cd34a86e",4868:"2236ec8e",5231:"b861e162",5897:"9d699ae9",5981:"35d6ab1f",6193:"5cc59cea",6230:"5689046a",6286:"7cca2b04",6388:"19a3e4ec",6460:"c1927e5c",6661:"25e86019",6763:"27be86cf",6901:"104942f5",6971:"0b325b6f",6995:"09d0d563",7008:"f1e773cc",7309:"d5492e0e",7414:"7d8576b6",7653:"c07a9497",7835:"5434213e",7882:"5b1b87c4",7918:"0cc10e7c",8102:"3b429645",9136:"d87c08eb",9155:"66ffdf3a",9315:"87ff99d9",9373:"d28430d0",9414:"66cc1f1a",9490:"44596f3b",9491:"f84c0c4b",9514:"f8bc29db",9586:"9548fb6a",9666:"be64730a",9730:"1be78b3f",9791:"0b8fdd78",9931:"a6599842",9957:"34c4b9c7"}[e]+".js"},b.miniCssF=function(e){},b.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),b.o=function(e,f){return Object.prototype.hasOwnProperty.call(e,f)},t={},c="website:",b.l=function(e,f,d,a){if(t[e])t[e].push(f);else{var n,r;if(void 0!==d)for(var o=document.getElementsByTagName("script"),u=0;u=c)&&Object.keys(b.O).every((function(e){return b.O[e](d[r])}))?d.splice(r--,1):(n=!1,c0&&e[u-1][2]>c;u--)e[u]=e[u-1];e[u]=[d,t,c]},b.n=function(e){var f=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(f,{a:f}),f},d=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},b.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var c=Object.create(null);b.r(c);var a={};f=f||[null,d({}),d([]),d(d)];for(var n=2&t&&e;"object"==typeof n&&!~f.indexOf(n);n=d(n))Object.getOwnPropertyNames(n).forEach((function(f){a[f]=function(){return e[f]}}));return a.default=function(){return e},b.d(c,a),c},b.d=function(e,f){for(var d in f)b.o(f,d)&&!b.o(e,d)&&Object.defineProperty(e,d,{enumerable:!0,get:f[d]})},b.f={},b.e=function(e){return Promise.all(Object.keys(b.f).reduce((function(f,d){return b.f[d](e,f),f}),[]))},b.u=function(e){return"assets/js/"+({53:"935f2afb",336:"e836e7f0",528:"800d88d2",836:"1b758871",838:"37fe4dea",1187:"79c260cf",1308:"0d195716",1358:"afe7e8e5",1477:"b2f554cd",1521:"0f06fd08",1685:"29e7168c",1884:"c8b7a7b8",2031:"dadefd20",2202:"34a267b8",2352:"d3c921a8",2446:"831ab327",2558:"a3457942",2566:"3e2cefe5",2717:"078b18b7",2961:"38789362",3085:"1f391b9e",3120:"2c127759",3128:"2ff920a5",3149:"9a9bc35c",3237:"1df93b7f",3256:"b51a0084",3330:"2b610ee2",3506:"26f73f9f",3608:"9e4087bc",3656:"1efa5838",3795:"6ff605af",3964:"67ac35a6",3974:"e3015b82",4196:"4e1fc67b",4349:"341f8302",4377:"8bbdd1b6",4434:"c2e48a87",4569:"8c300d32",4772:"871b43d2",4868:"d03a288b",5231:"8e0f778b",5981:"42e2cc7c",6193:"d4a6286b",6230:"4edc5f94",6286:"3c08f3a3",6388:"d4cbf223",6661:"8c5ee32e",6763:"12ae9db4",6901:"ecb88550",6971:"c377a04b",6995:"56163916",7008:"fd4717da",7309:"f402e59b",7414:"393be207",7653:"27ba855c",7835:"23a5733a",7882:"dcdd45ce",7918:"17896441",8102:"b9b062d6",9136:"2339d2f0",9155:"d6b25613",9315:"ba38ef30",9373:"cd20b58f",9414:"5d7eb90d",9490:"6907d369",9491:"adbed512",9514:"1be78505",9586:"85ef8f6b",9666:"863aad54",9730:"daa8642d",9791:"1d131567",9931:"f133530e",9957:"09dc1e0e"}[e]||e)+"."+{53:"a7e3b91e",336:"673b3edf",528:"09e65ce2",836:"481b561e",838:"6e68fcdf",1187:"bc7e0407",1308:"68d99755",1358:"13c6cbb7",1477:"ef5c39b9",1521:"8556017d",1685:"e2ef1cd1",1884:"1244de6b",2031:"1d13f36f",2202:"359db2f0",2352:"484d4352",2446:"d2530474",2558:"ff70a6d3",2566:"360ab7e3",2717:"4bf7cd9b",2961:"5215d409",3085:"ec33a90a",3120:"78439447",3128:"98ccab96",3149:"2cac84a2",3237:"84d7bf77",3256:"01f49bf8",3330:"b963f4d0",3506:"5a53b0a0",3608:"49f3d38a",3656:"7abcb9be",3795:"730df6d8",3964:"a9767eb6",3974:"6191525d",4196:"e4dccbeb",4349:"b26e2fda",4377:"37fbe10d",4434:"cbcdfdb1",4569:"9e1eb290",4608:"8a1af423",4772:"cd34a86e",4868:"2236ec8e",5231:"b861e162",5897:"9d699ae9",5981:"35d6ab1f",6193:"8a2543c9",6230:"5689046a",6286:"9a3e7180",6388:"19a3e4ec",6460:"c1927e5c",6661:"25e86019",6763:"27be86cf",6901:"104942f5",6971:"3f9f550e",6995:"09d0d563",7008:"f1e773cc",7309:"d5492e0e",7414:"7d8576b6",7653:"a456320a",7835:"5434213e",7882:"5b1b87c4",7918:"0cc10e7c",8102:"3b429645",9136:"d87c08eb",9155:"66ffdf3a",9315:"87ff99d9",9373:"d28430d0",9414:"66cc1f1a",9490:"44596f3b",9491:"f84c0c4b",9514:"f8bc29db",9586:"9548fb6a",9666:"be64730a",9730:"1be78b3f",9791:"0b8fdd78",9931:"a6599842",9957:"34c4b9c7"}[e]+".js"},b.miniCssF=function(e){},b.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),b.o=function(e,f){return Object.prototype.hasOwnProperty.call(e,f)},t={},c="website:",b.l=function(e,f,d,a){if(t[e])t[e].push(f);else{var n,r;if(void 0!==d)for(var o=document.getElementsByTagName("script"),u=0;u Archive | Overextended - +

Archive

Archive

- + \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 43615dec..7a2672ff 100644 --- a/docs/index.html +++ b/docs/index.html @@ -5,14 +5,14 @@ Documentation | Overextended - +

Documentation

Here you can find all of the official documentation for resoruces developed by the Overextended team

If you feel like the documentation is lacking in some department then feel free to go onto that page -and click the "Edit this page" at the bottom and submit a Pull Request.

- +and click the "Edit this page" at the bottom and submit a Pull Request.

+ \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Client/Interface/Keyboard/index.html b/docs/ox_inventory/Functions/External/Client/Interface/Keyboard/index.html index 9c91a1f7..a84a3fd6 100644 --- a/docs/ox_inventory/Functions/External/Client/Interface/Keyboard/index.html +++ b/docs/ox_inventory/Functions/External/Client/Interface/Keyboard/index.html @@ -5,15 +5,15 @@ Keyboard | Overextended - +
-

Keyboard

Opens a keyboard input dialog.

The rows param takes a table of strings where each string entry will represent +

Keyboard

Opens a keyboard input dialog.

The rows param takes a table of strings where each string entry will represent a single row.

-- header: string
-- rows: table
exports.ox_inventory:Keyboard(header, rows)

Returns a table of strings where the first index is going to be the first row of the dialog, the second index the second row and so on.

Example:

local input = exports.ox_inventory:Keyboard('Money transfer', {'Player name', 'Amount'})

if input then
local playerName = input[1]
local amount = tonumber(input[2])

if not playerName or not amount then return end
end
- + \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Client/Interface/Progress/index.html b/docs/ox_inventory/Functions/External/Client/Interface/Progress/index.html index 458fad35..ba0665f1 100644 --- a/docs/ox_inventory/Functions/External/Client/Interface/Progress/index.html +++ b/docs/ox_inventory/Functions/External/Client/Interface/Progress/index.html @@ -5,13 +5,13 @@ Progress | Overextended - +
-

Progress

Starts a progress bar that can callback a function upon completion or cancellation.

Prevents actions such as opening the inventory, reloading, etc.

-- options: table
-- completed: function
exports.ox_inventory:Progress(options, completed)

Options table values:

-- duration: number
-- label: string
-- useWhileDead: boolean (optional)
-- canCancel: boolean (optional)
-- anim: table (optional)
-- dict: string
-- clip: string
-- flag: number (optional - default is 49)
-- scenario: string (optional)
-- prop/propTwo: table (optional)
-- model: hash or string
-- bone: number (optional - default is 60309)
-- pos: vector3 (optional)
-- rot: vector3 (optional)
-- disable: table (optional)
-- move: boolean (optional)
-- car: boolean (optional)
-- combat: boolean (optional)
-- mouse: boolean (optional)
danger

If you define a scenario while you have a defined anim table the scenario will be ignored.

Example:

exports.ox_inventory:Progress({
duration = 2000,
label = 'Drinking water',
useWhileDead = false,
canCancel = true,
disable = {
car = true
},
anim = {
dict = 'mp_player_intdrink',
clip = 'loop_bottle',
flags = 49,
},
prop = {
model = 'prop_ld_flow_bottle',
pos = vector3(0.03, 0.03, 0.02),
rot = vector3(0.0, 0.0, -1.5),
bone = 58866
},
}, function(cancel)
if not cancel then
print("You drank some water - that'll quench ya!")
end
end)

CancelProgress​

Cancels the currently active progress bar.

exports.ox_inventory:CancelProgress()

ProgressActive​

Returns true or false whether the progress bar is currently active or not

exports.ox_inventory:ProgressActive()
- +

Progress

Starts a progress bar that can callback a function upon completion or cancellation.

Prevents actions such as opening the inventory, reloading, etc.

-- options: table
-- completed: function
exports.ox_inventory:Progress(options, completed)

Options table values:

-- duration: number
-- label: string
-- useWhileDead: boolean (optional)
-- canCancel: boolean (optional)
-- anim: table (optional)
-- dict: string
-- clip: string
-- flag: number (optional - default is 49)
-- scenario: string (optional)
-- prop/propTwo: table (optional)
-- model: hash or string
-- bone: number (optional - default is 60309)
-- pos: vector3 (optional)
-- rot: vector3 (optional)
-- disable: table (optional)
-- move: boolean (optional)
-- car: boolean (optional)
-- combat: boolean (optional)
-- mouse: boolean (optional)
danger

If you define a scenario while you have a defined anim table the scenario will be ignored.

Example:

exports.ox_inventory:Progress({
duration = 2000,
label = 'Drinking water',
useWhileDead = false,
canCancel = true,
disable = {
car = true
},
anim = {
dict = 'mp_player_intdrink',
clip = 'loop_bottle',
flags = 49,
},
prop = {
model = 'prop_ld_flow_bottle',
pos = vector3(0.03, 0.03, 0.02),
rot = vector3(0.0, 0.0, -1.5),
bone = 58866
},
}, function(cancel)
if not cancel then
print("You drank some water - that'll quench ya!")
end
end)

CancelProgress​

Cancels the currently active progress bar.

exports.ox_inventory:CancelProgress()

ProgressActive​

Returns true or false whether the progress bar is currently active or not

exports.ox_inventory:ProgressActive()
+ \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Client/Inventory/Search/index.html b/docs/ox_inventory/Functions/External/Client/Inventory/Search/index.html index f156d8d1..857e0106 100644 --- a/docs/ox_inventory/Functions/External/Client/Inventory/Search/index.html +++ b/docs/ox_inventory/Functions/External/Client/Inventory/Search/index.html @@ -5,15 +5,15 @@ Search | Overextended - +
-

Search

Searches the inventory for a specified item.

-- search: string
-- item: table or string
-- metadata: table or string (optional)
expors.ox_inventory:Search(search, item, metadata)

If the search argument is defined as 'slots' the return will be a table +

Search

Searches the inventory for a specified item.

-- search: string
-- item: table or string
-- metadata: table or string (optional)
expors.ox_inventory:Search(search, item, metadata)

If the search argument is defined as 'slots' the return will be a table of slots where the item was found at.

Otherwise if the search argument is defined as 'count' the return value will be the amount of the specified item in player's inventory.

- + \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Client/Items/index.html b/docs/ox_inventory/Functions/External/Client/Items/index.html index d86134b2..86b109db 100644 --- a/docs/ox_inventory/Functions/External/Client/Items/index.html +++ b/docs/ox_inventory/Functions/External/Client/Items/index.html @@ -5,13 +5,13 @@ Items | Overextended - + - +
+ \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Client/Utils/notify/index.html b/docs/ox_inventory/Functions/External/Client/Utils/notify/index.html index f6b3c1fd..392f81e3 100644 --- a/docs/ox_inventory/Functions/External/Client/Utils/notify/index.html +++ b/docs/ox_inventory/Functions/External/Client/Utils/notify/index.html @@ -5,13 +5,13 @@ notify | Overextended - +
-

notify

Displays the notification used accross the inventory.

The notifications are built using the react-hot-teast library.

-- data: table
exports.ox_inventory:notify(data)

Values for the data table:

-- text: string
-- type: string (optional)
-- 'success'
-- 'info' - default
-- 'error'
-- position: string (optional)
-- 'top-left'
-- 'top-center' - default
-- 'top-right'
-- 'bottom-left'
-- 'bottom-center'
-- 'bottom-right
-- duration: number (optional - default is 4000 ms)

Example:

exports.ox_inventory:notify({type = 'Success', text = 'Making pancakes', duration = 2500})
- +

notify

Displays the notification used accross the inventory.

The notifications are built using the react-hot-teast library.

-- data: table
exports.ox_inventory:notify(data)

Values for the data table:

-- text: string
-- type: string (optional)
-- 'success'
-- 'info' - default
-- 'error'
-- position: string (optional)
-- 'top-left'
-- 'top-center' - default
-- 'top-right'
-- 'bottom-left'
-- 'bottom-center'
-- 'bottom-right
-- duration: number (optional - default is 4000 ms)

Example:

exports.ox_inventory:notify({type = 'Success', text = 'Making pancakes', duration = 2500})
+ \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Client/Utils/weaponWheel/index.html b/docs/ox_inventory/Functions/External/Client/Utils/weaponWheel/index.html index 1136f8e5..5ca3b275 100644 --- a/docs/ox_inventory/Functions/External/Client/Utils/weaponWheel/index.html +++ b/docs/ox_inventory/Functions/External/Client/Utils/weaponWheel/index.html @@ -5,13 +5,13 @@ weaponWheel | Overextended - +
-

weaponWheel

Enables the weapon wheel, but disables the use of inventory items.

Mostly used for weaponised vehicles, though could be called for "minigames"

-- state: boolean
local exports.ox_inventory:weaponWheel(state)
- +

weaponWheel

Enables the weapon wheel, but disables the use of inventory items.

Mostly used for weaponised vehicles, though could be called for "minigames"

-- state: boolean
local exports.ox_inventory:weaponWheel(state)
+ \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Client/openInventory/index.html b/docs/ox_inventory/Functions/External/Client/openInventory/index.html index 42850095..71ed8cbd 100644 --- a/docs/ox_inventory/Functions/External/Client/openInventory/index.html +++ b/docs/ox_inventory/Functions/External/Client/openInventory/index.html @@ -5,13 +5,13 @@ openInventory | Overextended - +
-

openInventory

Opens an inventory using on the passed data.

-- inv: string
-- data: any
exports.ox_inventory:openInventory(invType, data)

exports.ox_inventory:openInventory('player', 1)
exports.ox_inventory:openInventory('stash', 1)
exports.ox_inventory:openInventory('shop', { type = 'PoliceArmoury', id = 1 })
- +

openInventory

Opens an inventory using on the passed data.

-- inv: string
-- data: any
exports.ox_inventory:openInventory(invType, data)

exports.ox_inventory:openInventory('player', 1)
exports.ox_inventory:openInventory('stash', 1)
exports.ox_inventory:openInventory('shop', { type = 'PoliceArmoury', id = 1 })
+ \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Client/openNearbyInventory/index.html b/docs/ox_inventory/Functions/External/Client/openNearbyInventory/index.html index ef5baacb..f3d94ee0 100644 --- a/docs/ox_inventory/Functions/External/Client/openNearbyInventory/index.html +++ b/docs/ox_inventory/Functions/External/Client/openNearbyInventory/index.html @@ -5,15 +5,15 @@ openNearbyInventory | Overextended - +
-

openNearbyInventory

If possible opens the nearby player's inventory.

The player trying to open the invenotry must be able to open their own and +

openNearbyInventory

If possible opens the nearby player's inventory.

The player trying to open the invenotry must be able to open their own and if the player does not have a police job, the target player must be fatally injured or playing one of the death anims.

exports.ox_inventory:openNearbyInventory()
- + \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Client/setStashTarget/index.html b/docs/ox_inventory/Functions/External/Client/setStashTarget/index.html index 02b31245..aa4126ea 100644 --- a/docs/ox_inventory/Functions/External/Client/setStashTarget/index.html +++ b/docs/ox_inventory/Functions/External/Client/setStashTarget/index.html @@ -5,13 +5,13 @@ setStashTarget | Overextended - +
-

setStashTarget

Forces the secondary-inventory key to open the passed inventory. Can be useful to enable inventory access while standing inside a marker.

-- id: string or number
-- owner: string or number (optional)
exports.ox_inventory:setStashTarget(id, owner)

exports.ox_inventory:setStashTarget('motel5', 'bobsmith')
- +

setStashTarget

Forces the secondary-inventory key to open the passed inventory. Can be useful to enable inventory access while standing inside a marker.

-- id: string or number
-- owner: string or number (optional)
exports.ox_inventory:setStashTarget(id, owner)

exports.ox_inventory:setStashTarget('motel5', 'bobsmith')
+ \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Client/useItem/index.html b/docs/ox_inventory/Functions/External/Client/useItem/index.html index 45334c83..99e35aab 100644 --- a/docs/ox_inventory/Functions/External/Client/useItem/index.html +++ b/docs/ox_inventory/Functions/External/Client/useItem/index.html @@ -5,13 +5,13 @@ useItem | Overextended - + - +

useItem

Uses the passed item, then triggers the callback function.

-- data: table
-- cb: function (optional)
exports.ox_inventory:useItem(data, cb)
+ \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Client/useSlot/index.html b/docs/ox_inventory/Functions/External/Client/useSlot/index.html index b5acc3b8..29aa1fa0 100644 --- a/docs/ox_inventory/Functions/External/Client/useSlot/index.html +++ b/docs/ox_inventory/Functions/External/Client/useSlot/index.html @@ -5,13 +5,13 @@ useSlot | Overextended - + - +
+ \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Server/Inventory/AddItem/index.html b/docs/ox_inventory/Functions/External/Server/Inventory/AddItem/index.html index 2606b379..75ed8d22 100644 --- a/docs/ox_inventory/Functions/External/Server/Inventory/AddItem/index.html +++ b/docs/ox_inventory/Functions/External/Server/Inventory/AddItem/index.html @@ -5,13 +5,13 @@ AddItem | Overextended - +
-

AddItem

Adds an item into the specified inventory.

Should be used alongside CanCarryItem.

-- inv: string or number
-- item: table or string
-- count: number
-- metadata: table or string (optional)
-- slot: number (optional)
-- cb: function (optional)
exports.ox_inventory:AddItem(inv, item, count, metadata, slot, cb)

Example:

exports.ox_inventory:AddItem(1, 'bread', 4, nil, nil, function(success, reason)
if not success then
if reason == 'overburdened' then
TriggerClientEvent('ox_inventory:notify', source, {type = 'error', text = shared.locale('cannot_carry', count, data.label), duration = 2500})
end
end
end)
- +

AddItem

Adds an item into the specified inventory.

Should be used alongside CanCarryItem.

-- inv: string or number
-- item: table or string
-- count: number
-- metadata: table or string (optional)
-- slot: number (optional)
-- cb: function (optional)
exports.ox_inventory:AddItem(inv, item, count, metadata, slot, cb)

Example:

exports.ox_inventory:AddItem(1, 'bread', 4, nil, nil, function(success, reason)
if not success then
if reason == 'overburdened' then
TriggerClientEvent('ox_inventory:notify', source, {type = 'error', text = shared.locale('cannot_carry', count, data.label), duration = 2500})
end
end
end)
+ \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Server/Inventory/CanCarryItem/index.html b/docs/ox_inventory/Functions/External/Server/Inventory/CanCarryItem/index.html index d9621744..aa39dec5 100644 --- a/docs/ox_inventory/Functions/External/Server/Inventory/CanCarryItem/index.html +++ b/docs/ox_inventory/Functions/External/Server/Inventory/CanCarryItem/index.html @@ -5,13 +5,13 @@ CanCarryItem | Overextended - +
-

CanCarryItem

Returns true or false depending if the inventory can carry the specified item.

The function checks for inventory weight and available slots.

-- inv: string or number
-- item: table or string
-- count: number
-- metadata: table or string (optional)
exports.ox_inventory:CanCarryItem(inv, item, count, metadata)
- +

CanCarryItem

Returns true or false depending if the inventory can carry the specified item.

The function checks for inventory weight and available slots.

-- inv: string or number
-- item: table or string
-- count: number
-- metadata: table or string (optional)
exports.ox_inventory:CanCarryItem(inv, item, count, metadata)
+ \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Server/Inventory/CanSwapItem/index.html b/docs/ox_inventory/Functions/External/Server/Inventory/CanSwapItem/index.html index 4684084c..a5e0718e 100644 --- a/docs/ox_inventory/Functions/External/Server/Inventory/CanSwapItem/index.html +++ b/docs/ox_inventory/Functions/External/Server/Inventory/CanSwapItem/index.html @@ -5,13 +5,13 @@ CanSwapItem | Overextended - +
-

CanSwapItem

Returns true if the item swap is possible based on inventory weight.

-- inv: string or number
-- firstItem: string
-- firstItemCount: number
-- testItem: string
-- testItemCount: number
exports.ox_inventory:CanSwapItem(inv, firstItem, firstItemCount, testItem, testItemCount)
- +

CanSwapItem

Returns true if the item swap is possible based on inventory weight.

-- inv: string or number
-- firstItem: string
-- firstItemCount: number
-- testItem: string
-- testItemCount: number
exports.ox_inventory:CanSwapItem(inv, firstItem, firstItemCount, testItem, testItemCount)
+ \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Server/Inventory/ClearInventory/index.html b/docs/ox_inventory/Functions/External/Server/Inventory/ClearInventory/index.html index 469c1d3a..7a4d20df 100644 --- a/docs/ox_inventory/Functions/External/Server/Inventory/ClearInventory/index.html +++ b/docs/ox_inventory/Functions/External/Server/Inventory/ClearInventory/index.html @@ -5,13 +5,13 @@ ClearInventory | Overextended - + - +
+ \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Server/Inventory/ConfiscateInventory/index.html b/docs/ox_inventory/Functions/External/Server/Inventory/ConfiscateInventory/index.html index fff0c6fb..b0a925b1 100644 --- a/docs/ox_inventory/Functions/External/Server/Inventory/ConfiscateInventory/index.html +++ b/docs/ox_inventory/Functions/External/Server/Inventory/ConfiscateInventory/index.html @@ -5,14 +5,14 @@ ConfiscateInventory | Overextended - +
-

ConfiscateInventory

Clears a player's inventory and saves it to a stash.

Use ReturnInventory to return the confiscated inventory back to +

- + \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Server/Inventory/ConvertItems/index.html b/docs/ox_inventory/Functions/External/Server/Inventory/ConvertItems/index.html index 34d17110..82a6860c 100644 --- a/docs/ox_inventory/Functions/External/Server/Inventory/ConvertItems/index.html +++ b/docs/ox_inventory/Functions/External/Server/Inventory/ConvertItems/index.html @@ -5,13 +5,13 @@ ConvertItems | Overextended - +
-

ConvertItems

Takes traditional item data and updates it to support ox_inventory.

-- playerId: number
-- items: table
exports.ox_inventory:ConvertItems(playerId, items)

Data conversion example:

Old: [{"cola":1, "bread":3}]
New: [{"slot":1,"name":"cola","count":1}, {"slot":2,"name":"bread","count":3}]
- +

ConvertItems

Takes traditional item data and updates it to support ox_inventory.

-- playerId: number
-- items: table
exports.ox_inventory:ConvertItems(playerId, items)

Data conversion example:

Old: [{"cola":1, "bread":3}]
New: [{"slot":1,"name":"cola","count":1}, {"slot":2,"name":"bread","count":3}]
+ \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Server/Inventory/CustomDrop/index.html b/docs/ox_inventory/Functions/External/Server/Inventory/CustomDrop/index.html index 4c053bc8..177714d8 100644 --- a/docs/ox_inventory/Functions/External/Server/Inventory/CustomDrop/index.html +++ b/docs/ox_inventory/Functions/External/Server/Inventory/CustomDrop/index.html @@ -5,13 +5,13 @@ CustomDrop | Overextended - +
-

CustomDrop

Creates an inventory drop at the specified coords.

-- prefix: string
-- items: table
-- coords: vector3
-- slots: number
-- maxWeight: number
-- instance: ? (optional)
exports.ox_inventory:CustomDrop(prefix, item, coords, slots, maxWeight, instance)
- +

CustomDrop

Creates an inventory drop at the specified coords.

-- prefix: string
-- items: table
-- coords: vector3
-- slots: number
-- maxWeight: number
-- instance: ? (optional)
exports.ox_inventory:CustomDrop(prefix, item, coords, slots, maxWeight, instance)
+ \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Server/Inventory/GetCurrentWeapon/index.html b/docs/ox_inventory/Functions/External/Server/Inventory/GetCurrentWeapon/index.html index b01d0ce9..39650569 100644 --- a/docs/ox_inventory/Functions/External/Server/Inventory/GetCurrentWeapon/index.html +++ b/docs/ox_inventory/Functions/External/Server/Inventory/GetCurrentWeapon/index.html @@ -5,13 +5,13 @@ GetCurrentWeapon | Overextended - + - +
+ \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Server/Inventory/GetItem/index.html b/docs/ox_inventory/Functions/External/Server/Inventory/GetItem/index.html index bbcd6382..55406f14 100644 --- a/docs/ox_inventory/Functions/External/Server/Inventory/GetItem/index.html +++ b/docs/ox_inventory/Functions/External/Server/Inventory/GetItem/index.html @@ -5,14 +5,14 @@ GetItem | Overextended - +
-

GetItem

Returns the item from the specified inventory.

-- inv: string or number
-- item: table or string
-- metadata: any (optional)
-- returnsCount: boolean (optional)
exports.ox_inventory:GetItem(inv, item, metadata, returnsCount)

If returnsCount is set to true, the returned value will include count based on +

GetItem

Returns the item from the specified inventory.

-- inv: string or number
-- item: table or string
-- metadata: any (optional)
-- returnsCount: boolean (optional)
exports.ox_inventory:GetItem(inv, item, metadata, returnsCount)

If returnsCount is set to true, the returned value will include count based on how many times the item was found.

- + \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Server/Inventory/GetItemSlots/index.html b/docs/ox_inventory/Functions/External/Server/Inventory/GetItemSlots/index.html index 2e3f2f44..f78a1c08 100644 --- a/docs/ox_inventory/Functions/External/Server/Inventory/GetItemSlots/index.html +++ b/docs/ox_inventory/Functions/External/Server/Inventory/GetItemSlots/index.html @@ -5,13 +5,13 @@ GetItemSlots | Overextended - +
-

GetItemSlots

Returns the number of slots the specified item is in, the item's total count and the remaining empty slots.

-- inv: string or number
-- item: table or string
-- metadata: table (optional)
exports.ox_inventory:GetItemSlots(inv, item, metadata)
- +

GetItemSlots

Returns the number of slots the specified item is in, the item's total count and the remaining empty slots.

-- inv: string or number
-- item: table or string
-- metadata: table (optional)
exports.ox_inventory:GetItemSlots(inv, item, metadata)
+ \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Server/Inventory/GetSlot/index.html b/docs/ox_inventory/Functions/External/Server/Inventory/GetSlot/index.html index 7b52e785..b2d14840 100644 --- a/docs/ox_inventory/Functions/External/Server/Inventory/GetSlot/index.html +++ b/docs/ox_inventory/Functions/External/Server/Inventory/GetSlot/index.html @@ -5,13 +5,13 @@ GetSlot | Overextended - + - +
+ \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Server/Inventory/RegisterStash/index.html b/docs/ox_inventory/Functions/External/Server/Inventory/RegisterStash/index.html index ffa4ad07..ba5c5021 100644 --- a/docs/ox_inventory/Functions/External/Server/Inventory/RegisterStash/index.html +++ b/docs/ox_inventory/Functions/External/Server/Inventory/RegisterStash/index.html @@ -5,13 +5,13 @@ RegisterStash | Overextended - +
-

RegisterStash

Creates a new custom stash.

-- id: string or number
-- label: string
-- slots: number
-- maxWeight: number
-- owner: string or boolean or nil
-- groups: table
-- coords: vector3
exports.ox_inventory:RegisterStash(id, label, slots, maxWeight, owner, groups, coords)
  • id - Stash identifier when loading from the database.
  • label - Display name when inventory is open.
  • owner - Defines stash permissions.
    • string: Can only access the stash linked to the owner.
    • true: Each player has a unique stash but can request other player's stashes.
    • nil: Always shared.
  • groups - Player groups (jobs) able to access the stash.
    • Table of group names where the numeric value is the minimum grade required.
    • {['police'] = 0, ['ambulance'] = 2}
caution

This function needs to be triggered before a player can open the stash.

- +

RegisterStash

Creates a new custom stash.

-- id: string or number
-- label: string
-- slots: number
-- maxWeight: number
-- owner: string or boolean or nil
-- groups: table
-- coords: vector3
exports.ox_inventory:RegisterStash(id, label, slots, maxWeight, owner, groups, coords)
  • id - Stash identifier when loading from the database.
  • label - Display name when inventory is open.
  • owner - Defines stash permissions.
    • string: Can only access the stash linked to the owner.
    • true: Each player has a unique stash but can request other player's stashes.
    • nil: Always shared.
  • groups - Player groups (jobs) able to access the stash.
    • Table of group names where the numeric value is the minimum grade required.
    • {['police'] = 0, ['ambulance'] = 2}
caution

This function needs to be triggered before a player can open the stash.

+ \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Server/Inventory/RemoveItem/index.html b/docs/ox_inventory/Functions/External/Server/Inventory/RemoveItem/index.html index 456dbfc4..f801be49 100644 --- a/docs/ox_inventory/Functions/External/Server/Inventory/RemoveItem/index.html +++ b/docs/ox_inventory/Functions/External/Server/Inventory/RemoveItem/index.html @@ -5,13 +5,13 @@ RemoveItem | Overextended - +
-

RemoveItem

Removes the specified item from the specified inventory.

-- inv: string or table
-- item: table or string
-- count: number
-- metadata: table or string (optional)
-- slot: number (optional)
exports.ox_inventory:RemoveItem(inv, item, count, metadata, slot)
- +

RemoveItem

Removes the specified item from the specified inventory.

-- inv: string or table
-- item: table or string
-- count: number
-- metadata: table or string (optional)
-- slot: number (optional)
exports.ox_inventory:RemoveItem(inv, item, count, metadata, slot)
+ \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Server/Inventory/ReturnInventory/index.html b/docs/ox_inventory/Functions/External/Server/Inventory/ReturnInventory/index.html index 4536aef9..967f7e74 100644 --- a/docs/ox_inventory/Functions/External/Server/Inventory/ReturnInventory/index.html +++ b/docs/ox_inventory/Functions/External/Server/Inventory/ReturnInventory/index.html @@ -5,13 +5,13 @@ ReturnInventory | Overextended - + - +
+ \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Server/Inventory/Search/index.html b/docs/ox_inventory/Functions/External/Server/Inventory/Search/index.html index 03f96fae..8126a6ed 100644 --- a/docs/ox_inventory/Functions/External/Server/Inventory/Search/index.html +++ b/docs/ox_inventory/Functions/External/Server/Inventory/Search/index.html @@ -5,14 +5,14 @@ Search | Overextended - +
-

Search

Searches an inventory for a specified item.

-- inv: string or number
-- search: string
-- item: table or string
-- metadata: table or string (optional)
exports.ox_inventory:Search(inv, search, item, metadata)

search can be either 'slots' or 'count', where slots will return a table of data +

Search

Searches an inventory for a specified item.

-- inv: string or number
-- search: string
-- item: table or string
-- metadata: table or string (optional)
exports.ox_inventory:Search(inv, search, item, metadata)

search can be either 'slots' or 'count', where slots will return a table of data and count will return the found amount of the specified item.

- + \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Server/Inventory/SetDurability/index.html b/docs/ox_inventory/Functions/External/Server/Inventory/SetDurability/index.html index f7bb1fe4..4e6548a3 100644 --- a/docs/ox_inventory/Functions/External/Server/Inventory/SetDurability/index.html +++ b/docs/ox_inventory/Functions/External/Server/Inventory/SetDurability/index.html @@ -5,13 +5,13 @@ SetDurability | Overextended - + - +
+ \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Server/Inventory/SetMetadata/index.html b/docs/ox_inventory/Functions/External/Server/Inventory/SetMetadata/index.html index b46810e7..6544452c 100644 --- a/docs/ox_inventory/Functions/External/Server/Inventory/SetMetadata/index.html +++ b/docs/ox_inventory/Functions/External/Server/Inventory/SetMetadata/index.html @@ -5,13 +5,13 @@ SetMetadata | Overextended - + - +
+ \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Server/Inventory/SwapSlots/index.html b/docs/ox_inventory/Functions/External/Server/Inventory/SwapSlots/index.html index 706b56ce..00c53ed5 100644 --- a/docs/ox_inventory/Functions/External/Server/Inventory/SwapSlots/index.html +++ b/docs/ox_inventory/Functions/External/Server/Inventory/SwapSlots/index.html @@ -5,13 +5,13 @@ SwapSlots | Overextended - + - +
+ \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Server/Items/index.html b/docs/ox_inventory/Functions/External/Server/Items/index.html index b1b6233f..ea7b1e8b 100644 --- a/docs/ox_inventory/Functions/External/Server/Items/index.html +++ b/docs/ox_inventory/Functions/External/Server/Items/index.html @@ -5,13 +5,13 @@ Items | Overextended - + - +
+ \ No newline at end of file diff --git a/docs/ox_inventory/Functions/External/Server/setPlayerInventory/index.html b/docs/ox_inventory/Functions/External/Server/setPlayerInventory/index.html index 0617fe3c..68caf0a5 100644 --- a/docs/ox_inventory/Functions/External/Server/setPlayerInventory/index.html +++ b/docs/ox_inventory/Functions/External/Server/setPlayerInventory/index.html @@ -5,13 +5,13 @@ setPlayerInventory | Overextended - +
-

setPlayerInventory

Creates and sets the player's inventory.

-- player: table
-- source: number
-- identifier: string
-- name: string
-- groups: table (optional)
-- sex: string (optional)
-- dateofbirth: string (optional)
-- data: table
exports.ox_inventory:setPlayerInventory(player, data)
- +

setPlayerInventory

Creates and sets the player's inventory.

-- player: table
-- source: number
-- identifier: string
-- name: string
-- groups: table (optional)
-- sex: string (optional)
-- dateofbirth: string (optional)
-- data: table
exports.ox_inventory:setPlayerInventory(player, data)
+ \ No newline at end of file diff --git a/docs/ox_inventory/Functions/Internal/Client/placeholder/index.html b/docs/ox_inventory/Functions/Internal/Client/placeholder/index.html index df083364..7f3b87fc 100644 --- a/docs/ox_inventory/Functions/Internal/Client/placeholder/index.html +++ b/docs/ox_inventory/Functions/Internal/Client/placeholder/index.html @@ -5,13 +5,13 @@ Placeholder | Overextended - + - +
+ \ No newline at end of file diff --git a/docs/ox_inventory/Functions/Internal/Server/placeholder/index.html b/docs/ox_inventory/Functions/Internal/Server/placeholder/index.html index 70ef3043..079316a2 100644 --- a/docs/ox_inventory/Functions/Internal/Server/placeholder/index.html +++ b/docs/ox_inventory/Functions/Internal/Server/placeholder/index.html @@ -5,13 +5,13 @@ Placeholder | Overextended - + - +
+ \ No newline at end of file diff --git a/docs/ox_inventory/Guides/index.html b/docs/ox_inventory/Guides/index.html index 59107a8c..07a85868 100644 --- a/docs/ox_inventory/Guides/index.html +++ b/docs/ox_inventory/Guides/index.html @@ -5,13 +5,13 @@ Overview | Overextended - +
-

Overview

info

Providing examples and explaining certain inventory API into more detail.

If you have trouble understanding how some of the API works check out our example resource.

- +

Overview

info

Providing examples and explaining certain inventory API into more detail.

If you have trouble understanding how some of the API works check out our example resource.

+ \ No newline at end of file diff --git a/docs/ox_inventory/Guides/inventory_ui/index.html b/docs/ox_inventory/Guides/inventory_ui/index.html index 03f8f288..e082e20f 100644 --- a/docs/ox_inventory/Guides/inventory_ui/index.html +++ b/docs/ox_inventory/Guides/inventory_ui/index.html @@ -5,15 +5,15 @@ Building inventory UI | Overextended - +
-

Building inventory UI

Requirements to build:
  • Node.js
  • Yarn
Installing Node.js:
  • Download the LTS version of Node.js from here.
  • Go through the install and make sure you install all of the features.
  • Run node --version in cmd and make sure that it gives you the version number. If it doesn't then you didn't install it correctly.
Installing Yarn:
  • Now that you've installed Node.js you can install Yarn by running npm install --global yarn in cmd.
Building the inventory UI:
  • cd into the web directory of ox_inventory
  • In your cmd type yarn and in will start downloading the node modules.
  • After it's done downloading node modules you can run yarn build to build the UI.
Hot reloads

When working in the browser you can run yarn start, which supports hot reloads meaning that +

Building inventory UI

Requirements to build:
  • Node.js
  • Yarn
Installing Node.js:
  • Download the LTS version of Node.js from here.
  • Go through the install and make sure you install all of the features.
  • Run node --version in cmd and make sure that it gives you the version number. If it doesn't then you didn't install it correctly.
Installing Yarn:
  • Now that you've installed Node.js you can install Yarn by running npm install --global yarn in cmd.
Building the inventory UI:
  • cd into the web directory of ox_inventory
  • In your cmd type yarn and in will start downloading the node modules.
  • After it's done downloading node modules you can run yarn build to build the UI.
Hot reloads

When working in the browser you can run yarn start, which supports hot reloads meaning that you will see your changes after saving your file.

If you want to work in game you can run yarn start:game which writes changes to disk, so the only thing you have to do is restart the resource for it take affect.

- + \ No newline at end of file diff --git a/docs/ox_inventory/Guides/stashes/index.html b/docs/ox_inventory/Guides/stashes/index.html index 42f4fcfe..7beb83ba 100644 --- a/docs/ox_inventory/Guides/stashes/index.html +++ b/docs/ox_inventory/Guides/stashes/index.html @@ -5,13 +5,13 @@ Creating custom stashes | Overextended - +
-

Creating custom stashes

We can set up custom stashes from outside the resource utilising the exported RegisterStash function. Firstly, we need to define the stashes properties.

ArgumentTypeOptionalExplanation
idstringnoA unique name to identify the stash in the database
labelstringnoA display name when viewing the inventory
slotsintegernoNumber of slots
weightintegernoMaximum weight
ownerstr/boolyesSee below
jobtableyesKey-value pairs of job name and minimum grade to access
coordsvectoryesA vector (or table) containing x, y, z coordinates

The owner field will set permissions for stash access, with stashes registering to specific identifiers.

  • true: Each player has their own unique stash, but can request to open the stash of another player
  • false: Only a single stash exists and is shared between all players
  • string: The stash explicitly belongs to the given owner, usually a player identifier

You can set the stash coordinates to prevent the stash from being opened if the player isn't close enough.

Example​

Below the value is hardset, but it could be loaded from the database (especially if there are unknown fields, i.e. owner)

-- Server
local stash = {
id = '42wallabyway',
label = '42 Wallaby Way',
slots = 50,
weight = 100000,
owner = 'char1:license'
}

AddEventHandler('onServerResourceStart', function(resourceName)
if resourceName == 'ox_inventory' or resourceName == GetCurrentResourceName() then
exports.ox_inventory:RegisterStash(stash.id, stash.label, stash.slots, stash.weight, stash.owner)
end
end)

-- Client
exports.ox_inventory:openInventory('stash', {id='42wallabyway', owner=property.owner})

The following sample is based on esx_property's db data.

-- Server
local properties

MySQL.query('SELECT * FROM `properties`', {}, function(result)
properties = result
end

RegisterNetEvent('ox:loadStashes', function(id)
local stash = properties[id]
if stash then
-- id: 1, name: WhispymoundDrive, label: 2677 Whispymound Drive, coords: {"x":118.748,"y":566.573,"z":175.697}
ox_inventory:RegisterStash(stash.name, stash.label, 50, 100000, true, false, json.encode(stash.room_menu))
end
end)

-- Client
local ox_inventory = exports.ox_inventory

if ox_inventory:openInventory('stash', property.id) == false then
TriggerServerEvent('ox:loadStashes')
ox_inventory:openInventory('stash', property.id)
end
- +

Creating custom stashes

We can set up custom stashes from outside the resource utilising the exported RegisterStash function. Firstly, we need to define the stashes properties.

ArgumentTypeOptionalExplanation
idstringnoA unique name to identify the stash in the database
labelstringnoA display name when viewing the inventory
slotsintegernoNumber of slots
weightintegernoMaximum weight
ownerstr/boolyesSee below
jobtableyesKey-value pairs of job name and minimum grade to access
coordsvectoryesA vector (or table) containing x, y, z coordinates

The owner field will set permissions for stash access, with stashes registering to specific identifiers.

  • true: Each player has their own unique stash, but can request to open the stash of another player
  • false: Only a single stash exists and is shared between all players
  • string: The stash explicitly belongs to the given owner, usually a player identifier

You can set the stash coordinates to prevent the stash from being opened if the player isn't close enough.

Example​

Below the value is hardset, but it could be loaded from the database (especially if there are unknown fields, i.e. owner)

-- Server
local stash = {
id = '42wallabyway',
label = '42 Wallaby Way',
slots = 50,
weight = 100000,
owner = 'char1:license'
}

AddEventHandler('onServerResourceStart', function(resourceName)
if resourceName == 'ox_inventory' or resourceName == GetCurrentResourceName() then
exports.ox_inventory:RegisterStash(stash.id, stash.label, stash.slots, stash.weight, stash.owner)
end
end)

-- Client
exports.ox_inventory:openInventory('stash', {id='42wallabyway', owner=property.owner})

The following sample is based on esx_property's db data.

-- Server
local properties

MySQL.query('SELECT * FROM `properties`', {}, function(result)
properties = result
end

RegisterNetEvent('ox:loadStashes', function(id)
local stash = properties[id]
if stash then
-- id: 1, name: WhispymoundDrive, label: 2677 Whispymound Drive, coords: {"x":118.748,"y":566.573,"z":175.697}
ox_inventory:RegisterStash(stash.name, stash.label, 50, 100000, true, false, json.encode(stash.room_menu))
end
end)

-- Client
local ox_inventory = exports.ox_inventory

if ox_inventory:openInventory('stash', property.id) == false then
TriggerServerEvent('ox:loadStashes')
ox_inventory:openInventory('stash', property.id)
end
+ \ No newline at end of file diff --git a/docs/ox_inventory/config/index.html b/docs/ox_inventory/config/index.html index acaa0033..529d76f9 100644 --- a/docs/ox_inventory/config/index.html +++ b/docs/ox_inventory/config/index.html @@ -5,14 +5,14 @@ Configuration | Overextended - +
-

Configuration

You can add these settings directly to your 'server.cfg', or add them to a separate file and call it with exec.
-Convars must be set before starting ox_inventory.

The values below are defaults and should not be explicitly set unless changing the value.

# Activate specific event handlers and functions (supported: ox, esx)
setr inventory:framework "esx"

# Load specific language file from data/locales
setr inventory:locale "en"

# Number of slots for player inventories
setr inventory:slots 50

# Maximum carry capacity for players, in kilograms
setr inventory:weight 30000

# Weapons will reload after reaching 0 ammo
setr inventory:autoreload false

# Weapons must be aimed before shooting
setr aimedfiring false

# Blur the screen while accessing the inventory
setr inventory:screenblur true

# Trim whitespace from vehicle plates when checking owned vehicles
setr inventory:trimplate true

# Integrated support for qtarget stashes, shops, etc
setr inventory:qtarget false

# Default hotkeys to access primary and secondary inventories, and hotbar
setr inventory:keys ["F2", "K", "TAB"]

# Enable control action when inventory is open
setr inventory:enablekeys [249]

# Jobs with access to police armoury, evidence lockers, etc
setr inventory:police ["police", "sheriff"]

# Item prices fluctuate in shops
set inventory:randomprices true

# Compare current version to latest release on GitHub
set inventory:versioncheck true

# Loot will randomly generate inside unowned vehicles and dumpsters
set inventory:randomloot true

# Minimum job grade to remove items from evidence lockers
set inventory:evidencegrade 2

# Stashes will be wiped after remaining unchanged for the given time
set inventory:clearstashes "6 MONTH"

# Set the contents of randomly generated inventories
# [item name, minimum, maximum, loot chance]
set inventory:vehicleloot [
["cola", 1, 1],
["water", 1, 1],
["garbage", 1, 2, 50],
["panties", 1, 1, 5],
["money", 1, 50],
["money", 200, 400, 5],
["bandage", 1, 1]
]

set inventory:dumpsterloot [
["mustard", 1, 1],
["garbage", 1, 3],
["money", 1, 10],
["burger", 1, 1]
]

# Set datadog API key for inventory logging (https://app.datadoghq.com/organization-settings/api-keys)
set datadog:key ""

# Set server intake (https://docs.datadoghq.com/api/latest/logs/#send-logs)
set datadog:site "datadoghq.com"

# Set server hostname
set datadog:hostname "FXServer"

add_principal group.admin ox_inventory
add_ace resource.ox_inventory command.add_principal allow
add_ace resource.ox_inventory command.remove_principal allow
- +

Configuration

You can add these settings directly to your 'server.cfg', or add them to a separate file and call it with exec.
+Convars must be set before starting ox_inventory.

The values below are defaults and should not be explicitly set unless changing the value.

# Activate specific event handlers and functions (supported: ox, esx)
setr inventory:framework "esx"

# Load specific language file from data/locales
setr inventory:locale "en"

# Number of slots for player inventories
setr inventory:slots 50

# Maximum carry capacity for players, in kilograms
setr inventory:weight 30000

# Weapons will reload after reaching 0 ammo
setr inventory:autoreload false

# Weapons must be aimed before shooting
setr aimedfiring false

# Blur the screen while accessing the inventory
setr inventory:screenblur true

# Trim whitespace from vehicle plates when checking owned vehicles
setr inventory:trimplate true

# Integrated support for qtarget stashes, shops, etc
setr inventory:qtarget false

# Default hotkeys to access primary and secondary inventories, and hotbar
setr inventory:keys ["F2", "K", "TAB"]

# Enable control action when inventory is open
setr inventory:enablekeys [249]

# Jobs with access to police armoury, evidence lockers, etc
setr inventory:police ["police", "sheriff"]

# Item prices fluctuate in shops
set inventory:randomprices true

# Compare current version to latest release on GitHub
set inventory:versioncheck true

# Loot will randomly generate inside unowned vehicles and dumpsters
set inventory:randomloot true

# Minimum job grade to remove items from evidence lockers
set inventory:evidencegrade 2

# Stashes will be wiped after remaining unchanged for the given time
set inventory:clearstashes "6 MONTH"

# Set the contents of randomly generated inventories
# [item name, minimum, maximum, loot chance]
set inventory:vehicleloot [
["cola", 1, 1],
["water", 1, 1],
["garbage", 1, 2, 50],
["panties", 1, 1, 5],
["money", 1, 50],
["money", 200, 400, 5],
["bandage", 1, 1]
]

set inventory:dumpsterloot [
["mustard", 1, 1],
["garbage", 1, 3],
["money", 1, 10],
["burger", 1, 1]
]

# Set datadog API key for inventory logging (https://app.datadoghq.com/organization-settings/api-keys)
set datadog:key ""

# Set server intake (https://docs.datadoghq.com/api/latest/logs/#send-logs)
set datadog:site "datadoghq.com"

# Set server hostname
set datadog:hostname "FXServer"

add_principal group.admin ox_inventory
add_ace resource.ox_inventory command.add_principal allow
add_ace resource.ox_inventory command.remove_principal allow
+ \ No newline at end of file diff --git a/docs/ox_inventory/index.html b/docs/ox_inventory/index.html index 7fd6c68a..08235efe 100644 --- a/docs/ox_inventory/index.html +++ b/docs/ox_inventory/index.html @@ -4,14 +4,14 @@ -Inventory | Overextended - +index | Overextended + - +
+ \ No newline at end of file diff --git a/docs/ox_inventory/installation/index.html b/docs/ox_inventory/installation/index.html index 2532ec28..5fa55094 100644 --- a/docs/ox_inventory/installation/index.html +++ b/docs/ox_inventory/installation/index.html @@ -5,12 +5,12 @@ Getting Started | Overextended - +
-

Getting Started

caution

This resource is being designed with the intention of providing advanced functionality while remaining easy to use, +

Getting Started

caution

This resource is being designed with the intention of providing advanced functionality while remaining easy to use, however it is not recommended for beginners. You must possess a basic understanding of coding and the ability to read; otherwise you should not install this resource.

Dependecies​

OxMySQL​

We utilise our own resource to communicate with MySQL databases via the node-mysql2 package. The backend is actively maintained and updated unlike the package used by mysql-async, providing improved performance, security, and features. @@ -29,8 +29,8 @@ and

​

Ox Inventory provides a complete suite of tools to replace the built-in items and inventory system from ESX, and is not intended to be used with resources designed around it.

  • ESX loadouts do not exist - resources that use them need to remove references or be modified to look for the weapon as an item
  • Stashes from resources such as esx_policejob, esx_ambulancejob, etc. should be removed
  • Shops from esx_shops or the armoury from esx_policejob should be removed
  • Resources like esx_inventoryhud, esx_trunkinventory, esx_addoninventory, etc. should be removed

Optional optimisation​

All item related functions from xPlayer, such as xPlayer.getInventoryItem, have been modified for compatibility purposes; however they are considered deprecated.

The reasoning is fairly simple - there's now additional function references and overhead to consider. Fortunately, the new Inventory functions can be used directly and offer a great deal of improvements over the old ones.

You should read through the functions section for further information, but the following should give you a decent idea.

if xPlayer.getInventoryItem('acetone').count > 2 and xPlayer.getInventoryItem('antifreeze').count > 4 and xPlayer.getInventoryItem('sudo').count > 9 then 
xPlayer.removeInventoryItem("acetone", 3)
xPlayer.removeInventoryItem("antifreeze", 5)
xPlayer.removeInventoryItem("sudo", 10)
end
- +Modifications will need to be made for licenses, owned vehicles, and jobs.

caution

You should restart your server after the first startup to ensure everything has been correctly setup

Upgrading ESX​

Ox Inventory provides a complete suite of tools to replace the built-in items and inventory system from ESX, and is not intended to be used with resources designed around it.

  • ESX loadouts do not exist - resources that use them need to remove references or be modified to look for the weapon as an item
  • Stashes from resources such as esx_policejob, esx_ambulancejob, etc. should be removed
  • Shops from esx_shops or the armoury from esx_policejob should be removed
  • Resources like esx_inventoryhud, esx_trunkinventory, esx_addoninventory, etc. should be removed

Optional optimisation​

All item related functions from xPlayer, such as xPlayer.getInventoryItem, have been modified for compatibility purposes; however they are considered deprecated.

The reasoning is fairly simple - there's now additional function references and overhead to consider. Fortunately, the new Inventory functions can be used directly and offer a great deal of improvements over the old ones.

You should read through the functions section for further information, but the following should give you a decent idea.

if xPlayer.getInventoryItem('acetone').count > 2 and xPlayer.getInventoryItem('antifreeze').count > 4 and xPlayer.getInventoryItem('sudo').count > 9 then 
xPlayer.removeInventoryItem("acetone", 3)
xPlayer.removeInventoryItem("antifreeze", 5)
xPlayer.removeInventoryItem("sudo", 10)
end
+ \ No newline at end of file diff --git a/docs/ox_lib/Client/cache/index.html b/docs/ox_lib/Client/cache/index.html index 0b58c21e..d3199976 100644 --- a/docs/ox_lib/Client/cache/index.html +++ b/docs/ox_lib/Client/cache/index.html @@ -5,14 +5,14 @@ Cache | Overextended - +
-

Cache

Caches data related to the player and handling some events or statebags.
+

Cache

Caches data related to the player and handling some events or statebags.
An interval runs every 100ms to update data that cannot be checked via handlers.

https://github.com/overextended/ox_lib/blob/master/resource/cache/client.lua

States​

cache.ped       -- player entity id
cache.vehicle -- vehicle entity id
cache.seat -- vehicle seat index

lib.onCache​

Register a callback function when the value is changed.

lib.onCache('vehicle', function(value)
print('vehicle', value)
end)

lib.onCache('seat', function(value)
print('seat', value)
end)
- + \ No newline at end of file diff --git a/docs/ox_lib/Client/callback/index.html b/docs/ox_lib/Client/callback/index.html index ec429d52..e21ed379 100644 --- a/docs/ox_lib/Client/callback/index.html +++ b/docs/ox_lib/Client/callback/index.html @@ -5,13 +5,13 @@ Callbacks | Overextended - +
-

Callbacks

Triggers a registered server callback and registers an event handler for the response.

lib.callback​

The response is handled in a separate coroutine.

-- name: string
-- delay: number or false
-- cb: function
lib.callback(name, delay, cb, ...)

lib.callback('ox_inventory:getItemCount', false, function(count)
print(count)
end, 'water', {type = 'fresh'})

lib.callback.await​

The current coroutine is yielded until a response is received.

-- name: string
-- delay: number or false
lib.callback.await(name, delay, ...)

local count = lib.callback('ox_inventory:getItemCount', false, 'water', {type = 'fresh'})
print(count)
- +

Callbacks

Triggers a registered server callback and registers an event handler for the response.

lib.callback​

The response is handled in a separate coroutine.

-- name: string
-- delay: number or false
-- cb: function
lib.callback(name, delay, cb, ...)

lib.callback('ox_inventory:getItemCount', false, function(count)
print(count)
end, 'water', {type = 'fresh'})

lib.callback.await​

The current coroutine is yielded until a response is received.

-- name: string
-- delay: number or false
lib.callback.await(name, delay, ...)

local count = lib.callback('ox_inventory:getItemCount', false, 'water', {type = 'fresh'})
print(count)
+ \ No newline at end of file diff --git a/docs/ox_lib/Client/disableControls/index.html b/docs/ox_lib/Client/disableControls/index.html index 3ebf990d..409f0788 100644 --- a/docs/ox_lib/Client/disableControls/index.html +++ b/docs/ox_lib/Client/disableControls/index.html @@ -5,13 +5,13 @@ Disable Controls | Overextended - +
-

Disable Controls

lib.disableControls​

lib.disableControls()

lib.disableControls:Add​

-- vararg: number
lib.disableControls:Add(...)

lib.disableControls:Remove​

-- vararg: number
lib.disableControls:Remove(...)

lib.disableControls:Clear​

-- vararg: number
lib.disableControls:Clear(...)
- +

Disable Controls

lib.disableControls​

lib.disableControls()

lib.disableControls:Add​

-- vararg: number
lib.disableControls:Add(...)

lib.disableControls:Remove​

-- vararg: number
lib.disableControls:Remove(...)

lib.disableControls:Clear​

-- vararg: number
lib.disableControls:Clear(...)
+ \ No newline at end of file diff --git a/docs/ox_lib/Client/index.html b/docs/ox_lib/Client/index.html index 87e5f11a..c9be2367 100644 --- a/docs/ox_lib/Client/index.html +++ b/docs/ox_lib/Client/index.html @@ -5,13 +5,13 @@ index | Overextended - + - +
+ \ No newline at end of file diff --git a/docs/ox_lib/Client/streaming/index.html b/docs/ox_lib/Client/streaming/index.html index f41ef1d4..53b206e2 100644 --- a/docs/ox_lib/Client/streaming/index.html +++ b/docs/ox_lib/Client/streaming/index.html @@ -5,14 +5,14 @@ Streaming | Overextended - +
-

Streaming

Check if assets exist, such as models, and loads them into memory.
+

Streaming

Check if assets exist, such as models, and loads them into memory.
Throws errors for invalid assets and returns true if the asset is loaded.

lib.requestAnimDict​

-- dict: string
-- timeout: number [default: 100]
lib.requestAnimDict(dict, timeout)

lib.requestAnimSet​

-- set: string
-- timeout: number [default: 100]
lib.requestAnimSet(set, timeout)

lib.requestModel​

-- model: string
-- timeout: number [default: 100]
lib.requestModel(model, timeout)

lib.requestStreamedTextureDict​

-- dict: string
-- timeout: number [default: 100]
lib.requestStreamedTextureDict(dict, timeout)

lib.requestNamedPtfxAsset​

-- fxName: string
-- timeout: number [default: 100]
lib.requestNamedPtfxAsset(fxName, timeout)
- + \ No newline at end of file diff --git a/docs/ox_lib/Client/vehicleProperties/index.html b/docs/ox_lib/Client/vehicleProperties/index.html index 18406b7f..c3b46b44 100644 --- a/docs/ox_lib/Client/vehicleProperties/index.html +++ b/docs/ox_lib/Client/vehicleProperties/index.html @@ -5,14 +5,14 @@ Vehicle Properties | Overextended - +
-

Vehicle Properties

Mostly follows the format used by ESX and QBCore, with extra data such as damaged/missing props.
+

Vehicle Properties

Mostly follows the format used by ESX and QBCore, with extra data such as damaged/missing props.
https://github.com/overextended/ox_lib/blob/master/resource/entities/client/vehicleproperties.lua#L5

lib.getVehicleProperties​

-- vehicle: entity
lib.getVehicleProperties(vehicle)

lib.getVehicleProperties(GetVehiclePedIsUsing(PlayerPedId()))

lib.setVehicleProperties​

Requires the vehicle to belong to the client. Do not use NetworkRequestControlOfEntity.

-- vehicle: entity
-- props: table
lib.setVehicleProperties(vehicle, props)

RegisterNetEvent('lualib:setVehicleProperties', function(netid, data)
lib.setVehicleProperties(NetToVeh(netid), data)
end)

The server should tell the owner of the entity to set properties, using the following trigger.

TriggerClientEvent('lualib:setVehicleProperties', entityOwner, vehNetId, data)
- + \ No newline at end of file diff --git a/docs/ox_lib/Server/acl/index.html b/docs/ox_lib/Server/acl/index.html index 857eb8b5..5255db1a 100644 --- a/docs/ox_lib/Server/acl/index.html +++ b/docs/ox_lib/Server/acl/index.html @@ -5,14 +5,14 @@ Permissions | Overextended - +
-

Permissions

Wrapper around the built-in ACL system. Handles lib.addCommand and ox_groups permissions.
+

Permissions

Wrapper around the built-in ACL system. Handles lib.addCommand and ox_groups permissions.
Refer to Basic Aces & Principals overview/guide for more information.

lib.addAce​

Assigns the ace permission to a principal. Third parameter defaults to 'allow', while false sets the permission to 'deny'.

-- principal: string
-- ace: string
-- allow: boolean
lib.addAce(principal, ace, allow)

lib.addAce('group.admin', 'command.say')

lib.removeAce​

Removes the ace permission from a principal. Third parameter defaults to 'allow', while false sets the permission to 'deny'.

-- principal: string
-- ace: string
-- allow: boolean
lib.removeAce(principal, ace, allow)

lib.removeAce('group.admin', 'command.say')

lib.addPrincipal​

Assigns a principal to a parent principal. Children inherit permissions from the parent.

-- child: string
-- parent: string
lib.addPrincipal(child, parent)

lib.addPrincipal('player.1', 'group.moderator')

lib.removePrincipal​

Removes a principal from a parent principal.

-- child: string
-- parent: string
lib.removePrincipal(child, parent)

lib.removePrincipal('player.1', 'group.moderator')
- + \ No newline at end of file diff --git a/docs/ox_lib/Server/addCommand/index.html b/docs/ox_lib/Server/addCommand/index.html index 4487333e..6a5701e9 100644 --- a/docs/ox_lib/Server/addCommand/index.html +++ b/docs/ox_lib/Server/addCommand/index.html @@ -5,13 +5,13 @@ Command | Overextended - +
-

Command

-- principal: string or false
-- command: string
-- callback: function
-- parameters: table (optional)
-- help: string (optional)
lib.addCommand(principal, command, callback, parameters, help)

lib.addCommand('group.admin', {'additem', 'giveitem'}, function(source, args)
args.item = Items(args.item)
if args.item and args.count > 0 then
Inventory.AddItem(args.target, args.item.name, args.count, args.metatype)
end
end, {'target:number', 'item:string', 'count:number', 'metatype:?string'})
- +

Command

-- principal: string or false
-- command: string
-- callback: function
-- parameters: table (optional)
-- help: string (optional)
lib.addCommand(principal, command, callback, parameters, help)

lib.addCommand('group.admin', {'additem', 'giveitem'}, function(source, args)
args.item = Items(args.item)
if args.item and args.count > 0 then
Inventory.AddItem(args.target, args.item.name, args.count, args.metatype)
end
end, {'target:number', 'item:string', 'count:number', 'metatype:?string'})
+ \ No newline at end of file diff --git a/docs/ox_lib/Server/callback/index.html b/docs/ox_lib/Server/callback/index.html index c373dd10..96abe093 100644 --- a/docs/ox_lib/Server/callback/index.html +++ b/docs/ox_lib/Server/callback/index.html @@ -5,13 +5,13 @@ Callbacks | Overextended - +
-

Callbacks

lib.callback.register​

-- name: string
-- cb: function
lib.callback.register(name, cb)

lib.callback.register('ox_inventory:getItemCount', function(source, item, metadata, target)
local inventory = target and Inventory(target) or Inventory(source)
return (inventory and Inventory.GetItem(inventory, item, metadata, true)) or 0
end)
- +

Callbacks

lib.callback.register​

-- name: string
-- cb: function
lib.callback.register(name, cb)

lib.callback.register('ox_inventory:getItemCount', function(source, item, metadata, target)
local inventory = target and Inventory(target) or Inventory(source)
return (inventory and Inventory.GetItem(inventory, item, metadata, true)) or 0
end)
+ \ No newline at end of file diff --git a/docs/ox_lib/Server/index.html b/docs/ox_lib/Server/index.html index 34e0d02a..f610a49b 100644 --- a/docs/ox_lib/Server/index.html +++ b/docs/ox_lib/Server/index.html @@ -5,13 +5,13 @@ index | Overextended - + - +
+ \ No newline at end of file diff --git a/docs/ox_lib/Server/version/index.html b/docs/ox_lib/Server/version/index.html index ada93c9d..5d630be3 100644 --- a/docs/ox_lib/Server/version/index.html +++ b/docs/ox_lib/Server/version/index.html @@ -5,13 +5,13 @@ Version check | Overextended - +
-
- +
+ \ No newline at end of file diff --git a/docs/ox_lib/Shared/version/index.html b/docs/ox_lib/Shared/version/index.html index 5de0bc63..27f71bd8 100644 --- a/docs/ox_lib/Shared/version/index.html +++ b/docs/ox_lib/Shared/version/index.html @@ -5,13 +5,13 @@ Dependency version | Overextended - +
-

Dependency version

lib.checkDependency​

Check if a resource is using a specified version or higher, allowing for compatibility checks or throwing errors.

-- repository: string
-- version: string
lib.versionCheck(repository, version)

if not lib.checkDependency('ox_lib', '1.5.0') then error() end
- +

Dependency version

lib.checkDependency​

Check if a resource is using a specified version or higher, allowing for compatibility checks or throwing errors.

-- repository: string
-- version: string
lib.versionCheck(repository, version)

if not lib.checkDependency('ox_lib', '1.5.0') then error() end
+ \ No newline at end of file diff --git a/docs/ox_lib/index.html b/docs/ox_lib/index.html index 0f478ddb..02435875 100644 --- a/docs/ox_lib/index.html +++ b/docs/ox_lib/index.html @@ -4,14 +4,14 @@ -Library | Overextended - +index | Overextended + - +
+ \ No newline at end of file diff --git a/docs/oxmysql/Getting Started/benchmark/index.html b/docs/oxmysql/Getting Started/benchmark/index.html index 2c8a9e31..4d0309e3 100644 --- a/docs/oxmysql/Getting Started/benchmark/index.html +++ b/docs/oxmysql/Getting Started/benchmark/index.html @@ -5,13 +5,13 @@ Benchmark | Overextended - +
-

Benchmark

Internal benchmark

Low: 0.1222ms | Avg: 0.14188357ms | Total: 1418.8357ms (10000 queries)

Round-trip-time for exports

Low: 0.1997ms | Avg: 0.25898800ms | Total: 2589.8800ms (10000 queries)

Lua (5.4)​

local val = 10000
RegisterCommand('luasync', function()
local queryTimesLocal = {}
local result
MySQL.prepare.await('SELECT identifier from users WHERE lastname = ?', {'Linden'})

for i=1, val do
local time = os.nanotime()
local r = MySQL.prepare.await('SELECT identifier from users WHERE lastname = ?', {'Linden'})
queryTimesLocal[#queryTimesLocal+1] = (os.nanotime() - time) / 1000000
if i==1 then result = r end
end

local queryMsLow, queryMsSum = 1000, 0

for _, v in pairs(queryTimesLocal) do queryMsSum = queryMsSum + v end
for _, v in pairs(queryTimesLocal) do
if v < queryMsLow then queryMsLow = v end
end

local averageQueryTime = queryMsSum / #queryTimesLocal
print(json.encode(result))
print('Low: '.. queryMsLow ..'ms | Avg: '..averageQueryTime..'ms | Total: '..queryMsSum..'ms ('..#queryTimesLocal..' queries)')
end)

JavaScript​

const val = 10000
RegisterCommand('jssync', async() => {
const queryTimesLocal = [];
let result
await exports.oxmysql.prepare_async('SELECT identifier from users WHERE lastname = ?', ['Linden'])

for(let i=0; i < val; i++) {
const startTime = process.hrtime()
const r = await exports.oxmysql.prepare_async('SELECT identifier from users WHERE lastname = ?', ['Linden'])
queryTimesLocal.push(process.hrtime(startTime)[1] / 1000000)
if (i === 0) result = r
}

const queryMsSum = queryTimesLocal.reduce((a, b) => a + b, 0)
const queryMsLow = queryTimesLocal.sort((a, b) => a - b)[0]
const averageQueryTime = queryMsSum / queryTimesLocal.length

console.log(result)
console.log('Low: '+ queryMsLow +'ms | Avg: '+averageQueryTime+'ms | Total: '+queryMsSum+'ms ('+queryTimesLocal.length+' queries)')
})
- +

Benchmark

Internal benchmark

Low: 0.1222ms | Avg: 0.14188357ms | Total: 1418.8357ms (10000 queries)

Round-trip-time for exports

Low: 0.1997ms | Avg: 0.25898800ms | Total: 2589.8800ms (10000 queries)

Lua (5.4)​

local val = 10000
RegisterCommand('luasync', function()
local queryTimesLocal = {}
local result
MySQL.prepare.await('SELECT identifier from users WHERE lastname = ?', {'Linden'})

for i=1, val do
local time = os.nanotime()
local r = MySQL.prepare.await('SELECT identifier from users WHERE lastname = ?', {'Linden'})
queryTimesLocal[#queryTimesLocal+1] = (os.nanotime() - time) / 1000000
if i==1 then result = r end
end

local queryMsLow, queryMsSum = 1000, 0

for _, v in pairs(queryTimesLocal) do queryMsSum = queryMsSum + v end
for _, v in pairs(queryTimesLocal) do
if v < queryMsLow then queryMsLow = v end
end

local averageQueryTime = queryMsSum / #queryTimesLocal
print(json.encode(result))
print('Low: '.. queryMsLow ..'ms | Avg: '..averageQueryTime..'ms | Total: '..queryMsSum..'ms ('..#queryTimesLocal..' queries)')
end)

JavaScript​

const val = 10000
RegisterCommand('jssync', async() => {
const queryTimesLocal = [];
let result
await exports.oxmysql.prepare_async('SELECT identifier from users WHERE lastname = ?', ['Linden'])

for(let i=0; i < val; i++) {
const startTime = process.hrtime()
const r = await exports.oxmysql.prepare_async('SELECT identifier from users WHERE lastname = ?', ['Linden'])
queryTimesLocal.push(process.hrtime(startTime)[1] / 1000000)
if (i === 0) result = r
}

const queryMsSum = queryTimesLocal.reduce((a, b) => a + b, 0)
const queryMsLow = queryTimesLocal.sort((a, b) => a - b)[0]
const averageQueryTime = queryMsSum / queryTimesLocal.length

console.log(result)
console.log('Low: '+ queryMsLow +'ms | Avg: '+averageQueryTime+'ms | Total: '+queryMsSum+'ms ('+queryTimesLocal.length+' queries)')
})
+ \ No newline at end of file diff --git a/docs/oxmysql/Getting Started/index.html b/docs/oxmysql/Getting Started/index.html index 7935b5df..70f10ef5 100644 --- a/docs/oxmysql/Getting Started/index.html +++ b/docs/oxmysql/Getting Started/index.html @@ -5,17 +5,17 @@ Getting Started | Overextended - +
-

Getting Started

Installation​

  • Download the latest build of oxmysql (not the source code).
  • Extract the contents of the archive to your resources folder.
  • Start the resource near the top of your resources in your server.cfg.
  • If you have a lot of streamed assets, load them first to prevent timing out the connection.

Configuration​

You can change the configuration settings by using convars inside your server.cfg. +

Getting Started

Installation​

  • Download the latest build of oxmysql (not the source code).
  • Extract the contents of the archive to your resources folder.
  • Start the resource near the top of your resources in your server.cfg.
  • If you have a lot of streamed assets, load them first to prevent timing out the connection.

Configuration​

You can change the configuration settings by using convars inside your server.cfg. Reference the following for an idea of how to set your connection options. You must include one of the following lines, adjusted for your connection and database settings.

set mysql_connection_string "mysql://root:12345@localhost/es_extended?charset=utf8mb4"
set mysql_connection_string "user=root;database=es_extended;password=12345;charset=utf8mb4"

Certain special characters are reserved or blocked and may cause issues when used in your password.
For more optional settings (such as multiple statements) you can reference pool.d.ts and connection.d.ts.

You can also add the following convars if you require extra information when testing queries.

set mysql_slow_query_warning 150
set mysql_debug true

Using the UI​

info

Before using the UI first you have to make sure you have the mysql_ui convar set to true:

set mysql_ui true

Also make sure that you have command ace permission access, then you should be able to use the -mysql command in game to open up the UI and see your query data.

- +mysql command in game to open up the UI and see your query data.

+ \ No newline at end of file diff --git a/docs/oxmysql/Getting Started/issues/index.html b/docs/oxmysql/Getting Started/issues/index.html index acd9de8f..0385d88a 100644 --- a/docs/oxmysql/Getting Started/issues/index.html +++ b/docs/oxmysql/Getting Started/issues/index.html @@ -5,14 +5,14 @@ Common Issues | Overextended - +
-

Common Issues

Unable to establish a connection​

This is usually the result of incorrect database settings or your password containing reserved characters (; , / ? : @ & = + $ #).

Solution

Ensure you have entered the correct database settings in the mysql_connection_string convar.
+

Common Issues

Unable to establish a connection​

This is usually the result of incorrect database settings or your password containing reserved characters (; , / ? : @ & = + $ #).

Solution

Ensure you have entered the correct database settings in the mysql_connection_string convar.
You can try using the semicolon-separated format if your password contains reserved characters.

No such export ... in resource oxmysql​

Typically the result of failing to follow instructions.

Solution

Download the latest release build (not source) of oxmysql, and ensure it is starting before any resources that require it.

- + \ No newline at end of file diff --git a/docs/oxmysql/Usage/index.html b/docs/oxmysql/Usage/index.html index 67bff67e..522d6aa9 100644 --- a/docs/oxmysql/Usage/index.html +++ b/docs/oxmysql/Usage/index.html @@ -5,13 +5,13 @@ Usage | Overextended - + - +
+ \ No newline at end of file diff --git a/docs/oxmysql/Usage/insert/index.html b/docs/oxmysql/Usage/insert/index.html index 296236da..268471f8 100644 --- a/docs/oxmysql/Usage/insert/index.html +++ b/docs/oxmysql/Usage/insert/index.html @@ -5,13 +5,13 @@ Insert | Overextended - +
-

Insert

Inserts a new entry into the database and returns the insert id for the row, if valid.

Lua​

Callback​

-- Alias: exports.oxmysql:insert
-- Alias: MySQL.Async.insert
MySQL.insert('INSERT INTO users (identifier, firstname, lastname) VALUES (?, ?, ?) ', {playerIdentifier, firstName,lastName}, function(id)
print(id)
end)

Promise​

-- Alias: exports.oxmysql:insert_async
-- Alias: MySQL.Sync.insert
CreateThread(function()
local id = MySQL.insert.await('INSERT INTO users (identifier, firstname, lastname) VALUES (?, ?, ?) ', {playerIdentifier,firstName, lastName})
print(id)
end)

JavaScript​

Callback​

exports.oxmysql.insert('INSERT INTO users (identifier, firstname, lastname) VALUES (?, ?, ?) ', [playerIdentifier, firstName, lastName], function(id) {
console.log(id)
})

Promise​

(async () => {
const id = exports.oxmysql.insert_async('INSERT INTO users (identifier, firstname, lastname) VALUES (?, ?, ?) ',
[playerIdentifier, firstName, lastName]) {
console.log(id)
})()
- +

Insert

Inserts a new entry into the database and returns the insert id for the row, if valid.

Lua​

Callback​

-- Alias: exports.oxmysql:insert
-- Alias: MySQL.Async.insert
MySQL.insert('INSERT INTO users (identifier, firstname, lastname) VALUES (?, ?, ?) ', {playerIdentifier, firstName,lastName}, function(id)
print(id)
end)

Promise​

-- Alias: exports.oxmysql:insert_async
-- Alias: MySQL.Sync.insert
CreateThread(function()
local id = MySQL.insert.await('INSERT INTO users (identifier, firstname, lastname) VALUES (?, ?, ?) ', {playerIdentifier,firstName, lastName})
print(id)
end)

JavaScript​

Callback​

exports.oxmysql.insert('INSERT INTO users (identifier, firstname, lastname) VALUES (?, ?, ?) ', [playerIdentifier, firstName, lastName], function(id) {
console.log(id)
})

Promise​

(async () => {
const id = exports.oxmysql.insert_async('INSERT INTO users (identifier, firstname, lastname) VALUES (?, ?, ?) ',
[playerIdentifier, firstName, lastName]) {
console.log(id)
})()
+ \ No newline at end of file diff --git a/docs/oxmysql/Usage/prepare/index.html b/docs/oxmysql/Usage/prepare/index.html index 1990504f..16eb9d9c 100644 --- a/docs/oxmysql/Usage/prepare/index.html +++ b/docs/oxmysql/Usage/prepare/index.html @@ -5,14 +5,14 @@ Prepare | Overextended - +
-

Prepare

The only function that provides true prepared statements, granting native protection and query planning by MySQL.
+

Prepare

The only function that provides true prepared statements, granting native protection and query planning by MySQL.
Prepare can be used to execute frequently called queries faster and accepts multiple sets of parameters to be used with a single query.

  • Date will not return the datestring commonly used in FiveM
  • TINYINT 1 and BIT will not return a boolean
  • You can only use ? value placeholders, ?? column placeholders and named placeholders will throw an error

When using SELECT, the return value will match query, single, or scalar depending on the number of columns and rows selected.

Lua​

Callback​

-- Alias: exports.oxmysql:prepare
-- Alias: MySQL.Async.prepare

MySQL.prepare('SELECT * FROM users WHERE identifier = ?', {playerIdentifier}, function(result)
if result then
for _, v in pairs(result) do
print(v.identifier, v.firstname, v.lastname)
end
end
end)

Promise​

-- Alias: exports.oxmysql:prepare_async
-- Alias: MySQL.Sync.prepare

CreateThread(function()
local result = MySQL.prepare.await('SELECT * FROM users WHERE identifier = ?', {playerIdentifier})
if result then
for _, v in pairs(result) do
print(v.identifier, v.firstname, v.lastname)
end
end
end)

JavaScript​

Callback​

exports.oxmysql.prepare('SELECT * FROM users WHERE identifier = ?', [playerIdentifier], function(result) {
if (result) {
result.forEach((v) => {
console.log(v.identifier, v.firstname, v.lastname)
})
}
})

Promise​

(async () => {
const result = await exports.oxmysql.prepare_async('SELECT * FROM users WHERE identifier = ?', [playerIdentifier]) {
if (result) {
result.forEach((v) => {
console.log(v.identifier, v.firstname, v.lastname)
})
}
})()
- + \ No newline at end of file diff --git a/docs/oxmysql/Usage/query/index.html b/docs/oxmysql/Usage/query/index.html index a591bef1..fb0364f8 100644 --- a/docs/oxmysql/Usage/query/index.html +++ b/docs/oxmysql/Usage/query/index.html @@ -5,14 +5,14 @@ Query | Overextended - +
-

Query

Generic function that can be utilised for any query.
+

Query

Generic function that can be utilised for any query.
When selecting data it will return all matching rows and columns, otherwise it will return field data such as insertid, affectedRows, etc.

Lua​

Callback​

-- Alias: exports.oxmysql:query
-- Alias: MySQL.Async.query

MySQL.query('SELECT * FROM users WHERE identifier = ?', {playerIdentifier}, function(result)
if result then
for _, v in pairs(result) do
print(v.identifier, v.firstname, v.lastname)
end
end
end)

Promise​

-- Alias: exports.oxmysql:query
-- Alias: MySQL.Sync.query

CreateThread(function()
local result = MySQL.query.await('SELECT * FROM users WHERE identifier = ?', {playerIdentifier})
if result then
for _, v in pairs(result) do
print(v.identifier, v.firstname, v.lastname)
end
end
end)

JavaScript​

Callback​

exports.oxmysql.query('SELECT * FROM users WHERE identifier = ?', [playerIdentifier], function(result) {
if (result) {
result.forEach((v) => {
console.log(v.identifier, v.firstname, v.lastname)
})
}
})

Promise​

(async () => {
const result = await exports.oxmysql.query_async('SELECT * FROM users WHERE identifier = ?', [playerIdentifier]) {
if (result) {
result.forEach((v) => {
console.log(v.identifier, v.firstname, v.lastname)
})
}
})()
- + \ No newline at end of file diff --git a/docs/oxmysql/Usage/scalar/index.html b/docs/oxmysql/Usage/scalar/index.html index ab0a9b17..1355b977 100644 --- a/docs/oxmysql/Usage/scalar/index.html +++ b/docs/oxmysql/Usage/scalar/index.html @@ -5,13 +5,13 @@ Scalar | Overextended - +
-

Scalar

Returns the first column for a single row.

Lua​

Callback​

-- Alias: exports.oxmysql:scalar
-- Alias: MySQL.Async.fetchScalar

MySQL.scalar('SELECT firstname FROM users WHERE identifier = ?', {playerIdentifier}, function(firstname)
print(firstname)
end)

Promise​

-- Alias: exports.oxmysql:scalar_async
-- Alias: MySQL.Sync.fetchScalar

CreateThread(function()
local firstname = MySQL.scalar.await('SELECT firstname FROM users WHERE identifier = ?', {playerIdentifier})
print(firstname)
end)

JavaScript​

Callback​

exports.oxmysql.scalar('SELECT firstname FROM users WHERE identifier = ?', [playerIdentifier], function(firstname) {
console.log(firstname)
})

Promise​

(async () => {
const firstname = await exports.oxmysql.scalar_async('SELECT firstname FROM users WHERE identifier = ?', [playerIdentifier]) {
console.log(firstname)
})()
- +

Scalar

Returns the first column for a single row.

Lua​

Callback​

-- Alias: exports.oxmysql:scalar
-- Alias: MySQL.Async.fetchScalar

MySQL.scalar('SELECT firstname FROM users WHERE identifier = ?', {playerIdentifier}, function(firstname)
print(firstname)
end)

Promise​

-- Alias: exports.oxmysql:scalar_async
-- Alias: MySQL.Sync.fetchScalar

CreateThread(function()
local firstname = MySQL.scalar.await('SELECT firstname FROM users WHERE identifier = ?', {playerIdentifier})
print(firstname)
end)

JavaScript​

Callback​

exports.oxmysql.scalar('SELECT firstname FROM users WHERE identifier = ?', [playerIdentifier], function(firstname) {
console.log(firstname)
})

Promise​

(async () => {
const firstname = await exports.oxmysql.scalar_async('SELECT firstname FROM users WHERE identifier = ?', [playerIdentifier]) {
console.log(firstname)
})()
+ \ No newline at end of file diff --git a/docs/oxmysql/Usage/single/index.html b/docs/oxmysql/Usage/single/index.html index b690cab1..fd2014ed 100644 --- a/docs/oxmysql/Usage/single/index.html +++ b/docs/oxmysql/Usage/single/index.html @@ -5,13 +5,13 @@ Single | Overextended - +
-

Single

Returns the columns for a single row.

Lua​

Callback​

-- Alias: exports.oxmysql:single
-- Alias: MySQL.Async.fetchSingle

MySQL.single('SELECT * FROM users WHERE identifier = ?', {playerIdentifier}, function(result)
if result then
print(result.identifier, result.firstname, result.lastname)
end
end)

Promise​

-- Alias: exports.oxmysql:single_async
-- Alias: MySQL.Sync.fetchSingle

CreateThread(function()
local result = MySQL.single.await('SELECT * FROM users WHERE identifier = ?', {playerIdentifier})
if result then
print(result.identifier, result.firstname, result.lastname)
end
end)

JavaScript​

Callback​

exports.oxmysql.single('SELECT * FROM users WHERE identifier = ?', [playerIdentifier], function(result) {
if (result)
console.log(result.identifier, result.firstname, result.lastname)
})

Promise​

setImmediate(async () => {
const result = await exports.oxmysql.single_async('SELECT * FROM users WHERE identifier = ?', [playerIdentifier]) {
if (result)
console.log(result.identifier, result.firstname, result.lastname)
})
- +

Single

Returns the columns for a single row.

Lua​

Callback​

-- Alias: exports.oxmysql:single
-- Alias: MySQL.Async.fetchSingle

MySQL.single('SELECT * FROM users WHERE identifier = ?', {playerIdentifier}, function(result)
if result then
print(result.identifier, result.firstname, result.lastname)
end
end)

Promise​

-- Alias: exports.oxmysql:single_async
-- Alias: MySQL.Sync.fetchSingle

CreateThread(function()
local result = MySQL.single.await('SELECT * FROM users WHERE identifier = ?', {playerIdentifier})
if result then
print(result.identifier, result.firstname, result.lastname)
end
end)

JavaScript​

Callback​

exports.oxmysql.single('SELECT * FROM users WHERE identifier = ?', [playerIdentifier], function(result) {
if (result)
console.log(result.identifier, result.firstname, result.lastname)
})

Promise​

setImmediate(async () => {
const result = await exports.oxmysql.single_async('SELECT * FROM users WHERE identifier = ?', [playerIdentifier]) {
if (result)
console.log(result.identifier, result.firstname, result.lastname)
})
+ \ No newline at end of file diff --git a/docs/oxmysql/Usage/transaction/index.html b/docs/oxmysql/Usage/transaction/index.html index 26d5da01..5d613534 100644 --- a/docs/oxmysql/Usage/transaction/index.html +++ b/docs/oxmysql/Usage/transaction/index.html @@ -5,14 +5,14 @@ Transaction | Overextended - +
-

Transaction

todo - update formatting and information

Transactions​

A transaction executes multiple queries and commits them only if all succeed. If one fails, none of the queries are committed. The return value is a boolean, which is the result of the transaction.

Specific Format​

When using the Specific format you must pass one parameter to the oxmysql export. In this case, the queries parameter contains your queries and the SQL variables unique to each query.

This is useful for transactions where the queries do not share many SQL variables.

Usage​

Lua​

local queries = {
{ query = 'INSERT INTO `test` (id) VALUES (:someid)', values = { ['someid'] = 1 } },
{ query = 'INSERT INTO `test` (id) VALUES (:someid)', values = { ['someid'] = 2 } }
} -- NOTE, the 'values' tables can be named 'parameters' here for MySQL-Async compatibility.

-- Async
exports.oxmysql:transaction(queries, function(result)
print(result)
end)

-- Sync
local result = exports.oxmysql:transactionSync(queries)
print(result)

JavaScript​

const queries = [
{ query = 'INSERT INTO `test` (id) VALUES (:someid)', values = { someid = 1 } },
{ query = 'INSERT INTO `test` (id) VALUES (:someid)', values = { someid = 2 } }
] // NOTE, the 'values' objects can be named 'parameters' here for MySQL-Async compatibility.

// Async
exports.oxmysql.transaction(queries, (result) => {
console.log(result)
})

// Sync
const result = await exports.oxmysql.transactionSync(queries)
console.log(result)

Shared Format​

When using the Shared format you must pass two parameters to the oxmysql export. The queries and the parameters those queries will use.
+

Transaction

todo - update formatting and information

Transactions​

A transaction executes multiple queries and commits them only if all succeed. If one fails, none of the queries are committed. The return value is a boolean, which is the result of the transaction.

Specific Format​

When using the Specific format you must pass one parameter to the oxmysql export. In this case, the queries parameter contains your queries and the SQL variables unique to each query.

This is useful for transactions where the queries do not share many SQL variables.

Usage​

Lua​

local queries = {
{ query = 'INSERT INTO `test` (id) VALUES (:someid)', values = { ['someid'] = 1 } },
{ query = 'INSERT INTO `test` (id) VALUES (:someid)', values = { ['someid'] = 2 } }
} -- NOTE, the 'values' tables can be named 'parameters' here for MySQL-Async compatibility.

-- Async
exports.oxmysql:transaction(queries, function(result)
print(result)
end)

-- Sync
local result = exports.oxmysql:transactionSync(queries)
print(result)

JavaScript​

const queries = [
{ query = 'INSERT INTO `test` (id) VALUES (:someid)', values = { someid = 1 } },
{ query = 'INSERT INTO `test` (id) VALUES (:someid)', values = { someid = 2 } }
] // NOTE, the 'values' objects can be named 'parameters' here for MySQL-Async compatibility.

// Async
exports.oxmysql.transaction(queries, (result) => {
console.log(result)
})

// Sync
const result = await exports.oxmysql.transactionSync(queries)
console.log(result)

Shared Format​

When using the Shared format you must pass two parameters to the oxmysql export. The queries and the parameters those queries will use.
This is useful if your queries use the same SQL variables.

Lua​

local queries = {
'INSERT INTO `test` (id, name) VALUES (:someid, :somename)',
'SET `name` = :newname IN `test` WHERE `id` = :someid'
}

local parameters = { ['someid'] = 2, ['somename'] = 'John Doe', ['newname'] = 'John Notdoe' }

-- Async
exports.oxmysql:transaction(queries, parameters, function(result)
print(result)
end)

-- Sync
local result = exports.oxmysql:transactionSync(queries, parameters)
print(result)

JavaScript​

const queries = [
'INSERT INTO `test` (id, name) VALUES (:someid, :somename)',
'SET `name` = :newname IN `test` WHERE `id` = :someid'
]

const parameters = { someid = 2, somename = 'John Doe', newname = 'John Notdoe' }

// Async
exports.oxmysql.transaction(queries, parameters, (result) => {
console.log(result)
})

// Sync
const result = await exports.oxmysql.transactionSync(queries, parameters)
console.log(result)

Transaction Isolation Level​

This can be set through the convar mysql_transaction_isolation_level which should be an integer ranging from 1-4. The default convar value set by oxmysql is 2.

Convar ValueResult
1Repeatable Read
2Read Committed
3Read Uncommitted
4Serializable
- + \ No newline at end of file diff --git a/docs/oxmysql/Usage/update/index.html b/docs/oxmysql/Usage/update/index.html index c4e3c223..e7257597 100644 --- a/docs/oxmysql/Usage/update/index.html +++ b/docs/oxmysql/Usage/update/index.html @@ -5,13 +5,13 @@ Update | Overextended - +
-

Update

Returns the number of affected rows by the query.

Lua​

Callback​

-- Alias: exports.oxmysql:update
-- Alias: MySQL.Async.update

MySQL.Async.update('UPDATE users SET firstname = ? WHERE identifier = ? ', {newName, playerIdentifier}, function(affectedRows)
if affectedRows then
print(affectedRows)
end
end)

Promise​

-- Alias: exports.oxmysql:update_async
-- Alias: MySQL.update

CreateThread(function()
local affectedRows = MySQL.update.await('UPDATE users SET firstname = ? WHERE identifier = ? ', {newName, playerIdentifier})
if affectedRows then
print(affectedRows)
end
end)

JavaScript​

Callback​

exports.oxmysql.update('UPDATE users SET firstname = ? WHERE identifier = ? ', [newName, playerIdentifier], function(affectedRows) {
if (affectedRows)
console.log(affectedRows)
})

Promise​

setImmediate(async () => {
const id = exports.oxmysql.update_async('UPDATE users SET firstname = ? WHERE identifier = ? ', [newName, playerIdentifier]) {
if (affectedRows)
console.log(affectedRows)
})
- +

Update

Returns the number of affected rows by the query.

Lua​

Callback​

-- Alias: exports.oxmysql:update
-- Alias: MySQL.Async.update

MySQL.Async.update('UPDATE users SET firstname = ? WHERE identifier = ? ', {newName, playerIdentifier}, function(affectedRows)
if affectedRows then
print(affectedRows)
end
end)

Promise​

-- Alias: exports.oxmysql:update_async
-- Alias: MySQL.update

CreateThread(function()
local affectedRows = MySQL.update.await('UPDATE users SET firstname = ? WHERE identifier = ? ', {newName, playerIdentifier})
if affectedRows then
print(affectedRows)
end
end)

JavaScript​

Callback​

exports.oxmysql.update('UPDATE users SET firstname = ? WHERE identifier = ? ', [newName, playerIdentifier], function(affectedRows) {
if (affectedRows)
console.log(affectedRows)
})

Promise​

setImmediate(async () => {
const id = exports.oxmysql.update_async('UPDATE users SET firstname = ? WHERE identifier = ? ', [newName, playerIdentifier]) {
if (affectedRows)
console.log(affectedRows)
})
+ \ No newline at end of file diff --git a/docs/oxmysql/index.html b/docs/oxmysql/index.html index ba45da2c..0ca52e61 100644 --- a/docs/oxmysql/index.html +++ b/docs/oxmysql/index.html @@ -4,14 +4,14 @@ -MySQL | Overextended - +index | Overextended + - +
+ \ No newline at end of file diff --git a/index.html b/index.html index e995dc34..57c16d35 100644 --- a/index.html +++ b/index.html @@ -5,13 +5,13 @@ Overextended | Overextended - +
ox

Overextended

Official documentation for Overextended resources

- + \ No newline at end of file diff --git a/markdown-page/index.html b/markdown-page/index.html index 2223c5db..1b03bc0e 100644 --- a/markdown-page/index.html +++ b/markdown-page/index.html @@ -5,13 +5,13 @@ Markdown page example | Overextended - +

Markdown page example

You don't need React to write simple standalone pages.

- + \ No newline at end of file