Browse docs

Inventory items

Every core Sky Pets item ID, default use, consumption rule, and ox_inventory integration note.

Register these IDs in the inventory provider configured by sky_base. The supplied docs/customer/ox_inventory.lua is a merge template for the existing ox_inventory/data/items.lua table. Copy images from docs/inventory-images into ox_inventory/web/images; do not replace the whole catalogue.

Item IDDefault useConsumed?
pet_foodFood bowl; +20 hunger pointsOne on successful feeding
pet_food_2Second food bowl; +20 hunger pointsOne on successful feeding
pet_water_bottleWater bowl; +10 thirst pointsOne on successful drinking
pet_treatTraining reward; +5 hunger pointsOne on accepted reward
pet_ball_1Fetch ballReusable
pet_ball_2Fetch ballReusable
pet_ball_3Fetch ballReusable
pet_bone_1Chewing toyReusable
pet_bone_2Chewing toyReusable
pet_bandageHeal a living pet by 25 life pointsOne on successful use
pet_rescue_kitRescue a dying pet before its deadline; restores 50% lifeOne on successful rescue

The default food, water, treat, bandage and rescue IDs are configurable under Needs, Training and 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.

ox_inventory example

ox_inventory/data/items.lua
["pet_treat"] = {
    label = "Pet treat", weight = 20, stack = true, close = true, consume = 0,
    client = { event = "sky_pets:useTreat" },
},
["pet_food"] = {
    label = "Pet food", weight = 500, stack = true, close = true, consume = 0,
    client = { event = "sky_pets:useFood", image = "pet_food.png" },
},

Keep consume = 0 for 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.

The sky_pets:use... client events in item definitions are item entry points, not server mutation APIs. See Events for their scope and Care and health for usage conditions.