Skip to content
This repository has been archived by the owner on Nov 27, 2022. It is now read-only.

Issue with facial hair and aging #14

Open
JohnnyHustler opened this issue Apr 15, 2020 · 3 comments
Open

Issue with facial hair and aging #14

JohnnyHustler opened this issue Apr 15, 2020 · 3 comments

Comments

@JohnnyHustler
Copy link

https://cdn.discordapp.com/attachments/697129597661085748/699447738919813150/unknown.png

It seems that I'm getting nil values with both player_data.overlays.colours[i+1].colourType and player_data.overlays.colours[i+1].colour, which is causing the error with SetPedHeadOverlayColor. Any ideas what's happening there?
This is what I have for each of my player models in the data: "overlays":{"colours":[null,{"colour":29,"colourType":1}]

Here's what I've found: the value for overlays doesn't seem to be coming in causing a nil value, which causes an issue with SetPedHeadOverlayColor (line 537 in the client.lua in fsn_clothing). The nil value knocks you out of the client.lua file completely. If I remark it out, everything loads, but my facial hair is the first color in the list - a greenish color it seems.

@iTzCrutchie
Copy link
Collaborator

Ok. I believe i have fixed this issue just doing a little more testing to see if it sticks. I have the error gone. I do not have any nulls in the db under clothing and my hair eyebrow and facial hair are all sticking including the color. I have relogged a few times and my face is also sticking

Will send you a copy of what i have for you to test and if all goes well then i will push an update with the fix.

@Maayk
Copy link

Maayk commented Jul 30, 2020

could you send me this version that is working for you to do some tests here too? I'm working hard on the base and recreating the entire character creation interface, and I have the same problem with the face / hair / makeup not saving.

@ducksdev
Copy link

Any update on this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants