As this is a free open-source script, there is no personal support available due to time constraints. If you require personal support, please consider using Tebex
- Event to Trigger the cutscene
TriggerEvent('cs:introCinematic:start')
- On top of qb-clothing/client/main.lua add
newCreate = false
- Replace This:
RegisterNetEvent('qb-clothes:client:CreateFirstCharacter')
AddEventHandler('qb-clothes:client:CreateFirstCharacter', function()
QBCore.Functions.GetPlayerData(function(pData)
local skin = "mp_m_freemode_01"
openMenu({
{menu = "character", label = "Character", selected = true},
{menu = "clothing", label = "Features", selected = false},
{menu = "accessoires", label = "Accessories", selected = false}
})
if pData.charinfo.gender == 1 then
skin = "mp_f_freemode_01"
end
ChangeToSkinNoUpdate(skin)
SendNUIMessage({
action = "ResetValues",
})
end)
end)
With This:
RegisterNetEvent('qb-clothes:client:CreateFirstCharacter')
AddEventHandler('qb-clothes:client:CreateFirstCharacter', function()
newCreate = true
QBCore.Functions.GetPlayerData(function(pData)
local skin = "mp_m_freemode_01"
openMenu({
{menu = "character", label = "Character", selected = true},
{menu = "clothing", label = "Features", selected = false},
{menu = "accessoires", label = "Accessories", selected = false}
})
if pData.charinfo.gender == 1 then
skin = "mp_f_freemode_01"
end
ChangeToSkinNoUpdate(skin)
SendNUIMessage({
action = "ResetValues",
})
end)
end)
- Replace This:
local function SaveSkin()
local model = GetEntityModel(PlayerPedId())
local clothing = json.encode(skinData)
TriggerServerEvent("qb-clothing:saveSkin", model, clothing)
end
With This:
local function SaveSkin()
local model = GetEntityModel(PlayerPedId())
local clothing = json.encode(skinData)
TriggerServerEvent("qb-clothing:saveSkin", model, clothing)
if newCreate then
newCreate = false
TriggerEvent('cs:introCinematic:start')
end
end
- On top of illenium-appearance/client/framework/qb/main.lua add
newCreate = false
- Go here illenium-appearance/client/framework/qb/main.lua Replace This:
RegisterNetEvent("qb-clothes:client:CreateFirstCharacter", function()
QBCore.Functions.GetPlayerData(function(pd)
PlayerData = pd
setClientParams()
InitializeCharacter(Framework.GetGender(true))
end)
end)
With This:
RegisterNetEvent("qb-clothes:client:CreateFirstCharacter", function()
newCreate = true
QBCore.Functions.GetPlayerData(function(pd)
PlayerData = pd
setClientParams()
InitializeCharacter(Framework.GetGender(true))
end)
end)
- Go here illenium-appearance/game/nui.lua Replace This:
RegisterNUICallback("appearance_save", function(appearance, cb)
cb(1)
client.wearClothes(appearance, "head")
client.wearClothes(appearance, "body")
client.wearClothes(appearance, "bottom")
client.exitPlayerCustomization(appearance)
end)
With This:
RegisterNUICallback("appearance_save", function(appearance, cb)
cb(1)
client.wearClothes(appearance, "head")
client.wearClothes(appearance, "body")
client.wearClothes(appearance, "bottom")
client.exitPlayerCustomization(appearance)
if newCreate then
newCreate = false
TriggerEvent('cs:introCinematic:start')
end
end)