thelindat / esx_multicharacter

GNU General Public License v3.0
27 stars 26 forks source link

esx_tattoosShops problem. Not saving tattoo on relog #65

Open martink1337 opened 2 years ago

martink1337 commented 2 years ago

The problem is simple, when you use the tattoo script, make your tattoos and relog the game - your tattoo is not saving. Without multicharacter is working. The problem for me is from some skin function.

martink1337 commented 2 years ago

I discovered the problem came from client : " if not isNew then TriggerEvent('skinchanger:loadSkin', skin or Characters[spawned].skin) end ". But still don't know how to fix it.

thelindat commented 2 years ago

I'd recommend https://github.com/smallo92/xnTattoos over esx_tattoosshop. As for the issue, I'll have to look into the events being used.

LoyaltyDeadShot commented 2 years ago

I'd recommend https://github.com/smallo92/xnTattoos over esx_tattoosshop. As for the issue, I'll have to look into the events being used.

I have the same issue using that tattoo shop as well

LoyaltyDeadShot commented 2 years ago

I discovered the problem came from client : " if not isNew then TriggerEvent('skinchanger:loadSkin', skin or Characters[spawned].skin) end ". But still don't know how to fix it.

any solutions ?

LoyaltyDeadShot commented 2 years ago

I discovered the problem came from client : " if not isNew then TriggerEvent('skinchanger:loadSkin', skin or Characters[spawned].skin) end ". But still don't know how to fix it.

Got it Fix Add this on the tattooshop script client side : RegisterNetEvent('esx:playerLoaded') AddEventHandler('esx:playerLoaded', function(playerData) -- Call Tattoos cb end)