Events

You can implement these events for your scripts or integrate them into others

Open shop UI

CLIENT

-- Clothing
TriggerEvent('lvs_clothing:client:OpenClothingShop')

-- Barber
TriggerEvent('lvs_clothing:client:OpenBarberShop')

-- Tattoo
TriggerEvent('lvs_clothing:client:OpenTattooShop')

-- Surgeon
TriggerEvent('lvs_clothing:client:OpenSurgeonShop')

Open player outfit UI

CLIENT / lvs_clothing:client:openOutfit

TriggerEvent('lvs_clothing:client:openOutfit')

Open outfit UI by sending the clothes as a parameter

CLIENT / lvs_clothing:client:loadJobOutfit

uniforms = {
    male = {
        {
            name = "Outfit 1",
            tags = "No tags",
            outfitData = {
                ["arms"] = {item = 1, texture = 0}, -- Arms
                ["t-shirt"] = {item = 15, texture = 0}, -- T-Shirt
                ["torso2"] = {item = 87, texture = 1}, -- Jackets
                ["vest"] = {item = 0, texture = 0}, -- Vest
                ["decals"] = {item = 0, texture = 0}, -- Decals
                ["accessory"] = {item = 0, texture = 0}, -- Neck
                ["bag"] = {item = 0, texture = 0}, -- Bag
                ["pants"] = {item = 59, texture = 0}, -- Pants
                ["shoes"] = {item = 25, texture = 0}, -- Shoes
                ["mask"] = {item = 16, texture = 1}, -- Mask
                ["hat"] = {item = 14, texture = 4}, -- Hat
                ["glass"] = {item = 0, texture = 0}, -- Glasses
                ["ear"] = {item = 0, texture = 0} -- Ear accessories
            },
            grades = {0, 1, 2, 3, 4},
        },
        ...
    },
    female = ...
}

TriggerEvent('lvs_clothing:client:openJobOutfitsMenu', uniforms.male)

Set a job uniform programmatically

CLIENT / lvs_clothing:client:openOutfit

uniform = {
    jobName = 'police',
    gender = 'male',
    label = 'custom #1',
    outfitData = {
        ["arms"] = {item = 1, texture = 0}, -- Arms
        ["t-shirt"] = {item = 15, texture = 0}, -- T-Shirt
        ["torso2"] = {item = 87, texture = 1}, -- Jackets
        ["vest"] = {item = 0, texture = 0}, -- Vest
        ["decals"] = {item = 0, texture = 0}, -- Decals
        ["accessory"] = {item = 0, texture = 0}, -- Neck
        ["bag"] = {item = 0, texture = 0}, -- Bag
        ["pants"] = {item = 59, texture = 0}, -- Pants
        ["shoes"] = {item = 25, texture = 0}, -- Shoes
        ["mask"] = {item = 16, texture = 1}, -- Mask
        ["hat"] = {item = 14, texture = 4}, -- Hat
        ["glass"] = {item = 0, texture = 0}, -- Glasses
        ["ear"] = {item = 0, texture = 0} -- Ear accessories
    },
}

TriggerEvent("lvs_clothing:client:loadJobOutfit", uniform)

Last updated