For the complete documentation index, see llms.txt. This page is also available as Markdown.

Pet Shop Configuration

Integration

By default, the pet shop can be accessed from your pet bag menu. If you want to open the shop through another way, first disable the button in the config file by setting

public/config/config.lua
WantPetShopButton = false,

and then you need to trigger this event from your own script:

TriggerEvent("cdev_pets:loadShop")

Enabling Ped Shop

Modifying Shop Items

Shop items are available in cdev_pets/public/config/shop.lua

  • key - Item id (from items.lua)

    • When adding a pet entry, this id should be the same from pets.lua instead.

  • label - Only required for pet entries, otherwise automatically obtained from items.lua

  • price - Cost of the item

  • category - Item category on the shop, categories are in the config.lua file under "Shop"

  • description - Only required for pet entries, otherwise automatically obtained from items.lua

  • customization - Optional for pet entries, this pet will automatically start with this customization

    • drawables

      • ["componentId"] = drawableId

    • textures

      • ["componentId"] = textureId

  • vip - If true and if VIP enabled in the config, item will have golden highlight and only be purchaseable if has VIP status

  • canBeK9 - Determines if a pet is eligible to be bought as K9

Last updated