Adding replace/addon clothes
Last updated
Last updated
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.
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.
To use all the commands below, you must first run this to enable them.
Command: rcore_clothing_enable_dangerous_commands
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
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
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.
❗ 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)
❗ 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. Picks up where it left off
👉 The green background will be automatically removed for you in post-processing state
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
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
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.
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.