[Free] mdm_workclothes

The mdm_workclothes script is designed to create a locker room for any job, with any number of outfits. For each outfit, you can set a minimum rank required for it to be displayed. This script allows full configuration through the config file, where you can set both the outfits and the positions of the locker rooms. There is also an option to set up a locker room for a specific vehicle with specific outfits. The script is written by default for ESX, but it is OPEN SOURCE, so you can replace functions as needed.

Config:

Config = {}


Config.CitizenWearName = 'Citizen Clothes'
Config.UniformsMenuTitle = 'Uniforms'
Config.MenuTitle = 'Dressing room'
Config.Job = {
    Police = {
        JobName = 'police',
        CitizenWear = true,
        WearingAnim = true,
        Target = {
            -- ( Coords x,y,z | Size x,y,z | Rotation r | Debug d | Distance dist | Open_label ol | Icon ic | Name n )
            { x = -338.2413, y = -251.2055, z = 32.6464, sx = 6.5, sy = 0.5, sz = 2, r = 324.1513, d = false, dist = 2.0, ol = 'Open the dressing room', ic = 'fas fa-tshirt', n = 'PoliceClothes' }
        },
        Uniforms = {
            Cadet = {
                UniformName = 'Cadet',
                MinimalGrade = 0,
                Uniform = {
                    Male = {
                        tshirt_1 = 58,
                        tshirt_2 = 0,
                        torso_1 = 316,
                        torso_2 = 3,
                        decals_1 = 0,
                        decals_2 = 0,
                        arms = 20,
                        pants_1 = 25,
                        pants_2 = 6,
                        shoes_1 = 25,
                        shoes_2 = 0,
                        helmet_1 = -1,
                        helmet_2 = 0,
                        chain_1 = 0,
                        chain_2 = 0,
                    },
                    Female = {
                        tshirt_1 = 35,
                        tshirt_2 = 0,
                        torso_1 = 48,
                        torso_2 = 3,
                        decals_1 = 0,
                        decals_2 = 0,
                        arms = 20,
                        pants_1 = 34,
                        pants_2 = 6,
                        shoes_1 = 27,
                        shoes_2 = 0,
                        helmet_1 = -1,
                        helmet_2 = 0,
                        chain_1 = 0,
                        chain_2 = 0,
                    }
                }
            }
        }
    }
}

Config.Vehicles = {
    Police = {
        JobName = 'police',
        CitizenWear = false,
        WearingAnim = true,
        Model = {
            -- ( Model m | Distance dist | Label l | Icon ic | Name n)
            { m = 'nkstx', dist = 2.0, l = 'Change your clothes', ic = 'fas fa-car', n = 'carclothing' }
        },
        Uniforms = {
            Bulletproof = {
                UniformName = 'Put on a bulletproof vest',
                MinimalGrade = 0,
                Uniform = {
                    Male = {
                        bproof_1 = 23,
                        bproof_2 = 6,
                    },
                    Female = {
                        bproof_1 = 23,
                        bproof_2 = 6,
                    }
                },
            },
            BulletproofOff = {
                UniformName = 'Take off your bulletproof vest',
                MinimalGrade = 0,
                Uniform = {
                    Male = {
                        bproof_1 = 0,
                        bproof_2 = 0,
                    },
                    Female = {
                        bproof_1 = 0,
                        bproof_2 = 0,
                    }
                },
            }
        }
    }
}

Config.Notifications = {
    NoClothesFound = 'No such outfit'
}

Config.Notification = function(title, msg, type)
    if type == 'success' then
        lib.notify({
            title = title,
            description = msg,
            position = 'top',
            type = 'success'
        })
    elseif type == 'error' then
        lib.notify({
            title = title,
            description = msg,
            position = 'top',
            type = 'error'
        })
    end
end

Tebex: Free
Preview: YouTube
Direct Download: mdm_workclothes.zip (14.9 KB)

Code is accessible Yes
Subscription-based No
Lines (approximately) ~200
Requirements skinchanger, esx_skin
Support No

My other resources:

3 Likes

qb core???

I made this only for ESX but you can easy edit it to work with QB core with replacing few functions

Can you add wearable props?

If you mean like glasses neckles or something like this, yes you can, only what you have to do is add them in config