📸Images

🖼️ Config.Images

This section controls how the crafting system loads and displays item images.

Config.Images = {
    globalImagesPath = 'default', -- default is "koja-crafting/web/build/images/item.format" or "nui://ox_inventory/web/build/images"
    format = 'webp' -- webp or png 
}

⚙️ Options

  • globalImagesPath Defines the global path where item images are loaded from.

    • default → Uses the built-in path:

      • koja-crafting/web/build/images/item.format

      • or nui://ox_inventory/web/build/images (when using ox_inventory).

    • You can replace 'default' with a custom path if you use your own images.

  • format Defines the file format of the images.

    • webp → Default format, optimized for performance and smaller file size.

    • png → Use this if your image pack is in PNG format.

Config.Images = {
    globalImagesPath = 'nui://ox_inventory/web/build/images',
    format = 'png'
}

This example makes the system load all item images from ox_inventory’s NUI path using PNG format.

Last updated