Editable
This document covers all files in the `editable` folders that can be safely modified to customize the script for your server needs.
Overview
Files in editable folders are designed to be modified without breaking the core functionality. These files handle:
Compatibility with other scripts
Custom behaviors and checks
Database operations
UI interactions
Development tools
Client Editable Files
Located in client/editable/
compatibility.lua
Purpose: Ensures compatibility with other clothing/skin scripts like skinchanger.
Key Functions
function getClothingOptions(excludedComponents, excludedProps)
-- Gets clothing options excluding specified components/props
-- Parameters:
-- excludedComponents (table): Component IDs to exclude
-- excludedProps (table): Prop IDs to exclude
-- Returns: table with components and props
endRegistered Events
Exports
const/constants.lua
Purpose: Defines all constants and mappings used throughout the script.
Component IDs
Component Name Mapping
Props Name Mapping
Face Features
Head Overlays
Hair Decorations
Contains extensive mappings for male and female hair decorations with texture dictionaries.
devCommands.lua
Purpose: Development commands for testing and debugging (only active when debug mode is enabled).
Default Available Commands (only in debug mode)
/openskin- Opens the skin menu/closeskin- Closes the skin menu
disabledClothings.lua
Purpose: Configuration for default clothing when items are toggled off.
Structure
Configurable Items
hats
Prop
Hats and helmets
masks
Component
Face masks
glasses
Prop
Eyewear
hoodies
Component
Hoodies/torso (multi-component)
bags
Component
Backpacks and bags
pants
Component
Pants and legs
shoes
Component
Footwear
Multi-Component Items
Some items affect multiple components:
handlers.lua
Purpose: Handles menu opening/closing events and player loading.
Event Handlers
Customization Examples
Custom opening behavior:
Integration with other systems:
maskFix.lua
Purpose: Automatically adjusts facial features when wearing masks for better compatibility.
Key Features
Automatically saves face blend data when mask is equipped
Shrinks facial features to prevent clipping
Restores original features when mask is removed
Main Functions
Exports
prechecks.lua
Purpose: Validation checks before allowing menu access.
Main Function
Common Use Cases
Permission-based access:
Location-based restrictions:
State-based checks:
Server Editable Files
Located in server/editable/
database.lua
Purpose: Database operations for saving and loading skin data.
Core Functions
Last updated