👔 NPC Clothes
Documentation relating to the jo_clothingstore_npc add-on for Clothing store script.
1. Installation
WARNING
Clothing store script is required to use this add-on
To install jo_clothingstore_npc:
- Drag and drop the resource into your resources folder
- jo_clothingstore_npc
- Add this ensure in your server.cfg after
ensure jo_clothingstoreensure jo_clothingstore_npc
Congratulation, the NPC Clothes add-on is ready to be used!
2. Usage
The scripts add a new intermediate menu in the store which allow you to choose between Classic Clothes or NPC Clothes. NPC clothing categories share some categories with classic clothes, but there are also many new categories.
3. Number of clothes
The add-on adds NaN unique clothes (NaN variations):
- NaN unique clothes for male (NaN variations)
- NaN unique clothes for female (NaN variations)
Here are charts of the number of clothes by categories:
Unique clothes by categories (NaN)
All colors variations by categories (NaN)
4. Configuration
The configuration file is config.lua in the resource root. Do not edit this file directly as your changes may be lost during updates. Instead, use overwriteConfig.lua to store your customizations.
config.lua- Default configuration maintained by developers. Do not modify this file.overwriteConfig.lua- This is where you place only the values you want to override.
How to customize the configuration
- Open
/overwriteConfig.lua - Find the value you want to change in
config.lua(e.g.,Config.language) - Copy only that line into
overwriteConfig.lua - Edit the copied value to your liking
The script loads config.lua first, then overwriteConfig.lua overwrites only the values you redefine. This ensures your customizations are preserved when updating the script.
Language Configuration
The script supports full translation through the language system. To override any text:
- Find the key you want to change in
config/_default.lock/lang.lua - Copy
lang.luatoconfig/custom/and add only the keys you want to override
Example:
Lang.npcCategoryName = "Одежда NPC"
Lang.bodyPartsMenuTitle = "Исправить части телa"
Lang.upperBody = "Верхняя часть тела"Available translation categories include:
- General UI & Common Terms
- NPC clothes categories names
💡Only change the key you need to translate
You only need to include the specific keys you want to change in config/custom/lang.lua. Don't copy the entire language file if you don't need to.