NicooPasPris / nicoo_charcreator

Fivem Character Creator
47 stars 24 forks source link

Skinchanger as open above the chartcreator... | Skinchanger est ouvert au dessus du chartcreator... #22

Open SienkoV2 opened 4 years ago

SienkoV2 commented 4 years ago

How to disable the skinchanger menu Open above the chartcreator 😕 ? cq

Comment désactiver l'affichage du menu skinchanger qui est au dessus du chartcreator 😕 ?

arcadium1990 commented 4 years ago

Make sure that in the resources / esx_skin / client / main.lua file you have something similar to this (line 286 for me but it does not necessarily correspond to you):

_Assure toi que dans le fichier ressources/esxskin/client/main.lua tu ai bien quelque chose de similaire à ça (ligne 286 chez moi mais ça ne correspond pas forcément chez toi):

AddEventHandler('esx_skin:playerRegistered', function() Citizen.CreateThread(function() while not playerLoaded do Citizen.Wait(100) end

    if firstSpawn then
        ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin, jobSkin)
            if skin == nil then
                TriggerEvent('nicoo_charcreator:CharCreator')
                Citizen.Wait(100)
                skinLoaded = true
            else
                TriggerEvent('skinchanger:loadSkin', skin)
                Citizen.Wait(100)
                skinLoaded = true
            end
        end)

        firstSpawn = false
    end
end)

end)

LapinO-dev commented 4 years ago

@arcadium1990 I have that. J'ai ceci.

AddEventHandler('playerSpawned', function()

Citizen.CreateThread(function()

    while not PlayerLoaded do
        Citizen.Wait(0)
    end

    if FirstSpawn then

        ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin, jobSkin)

            if skin == nil then
                TriggerEvent('nicoo_charcreator:CharCreator')
            else
                TriggerEvent('skinchanger:loadSkin', skin)
            end

        end)

        FirstSpawn = false

    end

end)

end)

I change with your code ? Je change avec ton code ?

arcadium1990 commented 4 years ago

Ouaip ça coute rien d'essayer.

LapinO-dev commented 4 years ago

J'ai testé et pour le coup ça me fait apparaître plus aucun menu 🤔

LapinO-dev commented 4 years ago

Au pire des cas y aurait-il une possibilité que tu partages un dossier avec ton skinchanger/esx_skin et nicoo_charcreator ? Si de ton côté ça marche bien :) ?

arcadium1990 commented 4 years ago

https://wetransfer.com/downloads/802e3a0b1686cacd46c0be7aaa6190f320200821070942/17ec912f2e2a6f790747962dec1ba1bc20200821070943/ca4a10

C'est pas garanti que ça marche puisque j'ai quelques modifications mais bon, on sait jamais. (ma version ne fonctionne pas à 100%, je préfère te prévenir)

AbrahamMoody commented 3 years ago

Same issue - anyone can help? :)

AbrahamMoody commented 3 years ago

https://wetransfer.com/downloads/802e3a0b1686cacd46c0be7aaa6190f320200821070942/17ec912f2e2a6f790747962dec1ba1bc20200821070943/ca4a10

C'est pas garanti que ça marche puisque j'ai quelques modifications mais bon, on sait jamais. (ma version ne fonctionne pas à 100%, je préfère te prévenir)

Can you upload it Again?

Robinerino commented 3 years ago

Same issue here, replaced the code in the github, but it opens both character creation menu's.