Hey guys, i’m creating a fivem server atm. This is probs not the best place to ask but i cant seem to find answers anywhere so if anyone can help, ill be forever grateful. I’m trying to get new banking to work but i’m getting this error whenever i open the bank, i cant withdraw or deposit money either. I’m still learning so any help will be appreciated
Error running system event handling function for resource new_banking: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: @new_banking/server.lua:40: attempt to index a nil value (global ‘ESX’)
stack traceback:
@new_banking/server.lua:40: in upvalue ‘handler’
citizen:/scripting/lua/scheduler.lua:219: in function citizen:/scripting/lua/scheduler.lua:218
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/scheduler.lua:41: in field ‘CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:218: in function citizen:/scripting/lua/scheduler.lua:182
I messed around and changed the esx=nil to true and after restarting the script it worked but then after restart it came up with this error}
Error running system event handling function for resource new_banking: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: @new_banking/server.lua:40: attempt to index a boolean value (global ‘ESX’)
stack traceback:
@new_banking/server.lua:40: in upvalue ‘handler’
citizen:/scripting/lua/scheduler.lua:219: in function citizen:/scripting/lua/scheduler.lua:218
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/scheduler.lua:41: in field ‘CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:218: in function citizen:/scripting/lua/scheduler.lua:182