Tiles
The tiles system in 5s_skinmenu enables displaying clothing and character model thumbnails in the user interface.
Overview
Tiles are small images (thumbnails) representing various clothing elements and character models. They are used in the menu interface to visually represent available options.
Requirements
fivem-greenscreener - Script for automatic screenshot generation
Installing fivem-greenscreener
Download the
fivem-greenscreenerscript (provided with 5s_skinmenu)Place it in your server's resources folder
Add
ensure fivem-greenscreenerto server.cfgStart the server
Generating Tiles
Step 1: Starting the Process
Join the server with
fivem-greenscreenerinstalledExecute the command:
/screenshotclothesNote: The process may take several hours depending on the number of clothing items
Execute the command:
/screenshotped all(if you modified the ped list, make sure it's the same infivem-greenscreener\client.lua, lines 4-35)
Step 2: Waiting for Completion
The script will automatically cycle through all available clothing
Screenshots will be saved to
fivem-greenscreener\images\clothingYou'll receive a notification when complete
Adding Tiles
Folder Structure
tiles/
├── neutral_model_0_1.webp # Character models
├── neutral_model_0_2.webp
├── component_0_0_0.webp # Clothing components
├── component_1_0_0.webp
├── prop_0_0_0.webp # Accessories
└── ...Moving Files
After processing all screenshots
Move all .webp files to the
tiles/folderEnsure filenames remain unchanged
Finalization
Server Restart
IMPORTANT: After adding all tiles, you must restart the server twice:
First restart: Loads new tile files
Second restart: Generates and updates the
data/tiles.jsonfile
Checking tiles.json
After two restarts, check the data/tiles.json file:
{
"components": {
"0": { "max": 45 },
"1": { "max": 156 },
// ... other components
},
"props": {
"0": { "max": 142 },
"1": { "max": 35 },
// ... other props
},
"models": {
"max": 30
}
}This file contains calculated tile limits needed for proper interface display.
Troubleshooting
Tiles Not Displaying
Check file formats:
Are all files .webp?
Check filenames:
Do names follow the convention?
Are there no errors in numbering?
Check tiles.json:
Was the file generated?
Does it contain correct limits?
Console Errors
[ERROR] Missing tile: component_1_50_0.webpSolution: Add the missing tile.
Incorrect Model Tiles
Check indexing in
data/pedModels.luaEnsure filename matches the index
Verify the model exists in game
Last updated