[Release] FiveM To Discord

new error with the updated 1.4.0

cfx> Error loading script server/server.lua in resource DiscordBot: server/server.lua:238: attempt to call a nil value
stack traceback:
	server/server.lua:238: in function 'loadLuaFile'
	server/server.lua:243: in main chunk
Failed to load script server/server.lua.

the updated version doesnt seem to be working atm

You mean 1.4.0, right?

1 Like

Updated to v1.4.1



  • Hotfix


Download in the First Post!

@Candice_P
Please try the new version and tell me if the problem is solved.

@cTm
Did you add your webhook link in the config.lua

1 Like

@Flatracer yeah that fixed it working now. thanks :slight_smile:

Is the connecting only posted once now? After i timed out the connecting messages dont show for me in chat

1 Like

Hmm, it should be printed every time, I will check this out, give me some time

Updated to v1.4.2



  • Hotfix - # 2


Please delete any previous version and redownload this new version!

Download in the First Post!

@Flatracer yea i’m not dumb, he printed only the dead, the log in out and what i write in chat dont print on discord.

in the new version i dont see webhook started, or connecting, disconnected messages or ?

1 Like

is there a way for the discord bot to detect cheaters my server has been getting modders everyday :frowning:

@Flatracer i tested again and chat print and kills work but when join or leave in server dont print why? i put the webhook link in DiscordWebhookResourceStart.

LE: Your put in config.lua DiscordWebhookResourceStart i replace with DiscordWebhookSystemInfos and now work all. :blush:

1 Like

@Flatracer i noticed that too, the join and leave messages dont post, but still good everything else works well

@cTm yeah that fixed it

Weird, that is what I fixed with the second hotfix.

@cTm Yeah, that is why I wrote to completly remove any previous version and use the 1.4.2 Update…

hello and thank you for this wonderful bot just one question would anyone know why its not posting chat stuff?

Are you using the latest update?

yes I am using the newest update

1 Like

Try completly removing it, including the config.lua and redownloading it!

i have done that 5 times already before posting this

Are you absolutly sure you didn’t Fuck up adding your webhook link?

It gives this in the logs

InvokeNative: execution failed: type must be object, but is array
Error loading script server/server.lua in resource DiscordBot: Execution of native 000000008e8cc653 in script host failed.
stack traceback:
[C]: in upvalue ‘_in’
citizen:/scripting/lua/natives_server.lua:190: in function ‘PerformHttpRequestInternal’
citizen:/scripting/lua/scheduler.lua:233: in function ‘PerformHttpRequest’
server/server.lua:180: in main chunk
Failed to load script server/server.lua.
Started resource DiscordBot

1 Like