[{"data":1,"prerenderedAt":486},["ShallowReactive",2],{"/docs/scripts/pets/reference/inventory-items":3,"/docs/scripts/pets/reference/inventory-items-surround":474,"/docs/scripts/pets/reference/inventory-items-implemented-suggestions":485},{"id":4,"title":5,"body":6,"description":464,"extension":465,"head":466,"implementedSuggestions":466,"meta":467,"navigation":468,"path":469,"schemaOrg":466,"seo":470,"sitemap":471,"stem":472,"__hash__":473},"docs/1.docs/scripts/5.pets/4.reference/1.inventory-items.md","Inventory items",{"type":7,"value":8,"toc":461},"minimark",[9,39,197,212,217,428,439,457],[10,11,12,13,17,18,21,22,26,27,30,31,34,35,38],"p",{},"Register these IDs in the inventory provider configured by ",[14,15,16],"code",{},"sky_base",". The supplied ",[14,19,20],{},"docs/customer/ox_inventory.lua"," is a ",[23,24,25],"strong",{},"merge template"," for the existing ",[14,28,29],{},"ox_inventory/data/items.lua"," table. Copy images from ",[14,32,33],{},"docs/inventory-images"," into ",[14,36,37],{},"ox_inventory/web/images","; do not replace the whole catalogue.",[40,41,42,58],"table",{},[43,44,45],"thead",{},[46,47,48,52,55],"tr",{},[49,50,51],"th",{},"Item ID",[49,53,54],{},"Default use",[49,56,57],{},"Consumed?",[59,60,61,75,87,100,113,126,137,148,160,171,184],"tbody",{},[46,62,63,69,72],{},[64,65,66],"td",{},[14,67,68],{},"pet_food",[64,70,71],{},"Food bowl; +20 hunger points",[64,73,74],{},"One on successful feeding",[46,76,77,82,85],{},[64,78,79],{},[14,80,81],{},"pet_food_2",[64,83,84],{},"Second food bowl; +20 hunger points",[64,86,74],{},[46,88,89,94,97],{},[64,90,91],{},[14,92,93],{},"pet_water_bottle",[64,95,96],{},"Water bowl; +10 thirst points",[64,98,99],{},"One on successful drinking",[46,101,102,107,110],{},[64,103,104],{},[14,105,106],{},"pet_treat",[64,108,109],{},"Training reward; +5 hunger points",[64,111,112],{},"One on accepted reward",[46,114,115,120,123],{},[64,116,117],{},[14,118,119],{},"pet_ball_1",[64,121,122],{},"Fetch ball",[64,124,125],{},"Reusable",[46,127,128,133,135],{},[64,129,130],{},[14,131,132],{},"pet_ball_2",[64,134,122],{},[64,136,125],{},[46,138,139,144,146],{},[64,140,141],{},[14,142,143],{},"pet_ball_3",[64,145,122],{},[64,147,125],{},[46,149,150,155,158],{},[64,151,152],{},[14,153,154],{},"pet_bone_1",[64,156,157],{},"Chewing toy",[64,159,125],{},[46,161,162,167,169],{},[64,163,164],{},[14,165,166],{},"pet_bone_2",[64,168,157],{},[64,170,125],{},[46,172,173,178,181],{},[64,174,175],{},[14,176,177],{},"pet_bandage",[64,179,180],{},"Heal a living pet by 25 life points",[64,182,183],{},"One on successful use",[46,185,186,191,194],{},[64,187,188],{},[14,189,190],{},"pet_rescue_kit",[64,192,193],{},"Rescue a dying pet before its deadline; restores 50% life",[64,195,196],{},"One on successful rescue",[10,198,199,200,203,204,207,208,211],{},"The default food, water, treat, bandage and rescue IDs are configurable under ",[14,201,202],{},"Needs",", ",[14,205,206],{},"Training"," and ",[14,209,210],{},"Health",". Shop supply entries derive these core care IDs from those settings. If you rename an item, register the new inventory ID and ensure the inventory's usable event and shop stock still match it. Ball, bone and second-food IDs come from the shipped pet-item definitions.",[213,214,216],"h2",{"id":215},"ox_inventory-example","ox_inventory example",[218,219,224],"pre",{"className":220,"code":221,"filename":29,"language":222,"meta":223,"style":223},"language-lua shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","[\"pet_treat\"] = {\n    label = \"Pet treat\", weight = 20, stack = true, close = true, consume = 0,\n    client = { event = \"sky_pets:useTreat\" },\n},\n[\"pet_food\"] = {\n    label = \"Pet food\", weight = 500, stack = true, close = true, consume = 0,\n    client = { event = \"sky_pets:useFood\", image = \"pet_food.png\" },\n},\n","lua","",[14,225,226,253,304,328,333,350,391,423],{"__ignoreMap":223},[227,228,231,235,239,242,244,247,250],"span",{"class":229,"line":230},"line",1,[227,232,234],{"class":233},"sTEyZ","[",[227,236,238],{"class":237},"sMK4o","\"",[227,240,106],{"class":241},"sfazB",[227,243,238],{"class":237},[227,245,246],{"class":233},"] ",[227,248,249],{"class":237},"=",[227,251,252],{"class":233}," {\n",[227,254,256,259,261,264,267,269,272,274,278,281,283,286,289,291,293,296,298,301],{"class":229,"line":255},2,[227,257,258],{"class":233},"    label ",[227,260,249],{"class":237},[227,262,263],{"class":237}," \"",[227,265,266],{"class":241},"Pet treat",[227,268,238],{"class":237},[227,270,271],{"class":233},", weight ",[227,273,249],{"class":237},[227,275,277],{"class":276},"sbssI"," 20",[227,279,280],{"class":233},", stack ",[227,282,249],{"class":237},[227,284,285],{"class":237}," true",[227,287,288],{"class":233},", close ",[227,290,249],{"class":237},[227,292,285],{"class":237},[227,294,295],{"class":233},", consume ",[227,297,249],{"class":237},[227,299,300],{"class":276}," 0",[227,302,303],{"class":233},",\n",[227,305,307,310,312,315,317,319,322,325],{"class":229,"line":306},3,[227,308,309],{"class":233},"    client ",[227,311,249],{"class":237},[227,313,314],{"class":233}," { event ",[227,316,249],{"class":237},[227,318,263],{"class":237},[227,320,321],{"class":241},"sky_pets:useTreat",[227,323,324],{"class":237},"\" ",[227,326,327],{"class":233},"},\n",[227,329,331],{"class":229,"line":330},4,[227,332,327],{"class":233},[227,334,336,338,340,342,344,346,348],{"class":229,"line":335},5,[227,337,234],{"class":233},[227,339,238],{"class":237},[227,341,68],{"class":241},[227,343,238],{"class":237},[227,345,246],{"class":233},[227,347,249],{"class":237},[227,349,252],{"class":233},[227,351,353,355,357,359,362,364,366,368,371,373,375,377,379,381,383,385,387,389],{"class":229,"line":352},6,[227,354,258],{"class":233},[227,356,249],{"class":237},[227,358,263],{"class":237},[227,360,361],{"class":241},"Pet food",[227,363,238],{"class":237},[227,365,271],{"class":233},[227,367,249],{"class":237},[227,369,370],{"class":276}," 500",[227,372,280],{"class":233},[227,374,249],{"class":237},[227,376,285],{"class":237},[227,378,288],{"class":233},[227,380,249],{"class":237},[227,382,285],{"class":237},[227,384,295],{"class":233},[227,386,249],{"class":237},[227,388,300],{"class":276},[227,390,303],{"class":233},[227,392,394,396,398,400,402,404,407,409,412,414,416,419,421],{"class":229,"line":393},7,[227,395,309],{"class":233},[227,397,249],{"class":237},[227,399,314],{"class":233},[227,401,249],{"class":237},[227,403,263],{"class":237},[227,405,406],{"class":241},"sky_pets:useFood",[227,408,238],{"class":237},[227,410,411],{"class":233},", image ",[227,413,249],{"class":237},[227,415,263],{"class":237},[227,417,418],{"class":241},"pet_food.png",[227,420,324],{"class":237},[227,422,327],{"class":233},[227,424,426],{"class":229,"line":425},8,[227,427,327],{"class":233},[10,429,430,431,434,435,438],{},"Keep ",[14,432,433],{},"consume = 0"," for ",[23,436,437],{},"every"," Sky Pets item, including treats and medical items. The resource validates the action and removes a consumable server-side. Setting automatic inventory consumption can remove an item before Sky Pets decides whether use is allowed. The complete item entries and image names are in the customer package template.",[10,440,441,442,445,446,451,452,456],{},"The ",[14,443,444],{},"sky_pets:use..."," client events in item definitions are item entry points, not server mutation APIs. See ",[447,448,450],"a",{"href":449},"./events","Events"," for their scope and ",[447,453,455],{"href":454},"../features/care-and-health","Care and health"," for usage conditions.",[458,459,460],"style",{},"html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}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":223,"searchDepth":230,"depth":255,"links":462},[463],{"id":215,"depth":255,"text":216},"Every core Sky Pets item ID, default use, consumption rule, and ox_inventory integration note.","md",null,{},true,"/docs/scripts/pets/reference/inventory-items",{"title":5,"description":464},{"loc":469},"1.docs/scripts/5.pets/4.reference/1.inventory-items","Dm0elr1u1v8oIo4rlKAvUuhJ5vCfpW3CnssIafEDtMA",[475,480],{"title":476,"path":477,"stem":478,"description":479,"children":-1},"Animal form","/docs/scripts/pets/features/animal-form","1.docs/scripts/5.pets/3.features/7.animal-form","Optional player transformation, access grants, safety rules, recovery, and its server exports.",{"title":481,"path":482,"stem":483,"description":484,"children":-1},"Commands and permissions","/docs/scripts/pets/reference/commands","1.docs/scripts/5.pets/4.reference/2.commands","Player controls, staff tools, configurator commands, and diagnostic permission groups.",[],1790206628126]