Skin Shops

data/skin_shops.lua

Skin shops allow you to create different shops to contain different skins, with varying access restrictors.

character_restrictors is an inline table/array of character identifiers. For QB-Core, this is your citizenid. For ESX, this is your identifier.

group_restrictors and job_restrictors are key/value pairs, where the key is the group/job name, and the value is the minimum rank required.

local skin_shops = {
    pbh_shop = {
        label = "Pillbox Skin Shop",
        coords = vector3(317.07,-587.67,43.85),
        skins = { "cheap", "basic", "average" },
        accounts = { "bank", "cash" },
    },

    police_shop = {
        label = "Pillbox Exclusive Shop",
        coords = vector3(321.00,-596.44,43.29),
        skins = { "cheap", "basic", "average", "premium" },
        accounts = { "bank", "cash" },
        job_restrictors = {
            police = 2,
        },
        group_restrictors = {
            ballas = 2,
        },
        character_restrictors = {
            "steam:11000010c0d0b9e",
        },
    }
}

Last updated