Blacklisting

How to Blacklist Clothes / Hairstyles

Blacklisting clothes and hairstyles based on: Jobs, Gangs, ACEs, CitizenIDs

To blacklist items, add the configuration in config/blacklist.lua. Here is a simplified example:

Example:

  • Jackets: 25 (Accessible only to the "police" job)

  • Hats: 41 (Accessible only to the "ballas" gang)

  • Hair: 15 (All textures)

  • Shirts: 16 (Accessible only to the CitizenID "LVS12345")

Configuration in shared/blacklist.lua:

Config.Blacklist = {
    male = {
        hair = {
            { drawables = {15} }
        },
        components = {
            jackets = {
                { drawables = {25}, jobs = {"police"} }
            },
            shirts = {
                { drawables = {16}, citizenids = {"LVS12345"} }
            }
        },
        props = {
            hats = {
                { drawables = {41}, gangs = {"ballas"} }
            }
        }
    },
    female = {
        components = {},
        props = {}
    }
}

You can separately blacklist clothes and hairstyles for males and females.


How to Blacklist PEDs

Blacklisting PEDs based on Jobs, Gangs, ACEs.

To blacklist add the configuration to config/peds.lua. The default file contains all PEDs models without any blacklisting. Here's a simplified example:

Example:

Configuration in config/peds.lua:

Config.Peds = {
    {    // List of all PEDs accessible to everyone
        male = {...},
        female = {...},
        wild = {}
    },
    {    // List of PEDs accessible to police job
        male = {"a_f_m_beach_01", "a_f_m_bevhills_01", "a_f_m_bevhills_02"},
        jobs = {"police"}
    },
    {    // Vagos gang can access to a_f_m_bodybuild_01
        male = {"a_f_m_bodybuild_01"},
        jobs = {"vagos"}
    },
    {
        female = {"a_f_m_downtown_01"},
        aces = {"admin"}
    }
}

Last updated