How to define/change default Prisoner outfits?

Overview

  • This guide will walk you through the process of customizing prisoner outfits.

Prisoner outfits were configured on server without any addon clothing!

Guide:

  • This structure is our custom one to handle multiple clothing resources in one structure!

  • To adjust your prison outfits for your clothing script, follow the steps below:

  1. Open the outfits file

    • Navigate to the directory where the outfits.lua file is located: rcore_prison/outfits.lua.

    • Open outfits.lua in a text editor of your choice.


Outfits = {
    male = {
        { componentId = CLOTHING_COMPONENTS.SHIRT,      drawableId = 15,                         textureId = 0 },
        { componentId = CLOTHING_COMPONENTS.BODY,       drawableId = 238,                        textureId = 0 },
        { componentId = CLOTHING_COMPONENTS.BODY_ARMOR, drawableId = 0,                          textureId = 0 },
        { componentId = CLOTHING_COMPONENTS.DECALS,     drawableId = 0,                          textureId = 0 },
        { componentId = CLOTHING_COMPONENTS.ARMS,       drawableId = 15,                         textureId = 0 },
        { componentId = CLOTHING_COMPONENTS.PANTS,      drawableId = 64,                         textureId = 4 },
        { componentId = CLOTHING_COMPONENTS.SHOES,      drawableId = 27,                         textureId = 0 },
        { componentId = CLOTHING_COMPONENTS.BAGS_AND_PARACHUTE,      drawableId =  DRAWABLE.NONE,                         textureId = 0 },
        { componentId = CLOTHING_COMPONENTS.MASKS,      drawableId =  DRAWABLE.NONE,                         textureId = 0 },
        { isProp = true,                                componentId = PROP_COMPONENTS.HATS,      drawableId = DRAWABLE.NONE, textureId = 0 },
        { isProp = true,                                componentId = CLOTHING_COMPONENTS.MASKS, drawableId = DRAWABLE.NONE,             textureId = 0 },
        { isProp = true,                                componentId = PROP_COMPONENTS.EARS,      drawableId = DRAWABLE.NONE,             textureId = 0 },
        { isProp = true,                                componentId = PROP_COMPONENTS.WATCHES,   drawableId = DRAWABLE.NONE,             textureId = 0 },
        { isProp = true,                                componentId = PROP_COMPONENTS.BRACELETS, drawableId = DRAWABLE.NONE,             textureId = 0 },
    },
    female = {
        { componentId = CLOTHING_COMPONENTS.SHIRT,      drawableId = 15,                         textureId = 0 },
        { componentId = CLOTHING_COMPONENTS.BODY,       drawableId = 23,                         textureId = 0 },
        { componentId = CLOTHING_COMPONENTS.DECALS,     drawableId = 0,                          textureId = 0 },
        { componentId = CLOTHING_COMPONENTS.BODY_ARMOR, drawableId = 0,                          textureId = 0 },
        { componentId = CLOTHING_COMPONENTS.ARMS,       drawableId = 12,                         textureId = 0 },
        { componentId = CLOTHING_COMPONENTS.PANTS,      drawableId = 58,                         textureId = 1 },
        { componentId = CLOTHING_COMPONENTS.SHOES,      drawableId = 27,                         textureId = 0 },
        { isProp = true,                                componentId = PROP_COMPONENTS.HATS,      drawableId = DRAWABLE.NONE, textureId = 0 },
        { isProp = true,                                componentId = CLOTHING_COMPONENTS.MASKS, drawableId = DRAWABLE.NONE,             textureId = 0 },
        { isProp = true,                                componentId = PROP_COMPONENTS.EARS,      drawableId = DRAWABLE.NONE,             textureId = 0 },
        { isProp = true,                                componentId = PROP_COMPONENTS.WATCHES,   drawableId = DRAWABLE.NONE,             textureId = 0 },
        { isProp = true,                                componentId = PROP_COMPONENTS.BRACELETS, drawableId = DRAWABLE.NONE,             textureId = 0 },
    }
}
  1. Customize the Values

  • In this case adjust only drawableId which has number and textureId if needed!

  • To understand the numbers better, refer to the clothing index here: RAGE MP Clothes: link

  • Note that you might need to find proper values on your server, especially if you have custom addon clothing that changes the default IDs.

  1. Enjoy your prisoner outfit!

Last updated