So I’m creating a “Create a character” menu and I have clothes etc. working only I don’t really know how to get the skin of the ‘GetPlayerPed(-1)’
I need to json encode it to the database so final result should be:
{"model": "mp_m_freemode_01","ears_2":0,"arms":4,"beard_1":18,"bags_1":0,"makeup_4":0,"lipstick_3":0,"shoes_2":4,"hair_color_2":21,"beard_3":0,"helmet_2":0,"bags_2":0,"beard_4":0,"torso_2":0,"decals_2":0,"helmet_1":50,"makeup_2":0,"skin":8,"face":44,"chain_1":0,"bproof_2":0,"eyebrows_1":0,"hair_color_1":1,"decals_1":0,"shoes":35,"tshirt_1":15,"lipstick_4":0,"beard_2":10,"torso_1":125,"lipstick_2":0,"eyebrows_4":0,"glasses_1":3,"sex":0,"tshirt_2":0,"pants_1":4,"shoes_1":9,"lipstick_1":0,"makeup_1":0,"bproof_1":0,"eyebrows_2":10,"chain_2":0,"age_2":0,"makeup_3":0,"pants_2":0,"hair_2":0,"mask_1":0,"eyebrows_3":2,"hair_1":12,"glasses_2":0,"age_1":1,"ears_1":0,"mask_2":0}
Something like that.
EDIT: I’m not using ESX, I use my own framework
Hope anyone can help