# Events

## Open shop UI

<mark style="color:green;">`CLIENT`</mark>&#x20;

```lua
-- 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

<mark style="color:green;">`CLIENT`</mark> <mark style="color:green;"></mark><mark style="color:green;">/</mark> lvs\_clothing:client:openOutfit

```lua
TriggerEvent('lvs_clothing:client:openOutfit')
```

***

## Open outfit UI by sending the clothes as a parameter

<mark style="color:green;">`CLIENT`</mark> <mark style="color:green;"></mark><mark style="color:green;">/</mark> lvs\_clothing:client:loadJobOutfit

```lua
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

<mark style="color:green;">`CLIENT`</mark> <mark style="color:green;"></mark><mark style="color:green;">/</mark> lvs\_clothing:client:openOutfit

```lua
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)
```

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://fivem.lvsoft.com.ar/qb-esx/lvs-clothing/events.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
