[{"data":1,"prerenderedAt":294},["ShallowReactive",2],{"/docs/base/codem-inventory-v2":3,"/docs/base/codem-inventory-v2-surround":280,"/docs/base/codem-inventory-v2-implemented-suggestions":293},{"id":4,"title":5,"body":6,"description":270,"extension":271,"head":272,"implementedSuggestions":272,"meta":273,"navigation":274,"path":275,"schemaOrg":272,"seo":276,"sitemap":277,"stem":278,"__hash__":279},"docs/1.docs/base/4.codem-inventory-v2.md","CodeM Inventory V2",{"type":7,"value":8,"toc":264},"minimark",[9,30,35,46,93,112,116,132,161,186,190,210,214,217,257,260],[10,11,12,13,17,18,21,22,25,26,29],"p",{},"Sky Base has a separate ",[14,15,16],"code",{},"codemv2"," adapter for ",[14,19,20],{},"codem-inventoryv2"," on ESX, QBCore and\nQbox. The older ",[14,23,24],{},"codem"," adapter remains for ",[14,27,28],{},"codem-inventory",".",[31,32,34],"h2",{"id":33},"start-order-and-selection","Start order and selection",[10,36,37,38,45],{},"Install CodeM's resources using its ",[39,40,44],"a",{"href":41,"rel":42},"https://codem.gitbook.io/codem-documentation/supreme-series/essentials/inventory/installation",[43],"nofollow","installation guide",".\nStart your framework and database connector first, followed by:",[47,48,53],"pre",{"className":49,"code":50,"language":51,"meta":52,"style":52},"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","",[14,54,55,63,69,75,81,87],{"__ignoreMap":52},[56,57,60],"span",{"class":58,"line":59},"line",1,[56,61,62],{},"ensure codem-lib\n",[56,64,66],{"class":58,"line":65},2,[56,67,68],{},"ensure codem-inventory-images\n",[56,70,72],{"class":58,"line":71},3,[56,73,74],{},"ensure codem-inventoryv2\n",[56,76,78],{"class":58,"line":77},4,[56,79,80],{},"ensure sky_base\n",[56,82,84],{"class":58,"line":83},5,[56,85,86],{},"ensure sky_jobs_base\n",[56,88,90],{"class":58,"line":89},6,[56,91,92],{},"# Your Sky job resources follow.\n",[10,94,95,96,99,100,103,104,107,108,111],{},"Do not run ",[14,97,98],{},"ox_inventory"," alongside V2: CodeM provides that compatibility name itself.\nIn ",[14,101,102],{},"sky_base/config/config.lua",", leave ",[14,105,106],{},"inventory = \"auto\""," or select\n",[14,109,110],{},"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.",[31,113,115],{"id":114},"items-and-images","Items and images",[10,117,118,119,122,123,127,128,131],{},"Select ",[120,121,20],"strong",{}," on each resource's Inventory Items page or in the\n",[39,124,126],{"href":125},"/docs/installation","setup generator",". Paste the entries inside the returned table in\n",[14,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,29],{},"The V2 templates use CodeM's documented Ox-format definitions with ",[14,136,137],{},"consume = 0","\nand no ",[14,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 ",[14,144,145],{},"CreateUsableItem"," callback is documented for items with\nno ",[14,148,141],{}," block. See ",[39,151,154],{"href":152,"rel":153},"https://codem.gitbook.io/codem-documentation/supreme-series/essentials/inventory/items/items",[43],"item definitions","\nand ",[39,157,160],{"href":158,"rel":159},"https://codem.gitbook.io/codem-documentation/supreme-series/essentials/inventory/exports/server-exports",[43],"server exports",[10,162,163,164,167,168,171,172,175,176,179,180,185],{},"Copy supplied images to ",[14,165,166],{},"codem-inventory-images/images/",", using the item name as the\nfilename. For Fire Job's ",[14,169,170],{},"hydrualic_spreader",", copy the supplied\n",[14,173,174],{},"hydraulic_spreader.png"," as ",[14,177,178],{},"hydrualic_spreader.png",".\nCodeM's ",[39,181,184],{"href":182,"rel":183},"https://codem.gitbook.io/codem-documentation/supreme-series/essentials/inventory/items/pictures",[43],"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.",[31,187,189],{"id":188},"fire-hose","Fire hose",[10,191,192,193,196,197,200,201,204,205,29],{},"Add ",[14,194,195],{},"WEAPON_SKY_HOSE"," to the existing ",[14,198,199],{},"Config.ignoreWeapons"," list in\n",[14,202,203],{},"codem-inventoryv2/shared/config.lua",", preserving its other entries. CodeM documents\nthis list as the weapons excluded from its weapon-mismatch check; see\n",[39,206,209],{"href":207,"rel":208},"https://codem.gitbook.io/codem-documentation/supreme-series/essentials/inventory/configuration/config#weapons",[43],"weapon settings",[31,211,213],{"id":212},"supported-operations-and-limits","Supported operations and limits",[10,215,216],{},"The adapter uses V2's documented exports for item and weapon operations, capacity\nchecks, slot metadata, usable items, stashes, shops, player inventory access and\nvehicle storage. Item changes emit Sky's existing inventory-update notification.",[218,219,220,228,235,250],"ul",{},[221,222,223,224,227],"li",{},"Runtime creation or reload of item definitions has no documented V2 export.\nMissing definitions must be added to ",[14,225,226],{},"data/items.lua",", followed by a restart.",[221,229,230,231,234],{},"CodeM's ",[14,232,233],{},"ClearInventory"," preserves money accounts. Clearing a stash follows that\ndocumented behavior; Sky only reports a completely empty stash after readback.",[221,236,237,238,241,242,245,246,249],{},"Vehicle reads use the documented ",[14,239,240],{},"trunk\u003Cplate>"," and ",[14,243,244],{},"glovebox\u003Cplate>"," IDs.\nAn unavailable inventory remains unavailable; it is never reported as an empty one.\nCodeM does not document a network-ID-based read resolver or whether these reads\nnormalize a plate according to ",[14,247,248],{},"Config.trimPlate"," or load unopened vehicle storage.",[221,251,252,253,256],{},"Custom image-resource settings are not exposed by a documented getter; the adapter\nuses ",[14,254,255],{},"codem-inventory-images"," for item-info image URLs.",[10,258,259],{},"These mappings are based on CodeM's published V2 documentation. In-game checks with\nan installed V2 resource on ESX and QBCore/Qbox remain required.",[261,262,263],"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":52,"searchDepth":59,"depth":65,"links":265},[266,267,268,269],{"id":33,"depth":65,"text":34},{"id":114,"depth":65,"text":115},{"id":188,"depth":65,"text":189},{"id":212,"depth":65,"text":213},"Configure CodeM Supreme Inventory V2 with Sky Base and install its item definitions.","md",null,{},true,"/docs/base/codem-inventory-v2",{"title":5,"description":270},{"loc":275},"1.docs/base/4.codem-inventory-v2","rKex07SGzWiYhuuJYwqOOG3pxeqSvpbC7H80T3hj4zM",[281,287],{"title":282,"path":283,"stem":284,"description":285,"icon":286,"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":288,"path":289,"stem":290,"description":291,"icon":292,"children":-1},"Customization","/docs/base/customization","1.docs/base/customization","The Sky Base library allows the customization of various aspects of the scripts. This documentation provides","i-lucide-puzzle",[],1790282507667]