Getting errors with esx stuff on server

Just started making a server and while adding the esx stuff i ran into an issue where esx isn’t working for me.
This is my console

INFO: No channel links found in configuration file.
Resolved live-internal.fivem.net:30110 to 178.32.9.100:30110
Found new resource async in C:/FXServer/resources//async
Found new resource cron in C:/FXServer/resources//cron
Found new resource esplugin_mysql in C:/FXServer/resources//esplugin_mysql
Found new resource essentialmode in C:/FXServer/resources//essentialmode
Found new resource esx_menu_default in C:/FXServer/resources//esx_menu_default
Found new resource esx_menu_dialog in C:/FXServer/resources//esx_menu_dialog
Found new resource esx_menu_list in C:/FXServer/resources//esx_menu_list
Found new resource es_extended in C:/FXServer/resources//es_extended
Found new resource fivem in C:/FXServer/resources//fivem
Found new resource fivem-awesome1501 in C:/FXServer/resources//fivem-awesome1501
Found new resource fivem-map-hipster in C:/FXServer/resources//fivem-map-hipster
Found new resource fivem-map-skater in C:/FXServer/resources//fivem-map-skater
Found new resource i8 in C:/FXServer/resources//i8
Found new resource mysql-async in C:/FXServer/resources//mysql-async
Found new resource P1 in C:/FXServer/resources//P1
Found new resource runcode in C:/FXServer/resources//runcode
Found new resource Senna in C:/FXServer/resources//Senna
Found new resource skinchanger in C:/FXServer/resources//skinchanger
Found new resource vMenu in C:/FXServer/resources//vMenu
Found new resource Wraith in C:/FXServer/resources//Wraith
Found new resource esx_addonaccount in C:/FXServer/resources//[essential]/esx_addonaccount
Found new resource esx_addoninventory in C:/FXServer/resources//[essential]/esx_addoninventory
Found new resource esx_billing in C:/FXServer/resources//[essential]/esx_billing
Found new resource esx_datastore in C:/FXServer/resources//[essential]/esx_datastore
Found new resource esx_identity in C:/FXServer/resources//[essential]/esx_identity
Found new resource esx_license in C:/FXServer/resources//[essential]/esx_license
Found new resource esx_policejob in C:/FXServer/resources//[essential]/esx_policejob
Found new resource esx_society in C:/FXServer/resources//[essential]/esx_society
Found new resource es_admin2 in C:/FXServer/resources//[essential]/es_admin2
Found new resource race in C:/FXServer/resources//[gamemodes]/race
Found new resource race-test in C:/FXServer/resources//[gamemodes]/race-test
Found new resource channelfeed in C:/FXServer/resources//[gameplay]/channelfeed
Found new resource irc in C:/FXServer/resources//[gameplay]/irc
Found new resource obituary in C:/FXServer/resources//[gameplay]/obituary
Found new resource obituary-deaths in C:/FXServer/resources//[gameplay]/obituary-deaths
Found new resource playernames in C:/FXServer/resources//[gameplay]/playernames
Found new resource mapmanager in C:/FXServer/resources//[managers]/mapmanager
Found new resource baseevents in C:/FXServer/resources//[system]/baseevents
Found new resource chat in C:/FXServer/resources//[system]/chat
Found new resource hardcap in C:/FXServer/resources//[system]/hardcap
Found new resource ■■■■■■■ in C:/FXServer/resources//[system]/■■■■■■■
Found new resource scoreboard in C:/FXServer/resources//[system]/scoreboard
Found new resource sessionmanager in C:/FXServer/resources//[system]/sessionmanager
Found new resource spawnmanager in C:/FXServer/resources//[system]/spawnmanager
Found new resource betaguns in C:/FXServer/resources//[test]/betaguns
Found new resource gameInit in C:/FXServer/resources//[test]/gameInit
Found new resource keks in C:/FXServer/resources//[test]/keks
Found new resource yarn in C:/FXServer/resources//[system]/[builders]/yarn
Started resource sessionmanager
Loaded vMenuServer.net, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null into ScriptDomain_1098965957
Instantiated instance of script GHMatti.Http.RequestInternal.
Instantiated instance of script GHMatti.Http.Request.
Instantiated instance of script vMenuServer.BanManager.
Loaded Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed into ScriptDomain_1098965957
Instantiated instance of script vMenuServer.MainServer.
Instantiated instance of script vMenuServer.UpdateChecker.
Started resource vMenu
Loaded MySQLAsync.net, Version=2.0.2.0, Culture=neutral, PublicKeyToken=null into ScriptDomain_1044516246
Instantiated instance of script MySQLAsync.MySQLAsync.
Started resource mysql-async
Started resource essentialmode
Started resource esplugin_mysql
Started resource es_admin2
Started resource async
Started resource baseevents
Started resource es_extended
Started resource esx_identity
Started resource cron
Started resource esx_addonaccount
Started resource esx_society
Started resource esx_billing
Started resource esx_policejob
Started resource esx_addoninventory
Started resource esx_datastore
Started resource esx_license
Started resource mapmanager
Started resource chat
Started resource spawnmanager
Started gametype Freeroam
Started resource fivem
Started resource hardcap
Started resource ■■■■■■■
Started resource scoreboard
Started resource playernames
Started resource i8
Started resource Wraith
Started resource Senna
Started resource P1
Authenticating server license key…
Server license key autcfx> hentication succeeded. Welcome!
Sending heartbeat to live-internal.fivem.net:30110

