PainedPsyche / cui_character

An advanced character and clothes editor for esx framework that aims to be comfortable to use, hide complexity and blend in with original GTA V interface elements.
73 stars 48 forks source link

cannot change cloth on policejob and ambulancejob #44

Open rock2rap opened 3 years ago

rock2rap commented 3 years ago

when i've change to police uniform it's goes to naked and switch to female character

how to fix it?

astron51 commented 3 years ago

You have to modify the setUniform function of ESX_Policejob (Client Side )

Replace TriggerEvent('skinchanger:getSkin', function(skin) with TriggerEvent('cui_character:getCurrentClothes', function(skin)

and

TriggerEvent('skinchanger:loadClothes', skin, uniformObject) with TriggerEvent('cui_character:updateClothes', uniformObject, false, false)

Same goes to Ambulance and any other job that require changing worker cloth :)

Good luck.

vinny0212 commented 3 years ago

@astron51 thanks finally solved the problem!