mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-02 06:28:54 +00:00
1 line
3.9 KiB
JavaScript
1 line
3.9 KiB
JavaScript
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3964],{3905:function(e,n,t){t.d(n,{Zo:function(){return p},kt:function(){return f}});var r=t(7294);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function c(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach((function(n){o(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function a(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var u=r.createContext({}),s=function(e){var n=r.useContext(u),t=n;return e&&(t="function"==typeof e?e(n):c(c({},n),e)),t},p=function(e){var n=s(e.components);return r.createElement(u.Provider,{value:n},e.children)},l={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},v=r.forwardRef((function(e,n){var t=e.components,o=e.mdxType,i=e.originalType,u=e.parentName,p=a(e,["components","mdxType","originalType","parentName"]),v=s(t),f=o,m=v["".concat(u,".").concat(f)]||v[f]||l[f]||i;return t?r.createElement(m,c(c({ref:n},p),{},{components:t})):r.createElement(m,c({ref:n},p))}));function f(e,n){var t=arguments,o=n&&n.mdxType;if("string"==typeof e||o){var i=t.length,c=new Array(i);c[0]=v;var a={};for(var u in n)hasOwnProperty.call(n,u)&&(a[u]=n[u]);a.originalType=e,a.mdxType="string"==typeof e?e:o,c[1]=a;for(var s=2;s<i;s++)c[s]=t[s];return r.createElement.apply(null,c)}return r.createElement.apply(null,t)}v.displayName="MDXCreateElement"},4168:function(e,n,t){t.r(n),t.d(n,{frontMatter:function(){return a},contentTitle:function(){return u},metadata:function(){return s},assets:function(){return p},toc:function(){return l},default:function(){return f}});var r=t(7462),o=t(3366),i=(t(7294),t(3905)),c=["components"],a={},u=void 0,s={unversionedId:"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.",source:"@site/docs/ox_inventory/Functions/External/Server/Inventory/CustomDrop.md",sourceDirName:"ox_inventory/Functions/External/Server/Inventory",slug:"/ox_inventory/Functions/External/Server/Inventory/CustomDrop",permalink:"/docs/ox_inventory/Functions/External/Server/Inventory/CustomDrop",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_inventory/Functions/External/Server/Inventory/CustomDrop.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"ConvertItems",permalink:"/docs/ox_inventory/Functions/External/Server/Inventory/ConvertItems"},next:{title:"GetCurrentWeapon",permalink:"/docs/ox_inventory/Functions/External/Server/Inventory/GetCurrentWeapon"}},p={},l=[],v={toc:l};function f(e){var n=e.components,t=(0,o.Z)(e,c);return(0,i.kt)("wrapper",(0,r.Z)({},v,t,{components:n,mdxType:"MDXLayout"}),(0,i.kt)("p",null,"Creates an inventory drop at the specified coords."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-lua"},"-- prefix: string\n-- items: table\n-- coords: vector3\n-- slots: number\n-- maxWeight: number\n-- instance: ? (optional)\nexports.ox_inventory:CustomDrop(prefix, item, coords, slots, maxWeight, instance)\n")))}f.isMDXComponent=!0}}]); |