boofiboi / FiveM-Discord-Presence

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

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

Closed operationairstrike closed 1 month ago

operationairstrike commented 1 month 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 1 month ago

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

operationairstrike commented 1 month ago

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

boofiboi commented 1 month ago

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

boofiboi commented 1 month ago

1.8 should fix it.

operationairstrike commented 1 month 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 1 month ago

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

operationairstrike commented 1 month ago

Yo I recommend using the local server

boofiboi commented 1 month ago

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

boofiboi commented 1 month ago

Final fix?

operationairstrike commented 1 month ago

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

boofiboi commented 1 month ago

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

operationairstrike commented 1 month ago

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