[{"data":1,"prerenderedAt":256},["ShallowReactive",2],{"/docs/base/codem-inventory-v2":3,"/docs/base/codem-inventory-v2-surround":242,"/docs/base/codem-inventory-v2-implemented-suggestions":255},{"id":4,"title":5,"body":6,"description":232,"extension":233,"head":234,"implementedSuggestions":234,"meta":235,"navigation":236,"path":237,"schemaOrg":234,"seo":238,"sitemap":239,"stem":240,"__hash__":241},"docs/1.docs/base/4.codem-inventory-v2.md","CodeM Inventory V2",{"type":7,"value":8,"toc":226},"minimark",[9,31,36,47,94,113,117,132,162,187,191,211,215,222],[10,11,12,13,17,18,22,23,26,27,30],"p",{},"Use this page only if your server runs ",[14,15,16],"strong",{},"CodeM Supreme Inventory V2","\n(",[19,20,21],"code",{},"codem-inventoryv2","). Sky Base detects it automatically on ESX, QBCore and Qbox;\nno custom adapter installation is needed. These steps prepare its items, images\nand start order. The older ",[19,24,25],{},"codem-inventory"," uses the separate ",[19,28,29],{},"codem"," adapter.",[32,33,35],"h2",{"id":34},"start-order-and-selection","Start order and selection",[10,37,38,39,46],{},"Install CodeM's resources using its ",[40,41,45],"a",{"href":42,"rel":43},"https://codem.gitbook.io/codem-documentation/supreme-series/essentials/inventory-aio/installation",[44],"nofollow","installation guide",".\nStart your framework and database connector first, followed by:",[48,49,54],"pre",{"className":50,"code":51,"language":52,"meta":53,"style":53},"language-cfg shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","ensure codem-lib\nensure codem-inventory-images\nensure codem-inventoryv2\nensure sky_base\nensure sky_jobs_base\n# Your Sky job resources follow.\n","cfg","",[19,55,56,64,70,76,82,88],{"__ignoreMap":53},[57,58,61],"span",{"class":59,"line":60},"line",1,[57,62,63],{},"ensure codem-lib\n",[57,65,67],{"class":59,"line":66},2,[57,68,69],{},"ensure codem-inventory-images\n",[57,71,73],{"class":59,"line":72},3,[57,74,75],{},"ensure codem-inventoryv2\n",[57,77,79],{"class":59,"line":78},4,[57,80,81],{},"ensure sky_base\n",[57,83,85],{"class":59,"line":84},5,[57,86,87],{},"ensure sky_jobs_base\n",[57,89,91],{"class":59,"line":90},6,[57,92,93],{},"# Your Sky job resources follow.\n",[10,95,96,97,100,101,104,105,108,109,112],{},"Do not run ",[19,98,99],{},"ox_inventory"," alongside V2: CodeM provides that compatibility name itself.\nIn ",[19,102,103],{},"sky_base/config/config.lua",", leave ",[19,106,107],{},"inventory = \"auto\""," or select\n",[19,110,111],{},"inventory = \"codemv2\"",". Auto detection checks the real V2 resource before the Ox\ncompatibility name. This is a startup setting; restart Sky resources after changing it.",[32,114,116],{"id":115},"items-and-images","Items and images",[10,118,119,120,122,123,127,128,131],{},"Select ",[14,121,21],{}," on each resource's Inventory Items page or in the\n",[40,124,126],{"href":125},"/docs/installation","setup generator",". Paste the entries inside the returned table in\n",[19,129,130],{},"codem-inventoryv2/data/items.lua",", then restart the inventory and the Sky resources\nin their normal start order so usable items are registered again. Keep configured Sky\nitem names aligned with those entries.",[10,133,134,135,138,139,142,143,146,147,149,150,155,156,161],{},"The V2 templates use CodeM's documented Ox-format definitions with ",[19,136,137],{},"consume = 0","\nand no ",[19,140,141],{},"client"," block. Sky resources register the use callbacks and remove consumed\nitems at the appropriate point in their own actions. CodeM otherwise defaults to\nconsuming one item, and its ",[19,144,145],{},"CreateUsableItem"," callback is documented for items with\nno ",[19,148,141],{}," block. See ",[40,151,154],{"href":152,"rel":153},"https://codem.gitbook.io/codem-documentation/supreme-series/essentials/inventory-aio/items/items",[44],"item definitions","\nand ",[40,157,160],{"href":158,"rel":159},"https://codem.gitbook.io/codem-documentation/supreme-series/essentials/inventory-aio/exports/server-exports",[44],"server exports",".",[10,163,164,165,168,169,172,173,176,177,180,181,186],{},"Copy supplied images to ",[19,166,167],{},"codem-inventory-images/images/",", using the item name as the\nfilename. For Fire Job's ",[19,170,171],{},"hydrualic_spreader",", copy the supplied\n",[19,174,175],{},"hydraulic_spreader.png"," as ",[19,178,179],{},"hydrualic_spreader.png",".\nCodeM's ",[40,182,185],{"href":183,"rel":184},"https://codem.gitbook.io/codem-documentation/supreme-series/essentials/inventory-aio/items/pictures",[44],"picture documentation","\ndescribes its separate image resource and optional custom paths. Sky Base's item-info\nimage URL uses that default resource; if you use custom image hosting, configure the\nmatching Jobs Base NUI image sources.",[32,188,190],{"id":189},"fire-job-only","Fire Job only",[10,192,193,194,197,198,201,202,205,206,161],{},"Add ",[19,195,196],{},"WEAPON_SKY_HOSE"," to the existing ",[19,199,200],{},"Config.ignoreWeapons"," list in\n",[19,203,204],{},"codem-inventoryv2/shared/config.lua",", preserving its other entries. CodeM documents\nthis list as the weapons excluded from its weapon-mismatch check; see\n",[40,207,210],{"href":208,"rel":209},"https://codem.gitbook.io/codem-documentation/supreme-series/essentials/inventory-aio/configuration/config#weapons",[44],"weapon settings",[32,212,214],{"id":213},"check-the-setup","Check the setup",[10,216,217,218,221],{},"Restart in the order above, then test a Sky usable item and confirm its image and\nconsumption behavior. Items must already exist in ",[19,219,220],{},"data/items.lua","; adding them\nrequires an inventory restart. Verify item metadata and stash behavior with your\ninstalled V2 version before distributing unique documents or containers.",[223,224,225],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":53,"searchDepth":60,"depth":66,"links":227},[228,229,230,231],{"id":34,"depth":66,"text":35},{"id":115,"depth":66,"text":116},{"id":189,"depth":66,"text":190},{"id":213,"depth":66,"text":214},"Configure CodeM Supreme Inventory V2 with Sky Base and install its item definitions.","md",null,{},true,"/docs/base/codem-inventory-v2",{"title":5,"description":232},{"loc":237},"1.docs/base/4.codem-inventory-v2","4Z1U7FxQbozRLfAcAUyYoyeRoiVVa1Ba-wsOhVcoJBc",[243,249],{"title":244,"path":245,"stem":246,"description":247,"icon":248,"children":-1},"UI integrations","/docs/base/ui-integrations","1.docs/base/3.ui-integrations","Choose notification, interaction-prompt and progress providers for Sky Base and the Sky resources that use them.","i-lucide-panels-top-left",{"title":250,"path":251,"stem":252,"description":253,"icon":254,"children":-1},"Customization","/docs/base/customization","1.docs/base/customization","Configure Sky Base interfaces and use inventory images in Sky resources.","i-lucide-puzzle",[],1791325890853]