This commit is contained in:
github-actions[bot] committed 2022-05-12 05:59:29 +00:00
1 parent 8dfd2b7b1e
commit 58ba9f020c
86 files changed
+335 -317

No files matched your search

+1
View File
@@ -0,0 +1 @@
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[7752],{3905:function(e,n,t){t.d(n,{Zo:function(){return u},kt:function(){return f}});var r=t(7294);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach((function(n){o(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function a(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var c=r.createContext({}),s=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):l(l({},n),e)),t},u=function(e){var n=s(e.components);return r.createElement(c.Provider,{value:n},e.children)},p={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},d=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,i=e.originalType,c=e.parentName,u=a(e,["components","mdxType","originalType","parentName"]),d=s(t),f=o,b=d["".concat(c,".").concat(f)]||d[f]||p[f]||i;return t?r.createElement(b,l(l({ref:n},u),{},{components:t})):r.createElement(b,l({ref:n},u))}));function f(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var i=t.length,l=new Array(i);l[0]=d;var a={};for(var c in n)hasOwnProperty.call(n,c)&&(a[c]=n[c]);a.originalType=e,a.mdxType="string"==typeof e?e:o,l[1]=a;for(var s=2;s<i;s++)l[s]=t[s];return r.createElement.apply(null,l)}return r.createElement.apply(null,t)}d.displayName="MDXCreateElement"},4482:function(e,n,t){t.r(n),t.d(n,{frontMatter:function(){return a},contentTitle:function(){return c},metadata:function(){return s},assets:function(){return u},toc:function(){return p},default:function(){return f}});var r=t(7462),o=t(3366),i=(t(7294),t(3905)),l=["components"],a={},c="Zones",s={unversionedId:"ox_lib/Client/zones",id:"ox_lib/Client/zones",title:"Zones",description:"More optimised version of polyzones utilising glm polygon.",source:"@site/docs/ox_lib/Client/zones.md",sourceDirName:"ox_lib/Client",slug:"/ox_lib/Client/zones",permalink:"/docs/ox_lib/Client/zones",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_lib/Client/zones.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Vehicle Properties",permalink:"/docs/ox_lib/Client/vehicleProperties"},next:{title:"Permissions",permalink:"/docs/ox_lib/Server/acl"}},u={},p=[],d={toc:p};function f(e){var n=e.components,t=(0,o.Z)(e,l);return(0,i.kt)("wrapper",(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,i.kt)("h1",{id:"zones"},"Zones"),(0,i.kt)("p",null,"More optimised version of polyzones utilising glm polygon."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-lua"},"-- data: table\n -- points: table of vector3s, all z values must match\n -- thickness: number (optional), default 2\n -- debug: bool (optional)\nlib.zones.poly(data)\n\n-- data: table\n -- coords: vector3\n -- size: vector3\n -- rotation: number (optional), angle in degrees\n -- debug: bool (optional)\nlib.zones.box(data)\n\n-- data: table\n -- coords: vector3\n -- radius: number (optional), default is 2\n -- debug: bool (optional)\nlib.zones.sphere(data)\n\nlocal zone = lib.points.box({\n coords = playerCoords,\n dunak = 'nerd',\n})\n\nfunction zone:onEnter()\n print('entered box', self.id)\nend\n\nfunction zone:onExit()\n print('exited box', self.id)\nend\n\nfunction zone:inside()\n print('you are inside the box ' .. self.id)\nend\n")))}f.isMDXComponent=!0}}]);
-1
View File
@@ -1 +0,0 @@
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[53],{1109:function(e){e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"docs":[{"type":"link","label":"Documentation","href":"/docs/","docId":"index"},{"type":"category","label":"MySQL","items":[{"type":"category","label":"Getting Started","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Benchmark","href":"/docs/oxmysql/Getting Started/benchmark","docId":"oxmysql/Getting Started/benchmark"},{"type":"link","label":"Common Issues","href":"/docs/oxmysql/Getting Started/issues","docId":"oxmysql/Getting Started/issues"},{"type":"link","label":"Placeholders","href":"/docs/oxmysql/Getting Started/placeholders","docId":"oxmysql/Getting Started/placeholders"}],"href":"/docs/oxmysql/"},{"type":"category","label":"Usage","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Insert","href":"/docs/oxmysql/Usage/insert","docId":"oxmysql/Usage/insert"},{"type":"link","label":"Prepare","href":"/docs/oxmysql/Usage/prepare","docId":"oxmysql/Usage/prepare"},{"type":"link","label":"Query","href":"/docs/oxmysql/Usage/query","docId":"oxmysql/Usage/query"},{"type":"link","label":"Scalar","href":"/docs/oxmysql/Usage/scalar","docId":"oxmysql/Usage/scalar"},{"type":"link","label":"Single","href":"/docs/oxmysql/Usage/single","docId":"oxmysql/Usage/single"},{"type":"link","label":"Transaction","href":"/docs/oxmysql/Usage/transaction","docId":"oxmysql/Usage/transaction"},{"type":"link","label":"Update","href":"/docs/oxmysql/Usage/update","docId":"oxmysql/Usage/update"}],"href":"/docs/oxmysql/Usage/"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Library","items":[{"type":"category","label":"Client","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"Interface","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Context Menu","href":"/docs/ox_lib/Client/Interface/context","docId":"ox_lib/Client/Interface/context"},{"type":"link","label":"Input Dialog","href":"/docs/ox_lib/Client/Interface/input","docId":"ox_lib/Client/Interface/input"},{"type":"link","label":"Notifications","href":"/docs/ox_lib/Client/Interface/notify","docId":"ox_lib/Client/Interface/notify"},{"type":"link","label":"Progress","href":"/docs/ox_lib/Client/Interface/progress","docId":"ox_lib/Client/Interface/progress"},{"type":"link","label":"TextUI","href":"/docs/ox_lib/Client/Interface/textui","docId":"ox_lib/Client/Interface/textui"}]},{"type":"link","label":"Cache","href":"/docs/ox_lib/Client/cache","docId":"ox_lib/Client/cache"},{"type":"link","label":"Callbacks","href":"/docs/ox_lib/Client/callback","docId":"ox_lib/Client/callback"},{"type":"link","label":"Disable Controls","href":"/docs/ox_lib/Client/disableControls","docId":"ox_lib/Client/disableControls"},{"type":"link","label":"Misc","href":"/docs/ox_lib/Client/misc","docId":"ox_lib/Client/misc"},{"type":"link","label":"Points","href":"/docs/ox_lib/Client/points","docId":"ox_lib/Client/points"},{"type":"link","label":"Streaming","href":"/docs/ox_lib/Client/streaming","docId":"ox_lib/Client/streaming"},{"type":"link","label":"Vehicle Properties","href":"/docs/ox_lib/Client/vehicleProperties","docId":"ox_lib/Client/vehicleProperties"}]},{"type":"category","label":"Server","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Permissions","href":"/docs/ox_lib/Server/acl","docId":"ox_lib/Server/acl"},{"type":"link","label":"Command","href":"/docs/ox_lib/Server/addCommand","docId":"ox_lib/Server/addCommand"},{"type":"link","label":"Callbacks","href":"/docs/ox_lib/Server/callback","docId":"ox_lib/Server/callback"},{"type":"link","label":"Logger","href":"/docs/ox_lib/Server/logger","docId":"ox_lib/Server/logger"},{"type":"link","label":"Version check","href":"/docs/ox_lib/Server/version","docId":"ox_lib/Server/version"}]},{"type":"category","label":"Shared","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Localisation","href":"/docs/ox_lib/Shared/locale","docId":"ox_lib/Shared/locale"},{"type":"link","label":"Dependency version","href":"/docs/ox_lib/Shared/version","docId":"ox_lib/Shared/version"}]},{"type":"link","label":"Getting Started","href":"/docs/ox_lib/","docId":"ox_lib/index"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Inventory","items":[{"type":"category","label":"Functions","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"Client","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"Inventory","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Search","href":"/docs/ox_inventory/Functions/Client/Inventory/Search","docId":"ox_inventory/Functions/Client/Inventory/Search"}]},{"type":"link","label":"Items","href":"/docs/ox_inventory/Functions/Client/Items","docId":"ox_inventory/Functions/Client/Items"},{"typLine truncated
+1
View File
@@ -0,0 +1 @@
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[53],{1109:function(e){e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"docs":[{"type":"link","label":"Documentation","href":"/docs/","docId":"index"},{"type":"category","label":"MySQL","items":[{"type":"category","label":"Getting Started","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Benchmark","href":"/docs/oxmysql/Getting Started/benchmark","docId":"oxmysql/Getting Started/benchmark"},{"type":"link","label":"Common Issues","href":"/docs/oxmysql/Getting Started/issues","docId":"oxmysql/Getting Started/issues"},{"type":"link","label":"Placeholders","href":"/docs/oxmysql/Getting Started/placeholders","docId":"oxmysql/Getting Started/placeholders"}],"href":"/docs/oxmysql/"},{"type":"category","label":"Usage","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Insert","href":"/docs/oxmysql/Usage/insert","docId":"oxmysql/Usage/insert"},{"type":"link","label":"Prepare","href":"/docs/oxmysql/Usage/prepare","docId":"oxmysql/Usage/prepare"},{"type":"link","label":"Query","href":"/docs/oxmysql/Usage/query","docId":"oxmysql/Usage/query"},{"type":"link","label":"Scalar","href":"/docs/oxmysql/Usage/scalar","docId":"oxmysql/Usage/scalar"},{"type":"link","label":"Single","href":"/docs/oxmysql/Usage/single","docId":"oxmysql/Usage/single"},{"type":"link","label":"Transaction","href":"/docs/oxmysql/Usage/transaction","docId":"oxmysql/Usage/transaction"},{"type":"link","label":"Update","href":"/docs/oxmysql/Usage/update","docId":"oxmysql/Usage/update"}],"href":"/docs/oxmysql/Usage/"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Library","items":[{"type":"category","label":"Client","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"Interface","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Context Menu","href":"/docs/ox_lib/Client/Interface/context","docId":"ox_lib/Client/Interface/context"},{"type":"link","label":"Input Dialog","href":"/docs/ox_lib/Client/Interface/input","docId":"ox_lib/Client/Interface/input"},{"type":"link","label":"Notifications","href":"/docs/ox_lib/Client/Interface/notify","docId":"ox_lib/Client/Interface/notify"},{"type":"link","label":"Progress","href":"/docs/ox_lib/Client/Interface/progress","docId":"ox_lib/Client/Interface/progress"},{"type":"link","label":"TextUI","href":"/docs/ox_lib/Client/Interface/textui","docId":"ox_lib/Client/Interface/textui"}]},{"type":"link","label":"Cache","href":"/docs/ox_lib/Client/cache","docId":"ox_lib/Client/cache"},{"type":"link","label":"Callbacks","href":"/docs/ox_lib/Client/callback","docId":"ox_lib/Client/callback"},{"type":"link","label":"Disable Controls","href":"/docs/ox_lib/Client/disableControls","docId":"ox_lib/Client/disableControls"},{"type":"link","label":"Misc","href":"/docs/ox_lib/Client/misc","docId":"ox_lib/Client/misc"},{"type":"link","label":"Points","href":"/docs/ox_lib/Client/points","docId":"ox_lib/Client/points"},{"type":"link","label":"Streaming","href":"/docs/ox_lib/Client/streaming","docId":"ox_lib/Client/streaming"},{"type":"link","label":"Vehicle Properties","href":"/docs/ox_lib/Client/vehicleProperties","docId":"ox_lib/Client/vehicleProperties"},{"type":"link","label":"Zones","href":"/docs/ox_lib/Client/zones","docId":"ox_lib/Client/zones"}]},{"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":"Logger","href":"/docs/ox_lib/Server/logger","docId":"ox_lib/Server/logger"},{"type":"link","label":"Version check","href":"/docs/ox_lib/Server/version","docId":"ox_lib/Server/version"}]},{"type":"category","label":"Shared","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Localisation","href":"/docs/ox_lib/Shared/locale","docId":"ox_lib/Shared/locale"},{"type":"link","label":"Dependency version","href":"/docs/ox_lib/Shared/version","docId":"ox_lib/Shared/version"}]},{"type":"link","label":"Getting Started","href":"/docs/ox_lib/","docId":"ox_lib/index"}],"collapsed":true,"collapsible":true},{"type":"category","label":"Inventory","items":[{"type":"category","label":"Functions","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"Client","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"Inventory","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Search","href":"/docs/ox_inventory/Functions/Client/Inventory/Search","docId":"ox_inventory/Functions/Client/Inventory/Search"}]},{"type":"link","label":"Items","href"Line truncated
@@ -1 +1 @@
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3149],{3905:function(e,t,r){r.d(t,{Zo:function(){return p},kt:function(){return h}});var n=r(7294);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(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 l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var c=n.createContext({}),s=function(e){var t=n.useContext(c),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},p=function(e){var t=s(e.components);return n.createElement(c.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,i=e.mdxType,o=e.originalType,c=e.parentName,p=a(e,["components","mdxType","originalType","parentName"]),d=s(r),h=i,m=d["".concat(c,".").concat(h)]||d[h]||u[h]||o;return r?n.createElement(m,l(l({ref:t},p),{},{components:r})):n.createElement(m,l({ref:t},p))}));function h(e,t){var r=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var o=r.length,l=new Array(o);l[0]=d;var a={};for(var c in t)hasOwnProperty.call(t,c)&&(a[c]=t[c]);a.originalType=e,a.mdxType="string"==typeof e?e:i,l[1]=a;for(var s=2;s<o;s++)l[s]=r[s];return n.createElement.apply(null,l)}return n.createElement.apply(null,r)}d.displayName="MDXCreateElement"},4862:function(e,t,r){r.r(t),r.d(t,{frontMatter:function(){return a},contentTitle:function(){return c},metadata:function(){return s},assets:function(){return p},toc:function(){return u},default:function(){return h}});var n=r(7462),i=r(3366),o=(r(7294),r(3905)),l=["components"],a={},c="Vehicle Properties",s={unversionedId:"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.",source:"@site/docs/ox_lib/Client/vehicleProperties.md",sourceDirName:"ox_lib/Client",slug:"/ox_lib/Client/vehicleProperties",permalink:"/docs/ox_lib/Client/vehicleProperties",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_lib/Client/vehicleProperties.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Streaming",permalink:"/docs/ox_lib/Client/streaming"},next:{title:"Permissions",permalink:"/docs/ox_lib/Server/acl"}},p={},u=[{value:"lib.getVehicleProperties",id:"libgetvehicleproperties",level:3},{value:"lib.setVehicleProperties",id:"libsetvehicleproperties",level:3},{value:"Recommended usage",id:"recommended-usage",level:4}],d={toc:u};function h(e){var t=e.components,r=(0,i.Z)(e,l);return(0,o.kt)("wrapper",(0,n.Z)({},d,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"vehicle-properties"},"Vehicle Properties"),(0,o.kt)("p",null,"Mostly follows the format used by ESX and QBCore, with extra data such as damaged/missing props.",(0,o.kt)("br",{parentName:"p"}),"\n",(0,o.kt)("a",{parentName:"p",href:"https://github.com/overextended/ox_lib/blob/master/resource/vehicleProperties/client.lua#L5"},"https://github.com/overextended/ox_lib/blob/master/resource/vehicleProperties/client.lua#L5")),(0,o.kt)("h3",{id:"libgetvehicleproperties"},"lib.getVehicleProperties"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-lua"},"-- vehicle: entity\nlib.getVehicleProperties(vehicle)\n\nlib.getVehicleProperties(GetVehiclePedIsUsing(PlayerPedId()))\n")),(0,o.kt)("h3",{id:"libsetvehicleproperties"},"lib.setVehicleProperties"),(0,o.kt)("p",null,"Requires the vehicle to belong to the client. ",(0,o.kt)("em",{parentName:"p"},"Do not use NetworkRequestControlOfEntity"),"."),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-lua"},"-- vehicle: entity\n-- props: table\nlib.setVehicleProperties(vehicle, props)\n\nRegisterNetEvent('lualib:setVehicleProperties', function(netid, data)\n lib.setVehicleProperties(NetToVeh(netid), data)\nend)\n")),(0,o.kt)("h4",{id:"recommended-usage"},"Recommended usage"),(0,o.kt)("p",null,"The server should tell the owner of the entity to set properties, using the following trigger."Line truncated
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3149],{3905:function(e,t,r){r.d(t,{Zo:function(){return p},kt:function(){return h}});var n=r(7294);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(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 l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var c=n.createContext({}),s=function(e){var t=n.useContext(c),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},p=function(e){var t=s(e.components);return n.createElement(c.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,i=e.mdxType,o=e.originalType,c=e.parentName,p=a(e,["components","mdxType","originalType","parentName"]),d=s(r),h=i,m=d["".concat(c,".").concat(h)]||d[h]||u[h]||o;return r?n.createElement(m,l(l({ref:t},p),{},{components:r})):n.createElement(m,l({ref:t},p))}));function h(e,t){var r=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var o=r.length,l=new Array(o);l[0]=d;var a={};for(var c in t)hasOwnProperty.call(t,c)&&(a[c]=t[c]);a.originalType=e,a.mdxType="string"==typeof e?e:i,l[1]=a;for(var s=2;s<o;s++)l[s]=r[s];return n.createElement.apply(null,l)}return n.createElement.apply(null,r)}d.displayName="MDXCreateElement"},4862:function(e,t,r){r.r(t),r.d(t,{frontMatter:function(){return a},contentTitle:function(){return c},metadata:function(){return s},assets:function(){return p},toc:function(){return u},default:function(){return h}});var n=r(7462),i=r(3366),o=(r(7294),r(3905)),l=["components"],a={},c="Vehicle Properties",s={unversionedId:"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.",source:"@site/docs/ox_lib/Client/vehicleProperties.md",sourceDirName:"ox_lib/Client",slug:"/ox_lib/Client/vehicleProperties",permalink:"/docs/ox_lib/Client/vehicleProperties",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_lib/Client/vehicleProperties.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Streaming",permalink:"/docs/ox_lib/Client/streaming"},next:{title:"Zones",permalink:"/docs/ox_lib/Client/zones"}},p={},u=[{value:"lib.getVehicleProperties",id:"libgetvehicleproperties",level:3},{value:"lib.setVehicleProperties",id:"libsetvehicleproperties",level:3},{value:"Recommended usage",id:"recommended-usage",level:4}],d={toc:u};function h(e){var t=e.components,r=(0,i.Z)(e,l);return(0,o.kt)("wrapper",(0,n.Z)({},d,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"vehicle-properties"},"Vehicle Properties"),(0,o.kt)("p",null,"Mostly follows the format used by ESX and QBCore, with extra data such as damaged/missing props.",(0,o.kt)("br",{parentName:"p"}),"\n",(0,o.kt)("a",{parentName:"p",href:"https://github.com/overextended/ox_lib/blob/master/resource/vehicleProperties/client.lua#L5"},"https://github.com/overextended/ox_lib/blob/master/resource/vehicleProperties/client.lua#L5")),(0,o.kt)("h3",{id:"libgetvehicleproperties"},"lib.getVehicleProperties"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-lua"},"-- vehicle: entity\nlib.getVehicleProperties(vehicle)\n\nlib.getVehicleProperties(GetVehiclePedIsUsing(PlayerPedId()))\n")),(0,o.kt)("h3",{id:"libsetvehicleproperties"},"lib.setVehicleProperties"),(0,o.kt)("p",null,"Requires the vehicle to belong to the client. ",(0,o.kt)("em",{parentName:"p"},"Do not use NetworkRequestControlOfEntity"),"."),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-lua"},"-- vehicle: entity\n-- props: table\nlib.setVehicleProperties(vehicle, props)\n\nRegisterNetEvent('lualib:setVehicleProperties', function(netid, data)\n lib.setVehicleProperties(NetToVeh(netid), data)\nend)\n")),(0,o.kt)("h4",{id:"recommended-usage"},"Recommended usage"),(0,o.kt)("p",null,"The server should tell the owner of the entity to set properties, using the following trigger."),(0Line truncated
@@ -1 +1 @@
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1358],{3905:function(e,r,n){n.d(r,{Zo:function(){return s},kt:function(){return m}});var t=n(7294);function i(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function a(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function l(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?a(Object(n),!0).forEach((function(r){i(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function o(e,r){if(null==e)return{};var n,t,i=function(e,r){if(null==e)return{};var n,t,i={},a=Object.keys(e);for(t=0;t<a.length;t++)n=a[t],r.indexOf(n)>=0||(i[n]=e[n]);return i}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t<a.length;t++)n=a[t],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var c=t.createContext({}),p=function(e){var r=t.useContext(c),n=r;return e&&(n="function"==typeof e?e(r):l(l({},r),e)),n},s=function(e){var r=p(e.components);return t.createElement(c.Provider,{value:r},e.children)},d={inlineCode:"code",wrapper:function(e){var r=e.children;return t.createElement(t.Fragment,{},r)}},u=t.forwardRef((function(e,r){var n=e.components,i=e.mdxType,a=e.originalType,c=e.parentName,s=o(e,["components","mdxType","originalType","parentName"]),u=p(n),m=i,b=u["".concat(c,".").concat(m)]||u[m]||d[m]||a;return n?t.createElement(b,l(l({ref:r},s),{},{components:n})):t.createElement(b,l({ref:r},s))}));function m(e,r){var n=arguments,i=r&&r.mdxType;if("string"==typeof e||i){var a=n.length,l=new Array(a);l[0]=u;var o={};for(var c in r)hasOwnProperty.call(r,c)&&(o[c]=r[c]);o.originalType=e,o.mdxType="string"==typeof e?e:i,l[1]=o;for(var p=2;p<a;p++)l[p]=n[p];return t.createElement.apply(null,l)}return t.createElement.apply(null,n)}u.displayName="MDXCreateElement"},9097:function(e,r,n){n.r(r),n.d(r,{frontMatter:function(){return o},contentTitle:function(){return c},metadata:function(){return p},assets:function(){return s},toc:function(){return d},default:function(){return m}});var t=n(7462),i=n(3366),a=(n(7294),n(3905)),l=["components"],o={},c="Permissions",p={unversionedId:"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.",source:"@site/docs/ox_lib/Server/acl.md",sourceDirName:"ox_lib/Server",slug:"/ox_lib/Server/acl",permalink:"/docs/ox_lib/Server/acl",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_lib/Server/acl.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Vehicle Properties",permalink:"/docs/ox_lib/Client/vehicleProperties"},next:{title:"Command",permalink:"/docs/ox_lib/Server/addCommand"}},s={},d=[{value:"lib.addAce",id:"libaddace",level:3},{value:"lib.removeAce",id:"libremoveace",level:3},{value:"lib.addPrincipal",id:"libaddprincipal",level:3},{value:"lib.removePrincipal",id:"libremoveprincipal",level:3}],u={toc:d};function m(e){var r=e.components,n=(0,i.Z)(e,l);return(0,a.kt)("wrapper",(0,t.Z)({},u,n,{components:r,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"permissions"},"Permissions"),(0,a.kt)("p",null,"Wrapper around the built-in ACL system. Handles lib.addCommand and ox_groups permissions.",(0,a.kt)("br",{parentName:"p"}),"\n","Refer to ",(0,a.kt)("a",{parentName:"p",href:"https://forum.cfx.re/t/basic-aces-principals-overview-guide/90917"},"Basic Aces & Principals overview/guide")," for more information."),(0,a.kt)("h3",{id:"libaddace"},"lib.addAce"),(0,a.kt)("p",null,"Assigns the ace permission to a principal. Third parameter defaults to 'allow', while false sets the permission to 'deny'."),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-lua"},"-- principal: string\n-- ace: string\n-- allow: boolean\nlib.addAce(principal, ace, allow)\n\nlib.addAce('group.admin', 'command.say')\n")),(0,a.kt)("h3",{id:"libremoveace"},"lib.removeAce"),(0,a.kt)("p",null,"Removes the ace permission from a principal. Third parameter defaults to 'allow', while false sets the permission to 'deny'."),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-lua"},"-- principal: string\n-- ace: string\n-- allow: boolean\nlib.removeAce(principal, ace, allow)\n\nlib.removeAce('group.admin', 'command.say')\n")),(0,a.kt)("h3",{id:"libaddprincipal"},"lib.addPrincipal"),(0,a.kt)("p",null,"Assigns a principal to a parent principal. Children inherit permissions from the parent."),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-lua"},"-- child: string\n-- pareLine truncated
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1358],{3905:function(e,r,n){n.d(r,{Zo:function(){return s},kt:function(){return m}});var t=n(7294);function i(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function a(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function l(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?a(Object(n),!0).forEach((function(r){i(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function o(e,r){if(null==e)return{};var n,t,i=function(e,r){if(null==e)return{};var n,t,i={},a=Object.keys(e);for(t=0;t<a.length;t++)n=a[t],r.indexOf(n)>=0||(i[n]=e[n]);return i}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t<a.length;t++)n=a[t],r.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var c=t.createContext({}),p=function(e){var r=t.useContext(c),n=r;return e&&(n="function"==typeof e?e(r):l(l({},r),e)),n},s=function(e){var r=p(e.components);return t.createElement(c.Provider,{value:r},e.children)},d={inlineCode:"code",wrapper:function(e){var r=e.children;return t.createElement(t.Fragment,{},r)}},u=t.forwardRef((function(e,r){var n=e.components,i=e.mdxType,a=e.originalType,c=e.parentName,s=o(e,["components","mdxType","originalType","parentName"]),u=p(n),m=i,b=u["".concat(c,".").concat(m)]||u[m]||d[m]||a;return n?t.createElement(b,l(l({ref:r},s),{},{components:n})):t.createElement(b,l({ref:r},s))}));function m(e,r){var n=arguments,i=r&&r.mdxType;if("string"==typeof e||i){var a=n.length,l=new Array(a);l[0]=u;var o={};for(var c in r)hasOwnProperty.call(r,c)&&(o[c]=r[c]);o.originalType=e,o.mdxType="string"==typeof e?e:i,l[1]=o;for(var p=2;p<a;p++)l[p]=n[p];return t.createElement.apply(null,l)}return t.createElement.apply(null,n)}u.displayName="MDXCreateElement"},9097:function(e,r,n){n.r(r),n.d(r,{frontMatter:function(){return o},contentTitle:function(){return c},metadata:function(){return p},assets:function(){return s},toc:function(){return d},default:function(){return m}});var t=n(7462),i=n(3366),a=(n(7294),n(3905)),l=["components"],o={},c="Permissions",p={unversionedId:"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.",source:"@site/docs/ox_lib/Server/acl.md",sourceDirName:"ox_lib/Server",slug:"/ox_lib/Server/acl",permalink:"/docs/ox_lib/Server/acl",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_lib/Server/acl.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"Zones",permalink:"/docs/ox_lib/Client/zones"},next:{title:"Command",permalink:"/docs/ox_lib/Server/addCommand"}},s={},d=[{value:"lib.addAce",id:"libaddace",level:3},{value:"lib.removeAce",id:"libremoveace",level:3},{value:"lib.addPrincipal",id:"libaddprincipal",level:3},{value:"lib.removePrincipal",id:"libremoveprincipal",level:3}],u={toc:d};function m(e){var r=e.components,n=(0,i.Z)(e,l);return(0,a.kt)("wrapper",(0,t.Z)({},u,n,{components:r,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"permissions"},"Permissions"),(0,a.kt)("p",null,"Wrapper around the built-in ACL system. Handles lib.addCommand and ox_groups permissions.",(0,a.kt)("br",{parentName:"p"}),"\n","Refer to ",(0,a.kt)("a",{parentName:"p",href:"https://forum.cfx.re/t/basic-aces-principals-overview-guide/90917"},"Basic Aces & Principals overview/guide")," for more information."),(0,a.kt)("h3",{id:"libaddace"},"lib.addAce"),(0,a.kt)("p",null,"Assigns the ace permission to a principal. Third parameter defaults to 'allow', while false sets the permission to 'deny'."),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-lua"},"-- principal: string\n-- ace: string\n-- allow: boolean\nlib.addAce(principal, ace, allow)\n\nlib.addAce('group.admin', 'command.say')\n")),(0,a.kt)("h3",{id:"libremoveace"},"lib.removeAce"),(0,a.kt)("p",null,"Removes the ace permission from a principal. Third parameter defaults to 'allow', while false sets the permission to 'deny'."),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-lua"},"-- principal: string\n-- ace: string\n-- allow: boolean\nlib.removeAce(principal, ace, allow)\n\nlib.removeAce('group.admin', 'command.say')\n")),(0,a.kt)("h3",{id:"libaddprincipal"},"lib.addPrincipal"),(0,a.kt)("p",null,"Assigns a principal to a parent principal. Children inherit permissions from the parent."),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-lua"},"-- child: string\n-- parent: string\nlib.addPrinciLine truncated
+2
View File
@@ -0,0 +1,2 @@
/*! For license information please see main.90c2dcb6.js.LICENSE.txt */
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[179],{9782:function(e,t,n){"use strict";n.r(t),t.default={title:"Overextended",tagline:"Official documentation for Overextended resources",url:"https://overextended.github.io",baseUrl:"/",onBrokenLinks:"throw",onBrokenMarkdownLinks:"warn",favicon:"img/ox.ico",organizationName:"overextended",projectName:"overextended.github.io",presets:[["classic",{docs:{sidebarPath:"/home/runner/work/overextended.github.io/overextended.github.io/sidebars.js",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/"},theme:{customCss:"/home/runner/work/overextended.github.io/overextended.github.io/src/css/custom.css"}}]],themeConfig:{colorMode:{defaultMode:"dark",disableSwitch:!0,respectPrefersColorScheme:!1},navbar:{title:"Overextended",logo:{alt:"Ox Logo",src:"/img/ox_64.png",width:32,height:32},items:[{href:"https://www.github.com/overextended",label:"GitHub",position:"left"},{href:"https://www.discord.gg/overextended",label:"Discord",position:"left"},{to:"docs/",label:"Documentation",position:"right"},{type:"search",position:"right"}],hideOnScroll:!1},footer:{style:"dark",copyright:"Copyright \xa9 2022 Overextended",links:[]},prism:{theme:{plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},darkTheme:{plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:"#c5a5c5"}},{types:["attr-value"],style:{color:"#8dc891"}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:"#8dc891"}},{types:["punctuation"],style:{color:"#8dc891"}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:"#c5a5c5"}},{types:["at-rule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},additionalLanguages:["lua"]},docs:{versionPersistence:"localStorage"},metadata:[],hideableSidebar:!1,autoCollapseSidebarCategories:!1,tableOfContents:{minHeadingLevel:2,maxHeadingLevel:3}},baseUrlIssueBanner:!0,i18n:{defaultLocale:"en",locales:["en"],localeConfigs:{}},onDuplicateRoutes:"warn",staticDirectories:["static"],customFields:{},plugins:[],themes:[],titleDelimiter:"|",noIndex:!1}},723:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(7294),o=n(7462),a=n(8356),i=n.n(a);function l(e){var t=e.error,n=e.retry,o=e.pastDelay;return t?r.createElement("div",{style:{textAlign:"center",color:"#fff",backgroundColor:"#fa383e",borderColor:"#fa383e",borderStyle:"solid",borderRadius:"0.25rem",borderWidth:"1px",boxSizing:"border-box",display:"block",padding:"1rem",flex:"0 0 50%",marginLeft:"25%",marginRight:"25%",marginTop:"5rem",maxWidth:"50%",width:"100%"}},r.createElement("p",null,t.message),r.createElement("div",null,r.createElement("button",{type:"button",onClick:n},"Retry"))):o?r.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"}},r.createElement("svg",{id:"loader",style:{width:128,height:110,position:"absolute",top:"calc(100vh - 64%)"},viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",stroke:"#61dafb"},r.createElement("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)",strokeWidth:"2"},r.createElement("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0"},r.createElement("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})),r.createElement("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0"},r.createElement("animate",{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attriLine truncated
-2
View File
@@ -1,2 +0,0 @@
/*! For license information please see main.cf1e694e.js.LICENSE.txt */
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[179],{9782:function(e,t,n){"use strict";n.r(t),t.default={title:"Overextended",tagline:"Official documentation for Overextended resources",url:"https://overextended.github.io",baseUrl:"/",onBrokenLinks:"throw",onBrokenMarkdownLinks:"warn",favicon:"img/ox.ico",organizationName:"overextended",projectName:"overextended.github.io",presets:[["classic",{docs:{sidebarPath:"/home/runner/work/overextended.github.io/overextended.github.io/sidebars.js",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/"},theme:{customCss:"/home/runner/work/overextended.github.io/overextended.github.io/src/css/custom.css"}}]],themeConfig:{colorMode:{defaultMode:"dark",disableSwitch:!0,respectPrefersColorScheme:!1},navbar:{title:"Overextended",logo:{alt:"Ox Logo",src:"/img/ox_64.png",width:32,height:32},items:[{href:"https://www.github.com/overextended",label:"GitHub",position:"left"},{href:"https://www.discord.gg/overextended",label:"Discord",position:"left"},{to:"docs/",label:"Documentation",position:"right"},{type:"search",position:"right"}],hideOnScroll:!1},footer:{style:"dark",copyright:"Copyright \xa9 2022 Overextended",links:[]},prism:{theme:{plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},darkTheme:{plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:"#c5a5c5"}},{types:["attr-value"],style:{color:"#8dc891"}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:"#8dc891"}},{types:["punctuation"],style:{color:"#8dc891"}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:"#c5a5c5"}},{types:["at-rule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},additionalLanguages:["lua"]},docs:{versionPersistence:"localStorage"},metadata:[],hideableSidebar:!1,autoCollapseSidebarCategories:!1,tableOfContents:{minHeadingLevel:2,maxHeadingLevel:3}},baseUrlIssueBanner:!0,i18n:{defaultLocale:"en",locales:["en"],localeConfigs:{}},onDuplicateRoutes:"warn",staticDirectories:["static"],customFields:{},plugins:[],themes:[],titleDelimiter:"|",noIndex:!1}},723:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(7294),o=n(7462),a=n(8356),i=n.n(a);function l(e){var t=e.error,n=e.retry,o=e.pastDelay;return t?r.createElement("div",{style:{textAlign:"center",color:"#fff",backgroundColor:"#fa383e",borderColor:"#fa383e",borderStyle:"solid",borderRadius:"0.25rem",borderWidth:"1px",boxSizing:"border-box",display:"block",padding:"1rem",flex:"0 0 50%",marginLeft:"25%",marginRight:"25%",marginTop:"5rem",maxWidth:"50%",width:"100%"}},r.createElement("p",null,t.message),r.createElement("div",null,r.createElement("button",{type:"button",onClick:n},"Retry"))):o?r.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"}},r.createElement("svg",{id:"loader",style:{width:128,height:110,position:"absolute",top:"calc(100vh - 64%)"},viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",stroke:"#61dafb"},r.createElement("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)",strokeWidth:"2"},r.createElement("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0"},r.createElement("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})),r.createElement("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0"},r.createElement("animate",{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attriLine truncated
+1
View File
@@ -0,0 +1 @@
!function(){"use strict";var e,f,a,c,t,d={},n={};function r(e){var f=n[e];if(void 0!==f)return f.exports;var a=n[e]={exports:{}};return d[e].call(a.exports,a,a.exports,r),a.exports}r.m=d,e=[],r.O=function(f,a,c,t){if(!a){var d=1/0;for(u=0;u<e.length;u++){a=e[u][0],c=e[u][1],t=e[u][2];for(var n=!0,b=0;b<a.length;b++)(!1&t||d>=t)&&Object.keys(r.O).every((function(e){return r.O[e](a[b])}))?a.splice(b--,1):(n=!1,t<d&&(d=t));if(n){e.splice(u--,1);var o=c();void 0!==o&&(f=o)}}return f}t=t||0;for(var u=e.length;u>0&&e[u-1][2]>t;u--)e[u]=e[u-1];e[u]=[a,c,t]},r.n=function(e){var f=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(f,{a:f}),f},a=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(e,c){if(1&c&&(e=this(e)),8&c)return e;if("object"==typeof e&&e){if(4&c&&e.__esModule)return e;if(16&c&&"function"==typeof e.then)return e}var t=Object.create(null);r.r(t);var d={};f=f||[null,a({}),a([]),a(a)];for(var n=2&c&&e;"object"==typeof n&&!~f.indexOf(n);n=a(n))Object.getOwnPropertyNames(n).forEach((function(f){d[f]=function(){return e[f]}}));return d.default=function(){return e},r.d(t,d),t},r.d=function(e,f){for(var a in f)r.o(f,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:f[a]})},r.f={},r.e=function(e){return Promise.all(Object.keys(r.f).reduce((function(f,a){return r.f[a](e,f),f}),[]))},r.u=function(e){return"assets/js/"+({53:"935f2afb",219:"461f728c",336:"e836e7f0",361:"7d2d738e",763:"8c52c42d",992:"d65f8ccc",1339:"5d76cae1",1358:"afe7e8e5",1477:"b2f554cd",1521:"0f06fd08",1623:"0a2b764e",1800:"cfe61e10",1884:"c8b7a7b8",2017:"081aa3d8",2031:"dadefd20",2115:"99ade4d8",2202:"34a267b8",2446:"831ab327",2597:"384e58e1",3085:"1f391b9e",3120:"2c127759",3128:"2ff920a5",3149:"9a9bc35c",3218:"01e0aabd",3237:"1df93b7f",3287:"5fabe7ef",3412:"ed6cb704",3515:"3e27f708",3537:"ec013d60",3608:"9e4087bc",3656:"1efa5838",3792:"fb92962e",4270:"3a94ab6a",4434:"c2e48a87",4467:"a301658a",4571:"ddb2ec41",4677:"fe5eec09",4772:"871b43d2",4960:"a0cc59ae",5102:"bd024966",5199:"3517af41",5990:"c864612b",6090:"436dd28b",6169:"03b72f95",6193:"d4a6286b",6508:"7bd87f6f",6533:"0419c24a",6635:"b3a43e68",6661:"8c5ee32e",6901:"ecb88550",6971:"c377a04b",6995:"56163916",7008:"fd4717da",7150:"a484ef80",7309:"f402e59b",7330:"011f4266",7414:"393be207",7438:"036a6f83",7653:"27ba855c",7752:"43df4430",7835:"23a5733a",7918:"17896441",8087:"24c8c7e5",8431:"2e6924e9",8458:"ad8eebed",8552:"c038339d",8592:"3e61bb29",9008:"ea722c4f",9081:"475acb0d",9155:"d6b25613",9278:"75f8f779",9414:"5d7eb90d",9491:"adbed512",9514:"1be78505",9586:"85ef8f6b",9730:"daa8642d",9791:"1d131567",9874:"e381a92a",9945:"e36123ca"}[e]||e)+"."+{53:"e0ae19ef",138:"8c2f12a0",219:"b820160a",336:"a0b1c040",361:"c4df82e9",763:"58fbf050",992:"b0e6c86c",1339:"61479439",1358:"94cd3b99",1477:"ef5c39b9",1521:"d4ebac72",1623:"a5c99de4",1800:"ac8edef7",1884:"1244de6b",2017:"80c6d4c5",2031:"c4f33690",2115:"bf7ac38c",2202:"7c4bf082",2446:"ad1adc8e",2597:"dd2f2a42",3085:"285892b7",3120:"9472d382",3128:"de1d31ba",3149:"5f41434c",3218:"9a2e3610",3237:"1c5fe22a",3287:"e6dde9c7",3412:"d5a80d57",3515:"601e8ae3",3537:"b2c608c1",3608:"c4301948",3656:"744d862a",3792:"f659f77d",4270:"64c55818",4434:"f11c6f96",4467:"ab655b70",4571:"d45737bb",4608:"622b8e38",4677:"964da253",4772:"e785d0e5",4960:"c112455b",5102:"493b5518",5199:"529a51a0",5897:"cc508d32",5990:"ed1ec728",6090:"7851617d",6169:"1a2d33bf",6193:"082dce9f",6385:"4701e2d8",6508:"f641f65a",6533:"def12f56",6635:"deaba65f",6661:"432dafc1",6901:"c047338d",6971:"43108ef0",6995:"09d0d563",7008:"31a8476e",7150:"917e3313",7309:"d5492e0e",7330:"f863e9e9",7414:"7d8576b6",7438:"1389c135",7653:"7d791384",7752:"b00b9dea",7835:"df1e6b5a",7918:"8bdb7612",8087:"17be3cba",8431:"11e8bd4a",8458:"ce183519",8552:"f996f09e",8592:"d33acda3",9008:"cc834782",9081:"deb057d8",9155:"bde68bfc",9278:"d53a26a2",9414:"b25c8892",9491:"f84c0c4b",9514:"437ca93b",9586:"b2584bc5",9730:"d00cf7a5",9791:"d6e4c2f7",9874:"7eb8ad24",9945:"19621d8e"}[e]+".js"},r.miniCssF=function(e){},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,f){return Object.prototype.hasOwnProperty.call(e,f)},c={},t="website:",r.l=function(e,f,a,d){if(c[e])c[e].push(f);else{var n,b;if(void 0!==a)for(var o=document.getElementsByTagName("script"),u=0;u<o.length;u++){var i=o[u];if(i.getAttribute("src")==e||i.getAttribute("data-webpack")==t+a){n=i;break}}n||(b=!0,(n=document.createElement("script")).charset="utf-8",n.timeout=120,r.nc&&n.setAttribute("nonce",r.nc),n.setAttribute("data-webpack",t+a),n.src=e),c[e]=[f];var l=function(f,a){n.onerror=n.onload=null,clearTimeout(s);var t=c[e];if(delete c[e],n.parentNode&&n.parentNode.removeChild(n),t&&t.forEach((function(e){return e(a)})),f)return f(a)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=l.bind(null,n.onerror),n.onload=l.Line truncated
-1
View File
@@ -1 +0,0 @@
!function(){"use strict";var e,a,f,c,t,d={},n={};function r(e){var a=n[e];if(void 0!==a)return a.exports;var f=n[e]={exports:{}};return d[e].call(f.exports,f,f.exports,r),f.exports}r.m=d,e=[],r.O=function(a,f,c,t){if(!f){var d=1/0;for(u=0;u<e.length;u++){f=e[u][0],c=e[u][1],t=e[u][2];for(var n=!0,b=0;b<f.length;b++)(!1&t||d>=t)&&Object.keys(r.O).every((function(e){return r.O[e](f[b])}))?f.splice(b--,1):(n=!1,t<d&&(d=t));if(n){e.splice(u--,1);var o=c();void 0!==o&&(a=o)}}return a}t=t||0;for(var u=e.length;u>0&&e[u-1][2]>t;u--)e[u]=e[u-1];e[u]=[f,c,t]},r.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(a,{a:a}),a},f=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(e,c){if(1&c&&(e=this(e)),8&c)return e;if("object"==typeof e&&e){if(4&c&&e.__esModule)return e;if(16&c&&"function"==typeof e.then)return e}var t=Object.create(null);r.r(t);var d={};a=a||[null,f({}),f([]),f(f)];for(var n=2&c&&e;"object"==typeof n&&!~a.indexOf(n);n=f(n))Object.getOwnPropertyNames(n).forEach((function(a){d[a]=function(){return e[a]}}));return d.default=function(){return e},r.d(t,d),t},r.d=function(e,a){for(var f in a)r.o(a,f)&&!r.o(e,f)&&Object.defineProperty(e,f,{enumerable:!0,get:a[f]})},r.f={},r.e=function(e){return Promise.all(Object.keys(r.f).reduce((function(a,f){return r.f[f](e,a),a}),[]))},r.u=function(e){return"assets/js/"+({53:"935f2afb",219:"461f728c",336:"e836e7f0",361:"7d2d738e",763:"8c52c42d",992:"d65f8ccc",1339:"5d76cae1",1358:"afe7e8e5",1477:"b2f554cd",1521:"0f06fd08",1623:"0a2b764e",1800:"cfe61e10",1884:"c8b7a7b8",2017:"081aa3d8",2031:"dadefd20",2115:"99ade4d8",2202:"34a267b8",2446:"831ab327",2597:"384e58e1",3085:"1f391b9e",3120:"2c127759",3128:"2ff920a5",3149:"9a9bc35c",3218:"01e0aabd",3237:"1df93b7f",3287:"5fabe7ef",3412:"ed6cb704",3515:"3e27f708",3537:"ec013d60",3608:"9e4087bc",3656:"1efa5838",3792:"fb92962e",4270:"3a94ab6a",4434:"c2e48a87",4467:"a301658a",4571:"ddb2ec41",4677:"fe5eec09",4772:"871b43d2",4960:"a0cc59ae",5102:"bd024966",5199:"3517af41",5990:"c864612b",6090:"436dd28b",6169:"03b72f95",6193:"d4a6286b",6508:"7bd87f6f",6533:"0419c24a",6635:"b3a43e68",6661:"8c5ee32e",6901:"ecb88550",6971:"c377a04b",6995:"56163916",7008:"fd4717da",7150:"a484ef80",7309:"f402e59b",7330:"011f4266",7414:"393be207",7438:"036a6f83",7653:"27ba855c",7835:"23a5733a",7918:"17896441",8087:"24c8c7e5",8431:"2e6924e9",8458:"ad8eebed",8552:"c038339d",8592:"3e61bb29",9008:"ea722c4f",9081:"475acb0d",9155:"d6b25613",9278:"75f8f779",9414:"5d7eb90d",9491:"adbed512",9514:"1be78505",9586:"85ef8f6b",9730:"daa8642d",9791:"1d131567",9874:"e381a92a",9945:"e36123ca"}[e]||e)+"."+{53:"7ef753da",138:"8c2f12a0",219:"b820160a",336:"a0b1c040",361:"c4df82e9",763:"58fbf050",992:"b0e6c86c",1339:"61479439",1358:"e548efc7",1477:"ef5c39b9",1521:"d4ebac72",1623:"a5c99de4",1800:"ac8edef7",1884:"1244de6b",2017:"80c6d4c5",2031:"c4f33690",2115:"bf7ac38c",2202:"7c4bf082",2446:"ad1adc8e",2597:"dd2f2a42",3085:"285892b7",3120:"9472d382",3128:"de1d31ba",3149:"a8da96bc",3218:"9a2e3610",3237:"1c5fe22a",3287:"e6dde9c7",3412:"d5a80d57",3515:"601e8ae3",3537:"b2c608c1",3608:"c4301948",3656:"744d862a",3792:"f659f77d",4270:"64c55818",4434:"f11c6f96",4467:"ab655b70",4571:"d45737bb",4608:"622b8e38",4677:"964da253",4772:"e785d0e5",4960:"c112455b",5102:"493b5518",5199:"529a51a0",5897:"cc508d32",5990:"ed1ec728",6090:"7851617d",6169:"1a2d33bf",6193:"082dce9f",6385:"4701e2d8",6508:"f641f65a",6533:"def12f56",6635:"deaba65f",6661:"432dafc1",6901:"c047338d",6971:"43108ef0",6995:"09d0d563",7008:"31a8476e",7150:"917e3313",7309:"d5492e0e",7330:"f863e9e9",7414:"7d8576b6",7438:"1389c135",7653:"7d791384",7835:"df1e6b5a",7918:"8bdb7612",8087:"17be3cba",8431:"11e8bd4a",8458:"ce183519",8552:"f996f09e",8592:"d33acda3",9008:"cc834782",9081:"deb057d8",9155:"bde68bfc",9278:"d53a26a2",9414:"b25c8892",9491:"f84c0c4b",9514:"437ca93b",9586:"b2584bc5",9730:"d00cf7a5",9791:"d6e4c2f7",9874:"7eb8ad24",9945:"19621d8e"}[e]+".js"},r.miniCssF=function(e){},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},c={},t="website:",r.l=function(e,a,f,d){if(c[e])c[e].push(a);else{var n,b;if(void 0!==f)for(var o=document.getElementsByTagName("script"),u=0;u<o.length;u++){var i=o[u];if(i.getAttribute("src")==e||i.getAttribute("data-webpack")==t+f){n=i;break}}n||(b=!0,(n=document.createElement("script")).charset="utf-8",n.timeout=120,r.nc&&n.setAttribute("nonce",r.nc),n.setAttribute("data-webpack",t+f),n.src=e),c[e]=[a];var l=function(a,f){n.onerror=n.onload=null,clearTimeout(s);var t=c[e];if(delete c[e],n.parentNode&&n.parentNode.removeChild(n),t&&t.forEach((function(e){return e(f)})),a)return a(f)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=l.bind(null,n.onerror),n.onload=l.bind(null,n.onload),b&&document.Line truncated