LV Soft FiveM
  • LV SOFT
    • 👋Welcome!
    • 🛒Tebex
    • 💬Discord
  • QB/ESX
    • ☮️lvs-loading
      • Installation
      • Configuration
    • 👫lvs-multichar
      • Installation
      • Configuration
      • Adding Scenes
      • Tebex Integration
      • Commands
    • 🗺️lvs-spawnselector
      • Installation
      • Configuration
    • 🥼lvs-clothing
      • Installation
        • QBCore Install
        • ESX Install
      • Configuration
      • Migration
        • qb-clothing
        • esx-skinchanger
        • Illenium-Appareance
      • Blacklisting
      • Events
      • Commands
    • ⚙️lvs-lib
      • black-screen loading
      • notifications
      • progressbar
      • key-interaction
      • textui
      • alert
      • context menu
      • context input
    • 💬lvs-chat
      • Installation
      • Configuration
      • Events & Exports
    • 📱lvs-radio
      • Installation
      • Configuration
      • Events & Exports
    • 🗃️lvs-playerlist
      • Installation
      • Configuration
    • 📹lvs_weazelnews
      • Installation
      • Configuration
    • 🎒lvs-inventory
      • Installation
      • Configuration
      • lvs-inventory
        • exports
      • lvs-shops
        • Configuration
        • Exports
      • lvs-crafting
    • 🪪lvs-idmanager
      • Installation
      • Configuration
      • Exports
  • Standalone
    • 🚘lvs-drift
      • Installation
      • Configuration
      • Commands
    • 🕺lvs-animations
      • Installation
      • Configuration
      • Adding Animations
      • Exports/Events
    • 💥lvs-accident
      • Installation
      • Configuration
    • 🔥lvs-explosion
      • Installation
      • Configuration
    • 🏎️lvs-racing
  • ESX
    • 📅Soon
Powered by GitBook
On this page
  • Open shop UI
  • Open player outfit UI
  • Open outfit UI by sending the clothes as a parameter
  • Set a job uniform programmatically
  1. QB/ESX
  2. lvs-clothing

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)

PreviousBlacklistingNextCommands

Last updated 8 months ago

🥼