🐼 Scripts
um-tutorial
Install

Install

  • open config.lua and configure it according to your preferences.

For new character clothing menu complete

  • If you want to trigger this when the new character's clothing menu is complete

Go to qb-clothing/client/main.lua and add the folowing line after creatingCharacter = false

local firstTutorial = false

Then replace qb-clothes:client:CreateFirstCharacter with the even provided below

RegisterNetEvent('qb-clothes:client:CreateFirstCharacter', function()
    QBCore.Functions.GetPlayerData(function(pData)
        local skin = "mp_m_freemode_01"
        openMenu({
            {menu = "character", label = Lang:t("menu.features"), selected = true},
            {menu = "hair", label = Lang:t("menu.hair"), selected = false},
            {menu = "clothing", label = Lang:t("menu.character"), selected = false},
            {menu = "accessoires", label = Lang:t("menu.accessoires"), selected = false}
        })
 
        if pData.charinfo.gender == 1 then
            skin = "mp_f_freemode_01"
        end
 
        ChangeToSkinNoUpdate(skin)
        SendNUIMessage({
            action = "ResetValues",
        })
 
        firstTutorial = true
    end)
end)

Lastly replace RegisterNUICallback('close', function(_, cb) with the one provided below

RegisterNUICallback('close', function(_, cb)
    SetNuiFocus(false, false)
    creatingCharacter = false
    disableCam()
    FreezeEntityPosition(PlayerPedId(), false)
    TriggerEvent('qb-clothing:client:onMenuClose')
    if firstTutorial then
        TriggerEvent('um-tutorial:client:openTutorial')
        firstTutorial = false
    end
    cb('ok')
end)

or add it wherever you want specially

TriggerEvent('um-tutorial:client:openTutorial')