From 8072728688f25a1fffdbe0257b74a5ea2f3a9b5a Mon Sep 17 00:00:00 2001 From: TheiLLeniumStudios <104288623+TheiLLeniumStudios@users.noreply.github.com> Date: Wed, 11 May 2022 18:04:52 +0000 Subject: [PATCH] Fix tattoos again --- client/backward-events.lua | 4 ++-- client/client.lua | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/client/backward-events.lua b/client/backward-events.lua index ba361c1..fd21ec7 100644 --- a/client/backward-events.lua +++ b/client/backward-events.lua @@ -136,7 +136,7 @@ end) RegisterNetEvent("qb-multicharacter:client:chooseChar", function() local ped = PlayerPedId() exports['fivem-appearance']:setPedTattoos(ped, {}) - ClearPedDecorations(ped); - + ClearPedDecorations(ped) + TriggerServerEvent("fivem-appearance:server:resetOutfitCache") end) diff --git a/client/client.lua b/client/client.lua index 267389c..40e4968 100644 --- a/client/client.lua +++ b/client/client.lua @@ -71,6 +71,10 @@ RegisterNetEvent('qb-clothes:client:CreateFirstCharacter', function() skin = "mp_f_freemode_01" end exports['fivem-appearance']:setPlayerModel(skin) + -- Fix for tattoo's appearing when creating a new character + local ped = PlayerPedId() + exports['fivem-appearance']:setPedTattoos(ped, {}) + ClearPedDecorations(ped) QBCore.Functions.TriggerCallback("QBCore:HasPermission", function(permission) local config = getConfigForPermission(permission) exports['fivem-appearance']:startPlayerCustomization(function(appearance)