[Release] [ES] Simple Banking port to 3.1.0

Fixed a issue with the port.

Line 80 under server.lua is throwing a expected argument error, after looking through the code, I found your issue.

Original: if(tonumber(rounded) <= tonumber(user:money)) then

You have a : between user and money, where it should be a .

Fixed: if(tonumber(rounded) <= tonumber(user.money)) then

1 Like

To get the old design of the bank, take the HTML folder from a older version of Simple banking and replace the new one in es_rp, then go to line 168 in server.lua under banking, and delete the line. It will give you the credit card design without the new native design.

Fyi that won’t work properly as I removed any nui triggers

Just use the new v, as that still won’t make the entire thing work.

Yeah, I realized that after doing some digging around. I honestly prefer the old credit card design over the natives. It just looked for in depth.

Could it be used for Vrp?

No, it can be easily converted for es4 tho.

I’ve converted it. Then when I get home I’ll create a new post about it.

Edit by Havoc: English on the forums please.

hello, thank for scripte.

problem : Error parsing script server.lua in resource banking: server.lua:80: function arguments expected near ‘)’
Failed to load script server.lua.

help me please ^^’

Whats on line 79 80 81 @Wenuz. Nobody can help you if you don’t show the code…

This version doesn’t work for FXServer, it was made for CitizenMP.Server when that was still used.

1 Like

Help, problème money in bank “Undefined”

It dosent work for me at all.
The icons dont appere.
It dosent show me the money in the GUI. blank.
i have tried CouchDB and MySQL both not working. please help me.

It dosent work for me at all.
The icons dont appere.
It dosent show me the money in the GUI. blank.
i have tried CouchDB and MySQL both not working. please help me.

Error parsing script server.lua in resource banking: server.lua:80: function arg
uments expected near ‘)’

if(tonumber(rounded) <= tonumber(user:money)) then

use this

if(tonumber(rounded) <= tonumber(user.money)) then

at user:money there : and should be .

When I try runnung a deposit in simple banking, this is the error I receive:
Error running system event handling function for resource sync:

citizen:/scripting/lua/scheduler.lua:39: Failed to execute thread: server/ACL.lua:205: attempt to index a nil value (global 'bit32')
stack traceback:
        server/ACL.lua:205: 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>
Connecting: J.J. McQuade
Sending heartbeat to live-internal.fivem.net:30110
Error running call reference function for resource banking: server.lua:24: attempt to index a nil value
stack traceback:
        server.lua:24: in function 'bankBalance'
        server.lua:28: in function 'deposit'
        server.lua:81: in local 'ref'
        citizen:/scripting/lua/scheduler.lua:277: in function <citizen:/scripting/lua/scheduler.lua:268>
        [C]: in function 'coroutine.resume'
        citizen:/scripting/lua/scheduler.lua:33: in field 'CreateThreadNow'
        citizen:/scripting/lua/scheduler.lua:123: in function <citizen:/scripting/lua/scheduler.lua:92>
Error running system event handling function for resource essentialmode: citizen:/scripting/lua/scheduler.lua:39: Failed to execute thread: citizen:/scripting/lua/MessagePack.lua:830: missing bytes
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/MessagePack.lua:830: in method 'underflow'
        citizen:/scripting/lua/MessagePack.lua:465: in field 'any'
        citizen:/scripting/lua/MessagePack.lua:860: in field 'unpack'
        citizen:/scripting/lua/scheduler.lua:338: in local 'cb'
        server/player/login.lua:84: 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>
hitch warning: frame time of 170 milliseconds
Error running call reference function for resource banking: server.lua:24: attempt to index a nil value
stack traceback:
        server.lua:24: in function 'bankBalance'
        server.lua:28: in function 'deposit'
        server.lua:81: in local 'ref'
        citizen:/scripting/lua/scheduler.lua:277: in function <citizen:/scripting/lua/scheduler.lua:268>
        [C]: in function 'coroutine.resume'
        citizen:/scripting/lua/scheduler.lua:33: in field 'CreateThreadNow'
        citizen:/scripting/lua/scheduler.lua:123: in function <citizen:/scripting/lua/scheduler.lua:92>
Error running system event handling function for resource essentialmode: citizen:/scripting/lua/scheduler.lua:39: Failed to execute thread: citizen:/scripting/lua/MessagePack.lua:830: missing bytes
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/MessagePack.lua:830: in method 'underflow'
        citizen:/scripting/lua/MessagePack.lua:465: in field 'any'
        citizen:/scripting/lua/MessagePack.lua:860: in field 'unpack'
        citizen:/scripting/lua/scheduler.lua:338: in local 'cb'
        server/player/login.lua:84: 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>

Or is this also not compatible wit the FX Server???

I saw a comment that is not compatible with fxserver

yea saw the same thing but was hoping that was for the old version… I’m thinking this forced upgrade wasn’t thought out very well with current add on support…

@Kanersps is there a fix for the banking since we were forced to FX Server?? Sorry I lost your discord addy…