DRS Staff Clothes

A staff veste a farda com um comando e volta à roupa que tinha com o mesmo comando.

v1.9.8 QBCore drs_staffclothes
Ver na loja

A staff veste a farda com um comando e volta à roupa que tinha com o mesmo comando. Fardas separadas para personagens masculinas e femininas.

#Requisitos

RecursoObrigatório
qb-coreSim

#Instalação

server.cfg
ensure qb-core
ensure drs_staffclothes

#Utilização

/roupastaff ou /staffclothes — veste a farda. O mesmo comando repõe a roupa original.

Só podem usar as permissões QBCore em Config.Permissions (por defeito god, admin, mod).

#Definir a farda

A farda está em Config.Outfits.male e Config.Outfits.female. Cada peça tem o item (drawable) e a texture:

config.lua
['torso2'] = { item = 545, texture = 1 },
['pants']  = { item = 47,  texture = 0 },
['hat']    = { item = -1,  texture = 0 },   -- nos acessórios, -1 remove a peça

Dica

Para descobrir os números: veste a roupa na loja de roupa do servidor e anota o número e a textura de cada peça (camisola, calças, sapatos…).

#Configuração completa

config.lua
Config = {}

-- Idioma / Language: 'pt' ou 'en'
Config.Locale = 'pt'

-- Comandos / Commands
Config.Commands = { 'roupastaff', 'staffclothes' }

-- Permissões QBCore que podem usar / QBCore permissions allowed to use it
Config.Permissions = { 'god', 'admin', 'mod' }

-- Roupa de staff. item = drawable, texture = textura. Nos acessórios (props), item = -1 remove-o.
-- Staff outfit. item = drawable, texture = texture. For props, item = -1 removes it.
Config.Outfits = {
    male = {
        ['mask']      = { item = 0,   texture = 0 },
        ['arms']      = { item = 172, texture = 0 },
        ['pants']     = { item = 47,  texture = 0 },
        ['bag']       = { item = 0,   texture = 0 },
        ['shoes']     = { item = 25,  texture = 0 },
        ['accessory'] = { item = 15,  texture = 0 },
        ['t-shirt']   = { item = 15,  texture = 0 },
        ['vest']      = { item = 0,   texture = 0 },
        ['decals']    = { item = 0,   texture = 0 },
        ['torso2']    = { item = 545, texture = 1 },
        ['hat']       = { item = -1,  texture = 0 },
        ['glass']     = { item = 0,   texture = 0 },
        ['ear']       = { item = -1,  texture = 0 },
        ['watch']     = { item = -1,  texture = 0 },
        ['bracelet']  = { item = -1,  texture = 0 },
    },
    female = {
        ['mask']      = { item = 0,   texture = 0 },
        ['arms']      = { item = 14,  texture = 0 },
        ['pants']     = { item = 49,  texture = 0 },
        ['bag']       = { item = 0,   texture = 0 },
        ['shoes']     = { item = 26,  texture = 0 },
        ['accessory'] = { item = 0,   texture = 0 },
        ['t-shirt']   = { item = 14,  texture = 0 },
        ['vest']      = { item = 0,   texture = 0 },
        ['decals']    = { item = 0,   texture = 0 },
        ['torso2']    = { item = 574, texture = 0 },
        ['hat']       = { item = -1,  texture = 0 },
        ['glass']     = { item = -1,  texture = 0 },
        ['ear']       = { item = -1,  texture = 0 },
        ['watch']     = { item = -1,  texture = 0 },
        ['bracelet']  = { item = -1,  texture = 0 },
    },
}