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.

❗ Even if you will be watching the video, make sure to read instructions below to see all necessary requirements and details.

Before you begin: Enable dangerous commands

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

It is possible you will have to enter this before each command as it will disable itself after few minutes.

Command: rcore_clothing_enable_dangerous_commands

[Step 1] Detect replace clothes

Detects replace clothes and marks them for re-processing.

Command: 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] 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.

Command: rcore_clothing_recalibrate serverId

  • serverId - You character's server ID

  • ⌛ Takes ~15 minutes

[Step 3] 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 finishing the photos, make sure to TURN OFF the rcore_clothing_for_photos and restart your game, it must not be running outside of taking photos!

  • 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.

  • ❗ Put your game into windowed mode - do not take photos in fullscreen

  • ❗ Make sure nothing on the screen is blocking the photos (turn off any crosshairs, drawtexts, nearest postal etc. that are not rendered via NUI, otherwise greenscreen test will fail)

  • ❗ If the process fails a window will show up on your screen with a link to send to us, open the link first and see what is visible in the image apart from the greenscreen. If you see anything else rendering over the greenscreen, turn it off and try running the command again.

  • ❗ Turn off shaders to make sure the photos have realistic lighting (NVE/reshade etc.), the picture in the confirm dialog should look like the following image (the hoodie should be gray, not white):

Command: 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

    • DO NOT change resolution and window size, make sure your game doesn't look squeezed/stretched or the photos will look like that too

  • ⌛ 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. Even if it fails mid-way, it picks up where it left off when started again.

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

[Step 3.5] Manual photo mode

Not all clothing is processed during step 3, 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.

Command: 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

  • ❗ Put your game into windowed mode - do not take manual photos in fullscreen

[Step 4] Final cleanup

Some clothes are just empty slots from the addon packs which result in missing photos and clothes that do not appear on the character. This step will remove them automatically.

Command: rcore_clothing_soft_blacklist_invisible serverId

  • serverId - You character's server ID

  • Please follow the same instructions as in step 3!

  • Only difference is that if you stop this command, you need to start it from the beginning

    • this isn't really a problem as it does not run long

  • ❗ Put your game into windowed mode - do not do this in fullscreen

[OPTIONAL Step 5] Use Rcore AI

Rcore AI is an optional final step in the addon process. It will do it's best to assign name and category (polo, shirt, hoodie..) to each of your addon clothing, as well as improve the color recognition.

This step is optional, you can do all of this manually and easily via admin mode in-game.

Find out more about RCore AI here.

Adding new replace/addon clothing

Upon adding new addon clothing, you need to only run steps 2, 3 and 3.5 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