Adding replace/addon clothes

If you have any addon and replace clothing, you can take advantage of this feature. This feature automatically goes through all your installed clothing, marks them for re-processing, takes photos of them, and detects colors.

  • All of these commands need to be executed in the server console/txAdmin.

  • Using these command can be dangerous if you don't know what you are doing, so please read the instructions carefully.

Stages

The process of setting up addon/replace clothes consists of 5 stages.

Please read all instructions below carefully to understand each step. You can also watch the video guide if you want to see the process in action.

Before you begin: Enable dangerous commands

To use all the commands below, you must first run this to enable them.

rcore_clothing_enable_dangerous_commands

[Step 1] Detect replace clothes

Detects replace clothes and marks them for re-processing.

rcore_clothing_detect_replace_clothing

  • ❗ if you did not add any replace (not addon) clothes, you can skip this step

  • if you previously ran this command, you don't need to run it again

  • ⌛ Takes few minutes

[Step 2] Generate SHOP_PED_APPAREL_META_FILE for addon clothing

Edits SHOP_PED_APPAREL_META_FILE files of all resources that contain addon clothing to add unique hashes.

This helps in preventing item metadata from moving when you upgrade to newer Game Build or add new addon clothes.

IMPORTANT: Restart your server after running this command!

rcore_clothing_generate_addon_hashes

  • ⌛ ~1 minute

[Step 3] Recalibration of replace and addon clothes

Goes through all the clothes and searches for addons/replaces.

  • You need to join the server for this command.

  • Go to some place in-game where you have plenty of space around you, before executing this command.

  • Do not leave that place until last spawned ped disappears.

rcore_clothing_recalibrate serverId

  • serverId - You character's server ID

  • ⌛ Takes ~15 minutes

[Step 4] Final stage to take photos and detect colors

Goes through all replace and addons marked for processing, takes photos and detects colors.

Requirements:

  • Resource rcore_clothing_for_photos is required to be started for this command to work.

  • After executing it, you need to check and confirm in-game that the first photo taken looks alright.

  • You need to join the server for this command.

  • This command can take a long time to finish, depending on the amount of clothing you have.

rcore_clothing_photos serverId

  • serverId - You character's server ID

  • ❗ It is highly recommended to have graphics settings on normal or lower to prevent running out of memory and crashing the game

  • ⌛ Execution time varies based on the amount of clothing, but can reach hours

  • 👉 Can be stopped and restarted at any time, if you need to do something else. Picks up where it left off

  • 👉 The green background will be automatically removed for you in post-processing state

[Step 4.5] Manual mode

Not all clothing is processed during step 4, for example earrings & neckwear as it is either too small or can't be detected properly.

In this case you can use manual mode that features a free cam controllable with WASD and mouse to take photo of any clothes.

rcore_clothing_photos_manual serverId

  • serverId - You character's server ID

  • Use WASD & mouse to move the camera and hold SHIFT if you want to move slower

  • Position the item well for optimal photo, make sure the item is at least 300x300px (the bigger the better)

  • In case you won't see any item inside the greenscreen room, you can just press spacebar to skip it

  • Use spacebar to take a photo of the item once you are satisfied with the position and angle

  • The greenscreen is two-tone on purpose in this mode so you can find the item easily

Adding new replace/addon clothing

Upon adding new addon clothing, you need to only run steps 2, 3, and 4. If you previously ran these commands, this will only screenshot the newly added clothing.

In case of adding new replace clothing, you need to run step 1 as well.

Last updated