Current version: 5.0.3
Updater version: 5.0.3

Everything is fine!

Started map fivem-map-skater
Started resource fivem-map-skater
InvokeNative: execution failed: Argument at index 1 was null.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.ArgumentException: Value does not fall within the expected range.

Server stack trace:
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR (System.Int32 errorCode) [0x0000a] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at (wrapper cominterop) CitizenFX.Core.IScriptHost:InvokeNative (CitizenFX.Core.fxScriptContext&)
at (wrapper cominterop-invoke) CitizenFX.Core.IScriptHost:InvokeNative (CitizenFX.Core.fxScriptContext&)
at CitizenFX.Core.MonoScriptRuntime+WrapScriptHost.InvokeNative (CitizenFX.Core.fxScriptContext& context) [0x00000] in C:\gl\builds\4ff63adb\0\cfx\fivem\code\client\clrcore\MonoScriptRuntime.cs:254
at (wrapper remoting-invoke-with-check) CitizenFX.Core.MonoScriptRuntime+WrapScriptHost:InvokeNative (CitizenFX.Core.fxScriptContext&)
at (wrapper xdomain-dispatch) CitizenFX.Core.MonoScriptRuntime+WrapScriptHost:InvokeNative (object,byte[]&,byte[]&)

Exception rethrown at [0]:
at (wrapper xdomain-invoke) CitizenFX.Core.MonoScriptRuntime+WrapScriptHost:InvokeNative (CitizenFX.Core.fxScriptContext&)
at CitizenFX.Core.ScriptContext.InvokeInternal (System.UInt64 nativeIdentifier, CitizenFX.Core.IScriptHost scriptHost) [0x0000c] in C:\gl\builds\4ff63adb\0\cfx\fivem\code\client\clrcore\ScriptContext.cs:184
at CitizenFX.Core.ScriptContext.Invoke (System.UInt64 nativeIdentifier, CitizenFX.Core.IScriptHost scriptHost) [0x00000] in C:\gl\builds\4ff63adb\0\cfx\fivem\code\client\clrcore\ScriptContext.cs:177
at CitizenFX.Core.Native.Function.InvokeInternal (CitizenFX.Core.Native.Hash nativeHash, System.Type returnType, CitizenFX.Core.Native.InputArgument[] args) [0x00026] in C:\gl\builds\4ff63adb\0\cfx\fivem\code\client\clrcore\Native.cs:28
at CitizenFX.Core.Native.Function.Call[T] (CitizenFX.Core.Native.Hash hash, CitizenFX.Core.Native.InputArgument[] arguments) [0x00000] in C:\gl\builds\4ff63adb\0\cfx\fivem\code\client\clrcore\Native.cs:11
at MySQLAsync.MySQLAsync.<.ctor>b__2_0 () [0x00037] in <6b79789832b34a31961dbb39358e1b3f>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
— End of inner exception stack trace —

Server stack trace:
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000e7] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00008] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <0123fd5b1a1040fe9d70a7e0d4b28acb>:0
at CitizenFX.Core.FunctionReference.Invoke (System.Int32 reference, System.Byte[] arguments) [0x00062] in C:\gl\builds\4ff63adb\0\cfx\fivem\code\client\clrcore\FunctionReference.cs:62
at CitizenFX.Core.InternalManager.CallRef (System.Int32 refIndex, System.Byte[] argsSerialized, System.IntPtr& retvalSerialized, System.Int32& retvalSize) [0x00000] in C:\gl\builds\4ff63adb\0\cfx\fivem\code\client\clrcore\InternalManager.cs:249
at (wrapper remoting-invoke-with-check) CitizenFX.Core.InternalManager:CallRef (int,byte[],intptr&,int&)
at (wrapper xdomain-dispatch) CitizenFX.Core.InternalManager:CallRef (object,byte[]&,byte[]&,int,byte[],int&)

