Strange server error after entering command

Hello i get this error after entering a command like “/fix” or “/time 00 00 00”

I dont know what i can do about it or how to fix it and some commands don’t work anymore.
I use the new fx server and some of the ressources from the old server model

Blockquote Error running system event handling function for resource events: citizen:/scripting/lua/scheduler.lua:39: Failed to execute thread: server.lua:18: attempt to call a nil value (method ‘Split’)
stack traceback:
server.lua:18: in function ‘stringSplit’
server.lua:6: in upvalue ‘handler’
citizen:/scripting/lua/scheduler.lua:124: in function citizen:/scripting/lua/scheduler.lua:123
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/scheduler.lua:39: in field ‘CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:123: in function citizen:/scripting/lua/scheduler.lua:92

If anyone knows what could cause the error i would appreciate this.
If questions are open just ask and i will answer them :slight_smile:

FX server doesn’t have the string.split functionality anymore. The old split function needs to be changed.

Have a look at the porting notes section of the wiki page https://wiki.fivem.net/wiki/Running_FXServer

I’m guess you have FXServer because in the error message, it says that the function “Split” is a nil method. This means that the mod is outdated and is not up to date to work on FXServer because FXServer has made it so that function is not working anymore. I recommend trying to looks for more updated scripts.

phew. so now i need to find the script that is causing it and delete it or is there another way of fixing this?

That would be the best of ideas.

For the time script I recommend to use ACL-FX

1 Like

@BlockBa5her ok the acl-fx i found puts out the same error. do you have the latest link for it?

Download: https://forum-cfx-re.akamaized.net/original/2X/d/d534f80263008bc77bc3f34457b436bbd3aa7b3b.7z

1 Like