[SOLVED] [Help] Error : Unhandled task exception when someone joins my server

Every time my friend joins my server i get this error

Unhandled task exception:
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot perform runtime binding on a null reference
  at (wrapper dynamic-method) System.Object.CallSite.Target(System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,object,string,bool)
  at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid3[T0,T1,T2] (System.Runtime.CompilerServices.CallSite site, T0 arg0, T1 arg1, T2 arg2) [0x0011e] in <cf8f429092f345a6bd742c3476e00e06>:0
  at SQLite.Main+<>c__DisplayClass2_0.<CreateUser>b__0 () [0x000f0] in <d9601824428540b9a7e0ba8d7ddf823e>:0

but when he try to use anything he gets this

SCRIPT ERROR: @es_extended/server/main.lua:266: attempt to index a nil value (local 'xPlayer')

i cant use any admin commands on him, but all works fine for me, Any help is appreciated Thank You

[UPDATE] i tried a fresh install and cleared db and now im getting the error i cant use any thing or any commands the users table in db isn’t getting updated but i see the Characters are getting updated in the database

[SOLVED]
I solved this by moving set es_enableCustomData 1 above essentialmode this is my server.cfg for anyone with the same problem


set steam_webApiKey ""

set es_enableCustomData 1


start mapmanager
start spawnmanager
start chat
start sessionmanager
restart sessionmanager
start fivem
start hardcap
start ■■■■■■■

set mysql_debug false

# ESSENTIAL MODS
start mysql-async
start essentialmode
start esplugin_mysql
start es_extended
start async
start es_admin2  ```

Moved to ES/ESX :mascot:


No idea what the top error is about, but the other one sounds like a database issue.

been trying for a while to figure this out never seen anything like the first one error thanks anyway

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.