Exception rethrown at [0]:
at (wrapper xdomain-invoke) CitizenFX.Core.InternalManager:CallRef (int,byte[],intptr&,int&)
at (wrapper remoting-invoke-with-check) CitizenFX.Core.InternalManager:CallRef (int,byte[],intptr&,int&)
at CitizenFX.Core.MonoScriptRuntime.CallRef (System.Int32 refIndex, System.Byte[] argsSerialized, System.Int32 argsSize, System.IntPtr& retvalSerialized, System.Int32& retvalSize) [0x00013] in C:\gl\builds\4ff63adb\0\cfx\fivem\code\client\clrcore\MonoScriptRuntime.cs:151
Error running system event handling function for resource mysql-async: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: citizen:/scripting/lua/scheduler.lua:665: An error happened while calling export mysql_configure of resource mysql-async (citizen:/scripting/lua/MessagePack.lua:830: missing bytes), see above for details
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/scheduler.lua:665: in method ‘mysql_configure’
lib/init.lua:3: in upvalue ‘handler’
citizen:/scripting/lua/scheduler.lua:175: in function citizen:/scripting/lua/scheduler.lua:174
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/scheduler.lua:41: in field ‘CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:174: in function citizen:/scripting/lua/scheduler.lua:138
hitch warning: frame time of 597 milliseconds

[vMenu] Checking for updates.
[vMenu] Your version of vMenu is up to date! Good job!
Sending heartbeat to live-internal.fivem.net:30110
Sending heartbeat to live-internal.fivem.net:30110

And this is my server.cfg file

start vMenu
exec resources/vMenu/config/permissions.cfg

you probably don’t want to change these!

only change them if you’re using a server with multiple network interfaces

endpoint_add_tcp “0.0.0.0:30120”
endpoint_add_udp “0.0.0.0:30120”

set es_enableCustomData 1
set mysql_connection_string "server=127.0.0.1;database=essentialmode;userid=root;

start mysql-async
start essentialmode
start esplugin_mysql
start es_admin2
start es_extended
start esx_identity
start esx_society
start esx_addonaccount
start esx_policejob
start esx_addoninventory
start esx_datastore
start esx_billing
start esx_license

start mapmanager
start chat
start spawnmanager
start sessionmanager
start fivem
start hardcap
start ■■■■■■■
start scoreboard
start playernames
start i8
start Wraith
start Senna
start P1

sv_scriptHookAllowed 0

change this

rcon_password yourmother

a comma-separated list of tags for your server

for example: sets tags “drifting, cars, racing” or sets tags “roleplay, military, tanks”

sets tags “default”

set an optional server info and connecting banner image url.

size doesn’t matter, any banner sized image will be fine.

#sets banner_detail “http://url.to/image.png
#sets banner_connecting “http://url.to/image.png

sv_hostname “Solace”

nested configs!

#exec server_internal.cfg

loading a server icon (96x96 PNG file)

#load_server_icon myLogo.png

convars for use from script

set temp_convar “hey world!”

disable announcing? clear out the master by uncommenting this (your server will not be listed in the serverlist if you uncomment this!)

#sv_master1 “”

want to only allow players authenticated with a third-party provider like Steam (don’t forget, Social Club is a third party probvider too!)?

#sv_authMaxVariance 1
#sv_authMinTrust 5

add system admins

add_ace group.admin command allow # allow all commands
add_ace group.admin command.quit deny # but don’t allow quit
add_principal identifier.steam:110000112345678 group.admin # add the admin to the group

remove the # to hide player endpoints in external log output

sv_endpointprivacy true

server slots limit (must be between 1 and 31)

sv_maxclients 30

1 Like

You are missing a " behind your mysql connection string. Perhaps this is giving the error.

i assume you mean to add " to the end of this set mysql_connection_string "server=127.0.0.1;database=essentialmode;userid=root; ?

It still gives me the same error

then i would ask in the original ESX topic or async.

Please do not create new topics for support/questions related to existing resources.

Only ask questions or request support in the original resource topic, or on whatever site/page you got the resource from (for example: create an issue on the GitHub page of the resource that you downloaded).

That way the original resource creator will get a notification and be able to help properly. This also helps to reduce duplicate topics of the same issue, because everything will be inside the original topic, allowing everyone to see all issues and solutions in one place.

Thanks for keeping the forums tidy.
:mascot: