boofiboi / FiveM-Discord-Presence

FiveM resource to get your server a nice customized Discord rich presence.
GNU General Public License v2.0
15 stars 6 forks source link

[BUG] Works but theres this error in the console #7

Closed operationairstrike closed 4 months ago

operationairstrike commented 4 months ago

Describe the bug [A clear and concise description of what the bug is.] [script:discord] SCRIPT ERROR: @discord/server/server.lua:8: attempt to compare string with nil

To Reproduce Steps to reproduce the behavior:

  1. Run it
  2. Look at server console

Expected behavior No errors

Framework ESX

Additional context Thanks.

boofiboi commented 4 months ago

This seems to be harmless, your server just can't download the latest VERSION file from this repo for some reason.

operationairstrike commented 4 months ago

Thanks for your response. I like my console clean yk. How could I get rid of this error?

boofiboi commented 4 months ago

I'll add in error handling so it looks clean and neat.

boofiboi commented 4 months ago

1.8 should fix it.

operationairstrike commented 4 months ago

[script:discord] Error parsing script @discord/server/server.lua in resource discord: @discord/server/server.lua:18: at line 10 not inside a loop (with v 1.8) @boofiboi

boofiboi commented 4 months ago

I installed GTA V again, ill get a FiveM server set up and fix this ASAP.

operationairstrike commented 4 months ago

Yo I recommend using the local server

boofiboi commented 4 months ago

I need to get a fiveM server running either way for my next script.

boofiboi commented 4 months ago

Final fix?

operationairstrike commented 4 months ago

Ty bro I will try it later or like in 5 mins😂

boofiboi commented 4 months ago

I take its fixed, so I'll be closing the issue

operationairstrike commented 4 months ago

I haven't tested it yet, I will reopen if it doesn't work after testing. Thanks for the fixes.