Clothing
To get the cutscene script working, you'll need to configure it with your clothing script. Below are the default setups for supported clothing scripts.
Supported clothing scripts:
Open the
main.luafile in theqb-clothing/clientfolder.Insert the following code above or below the line
local creatingCharacter = false(around line 3):
local CreateFirstCharacter = falseReplace the event
RegisterNetEvent('qb-clothes:client:CreateFirstCharacter')with the code below:
RegisterNetEvent('qb-clothes:client:CreateFirstCharacter')
AddEventHandler('qb-clothes:client:CreateFirstCharacter', function()
CreateFirstCharacter = 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
RegisterNUICallback('close', function(_, cb)with the following code:
Open the
client.luafile in theillenium-appearance/clientfolder.Replace the function
InitializeCharacter(gender, onSubmit, onCancel)with the code below:
Open the
init.jsfile in thebl_appearance/dist/clientfolder.Replace the
closeMenu()function with the code below:
Replace
exports("InitialCreation", async (cb)with the code below:
Open the
config.luafile in thecodem-appearance/sharedfolder.Replace the line
Config.OnMenuClose = function()with the code below:
Open the
editable.luafile in thecodem-appearance/clientfolder.Replace the event
RegisterNetEvent("qb-clothes:client:CreateFirstCharacter")with the code below:
Replace the event
RegisterNetEvent('qb-clothes:client:CreateFirstCharacter')with the code below:
Open the
cl_save_functions.luafile in thepure-clothing/client/functionsfolder.Insert the following code above the line containing
charactersFirstCharacter = false:
Open the
utils.luafile in theak47_qb_clothing/clientfolder.Replace the function
playCutScene()with the code below:
Last updated