pedr0fontoura / fivem-appearance

👀 A flexible player customization script for FiveM.
https://forum.cfx.re/t/release-fivem-appearance/2438537
MIT License
120 stars 72 forks source link

ui error on load causes menu to not show #61

Closed DarinBeard closed 2 years ago

DarinBeard commented 2 years ago

Sometimes, (maybe 1 out of 5 times) when the resource is started, it throws an error and the menu will not show. The resource has to be restarted before it will show. see video for demo.

error: Uncaught (in promise) SyntaxError: Unexpected end of JSON input (@fivem-appearance/ui/build/index.html:1)

DarinBeard commented 2 years ago

video didn't upload correctly.

https://user-images.githubusercontent.com/793744/174836049-f0ed7f02-2a90-44cb-bbfa-f88015b06598.mp4

SpalenyBramborak commented 2 years ago

Hey mate, this caused by my mistake. This happened to me, because i made a cs.json file but i forgot to add a comma. Now if you download the latest (not release) but normal source code and make yarn build. It is fixed.

DarinBeard commented 2 years ago

Man, I have no idea how to yarn build this thing. I've never done it and I tried and I can't tell what to do with the output because it doesn't look anything like the build I downloaded.

SpalenyBramborak commented 2 years ago

fivem-appearance.zip

DarinBeard commented 2 years ago

You are the man, thank you very much.