renzuzu / renzu_multicharacter

Fivem - ESX & QBCORE Multicharacters
GNU General Public License v3.0
57 stars 21 forks source link

Ped Headshots not loading when joining #43

Open kazimir opened 1 year ago

kazimir commented 1 year ago

Hey,

I am a little bit lost finding an issue with loading Ped Headshots. When joining the server the call to fetch the headshots will run into 404 (https://nui-img/pedmugshot_34/pedmugshot_34?1678447788944)

After doing "relog" the headshots are fine.

I guess it is some timing issue with initializing all the NUIs and the nui-img is not ready yet. Any idea how to solve this? I already tried loading the Headshots later, but did not work for me.

I am currently using qb-core, fyi,

Thanks in advance, kazimir

renzuzu commented 1 year ago

im also monitoring it, this seems your correct , this happens randomly, even in newly started client, probably have need to set a proper wait before loading NUI.

YoruNeko-707 commented 1 year ago

@kazimir did you find a good wait time or fix in general? I have the same issue or similar and starting upping the various waits in increments of 500, but I'm not sure what will really work. The only time the character shows properly is after /relog. @renzuzu would this vary from server to server or the type of server it is? any advice? Does the .js file need editing? Here's the error message: image