Skip to content

hlmod/Shop-Core

Repository files navigation

The 🇷🇺 Russian invasion of 🇺🇦 Ukraine breaches any law, including the UN Charter. #StandWithUkraine

Status
Passive updates

Build Discord StandWithUkraine

Requirements

  • SourceMod 1.10+
  • Database section in addons/sourcemod/configs/databases.cfg For SQLite usage, shop supports MySQL and recommended to use
"shop"
{
        "driver"    "sqlite"
        "database"  "shop_core"
}

Installation

  • Extract archive from Releases page to server directory
  • (Optional) Setup sorting if you need (create a file addons/sourcemod/configs/shop/shop_sort.txt and add categories. Example:
aura
ability
stuff

Category name can be found in code of modules. Example

CategoryId:category_id = Shop_RegisterCategory("stuff", "Разное", ""); // Category unique name - stuff

or

#define CATEGORY    "aura"// Category unique name - aura

// some lines below
new CategoryId:category_id = Shop_RegisterCategory(CATEGORY, sName, sDescription); // Category name in constant CATEGORY

Useless links