[Discontinued] Simple Banking 2.0 - Now with GUI

@Rudz @Scapin

Opensourcing is important of course, That’s why i said “From a first point of view, it is really nice to share what you have done, it will be usefull to many people !”

I coded a bank system for my server 3-4 days ago, but now seeing a script similar of what i made being shared gives me the feeling that i worked for nothing… I guess we can all understand that ^^

When I type the command: /checkbalance nothing appears.

I have followed the path: Put ‘banking’ folder into your servers ‘resources’ folder
Add ‘banking’ to AutoStartResources in citmp-server.yml

Where can this come from

Thank you in advance

Hi Narko, did you run the db.sql file in your essentialmod database?
If you did, could you post a screenshot of your server log please.

Also, regarding the open sourcing;
I will continue to release scripts that I think are well rounded enough for people to build off. If we get a mentality of locking ourselves behind doors we aren’t helping anyone besides our self. I am all for custom scripts for servers but I don’t think everything should be hidden away.

Thanks for the great feedback so far guys!

2 Likes

Speaking of SQL DB :
I think you will come up to this (if multi account is coming ^^) but I think you should consider creating a new table where you will use the PlayerID as a foreign key.
The most important thing to me is that you will not be (so) dependant of essentialmode DB model changes.

Hey Rudz,

This is definitely going to happen, I only used EM’s DB because I just wanted to get something out for people to use. Future versions will definitely be more ‘complete’ in the DB area. Thanks again for the valuable feedback!

1 Like

simplebanking? boi this is complexbanking!!! haha great job mate, love it!

1 Like

Hello, the script is not working for me, when I am on the waypoint of a bank, I type /deposit 50
nothing is happening

How to display money in the upper right as text?

Did you follow the install instructions correctly? Including importing the sql file and changing the info in server.lua?
If you did can you PM me a screenshot of your database, and server and client logs when you type the command so I can help figure out your issue.

Thanks

I am working on this, currently its not a feature unless you can add it yourself.

Thanks

1 Like

No I know unfortunately not coding in lua

Well for some odd reason it crashes my server

That is strange, could you PM me the log when you run the command? Never had a script crash a server before.

ScreenShot Of the DataBase :

Server log when I type a /deposit :

2017-04-18 17:33:36.1381|INFO|CitizenMP.Server|ZoldacYT: /deposit 50

And client log:

[ 119860] error during NUI callback chatResult: citizen:/scripting/lua/scheduler.lua:243: bad argument #1 to 'unpack' (table expected, got nil) [ 120094] queue event bank:deposit [ 125281] dropped packet (1173, 1171) [ 143781] coll open cache:/assets/journey.ytd [ 144000] dropped packet (1547, 1545) [ 144047] coll open cache:/assets/journey.yft [ 144125] coll open cache:/assets/trailersmall.ytd [ 144125] coll open cache:/assets/trailersmall.yft [ 146141] dropped packet (1591, 1589) [ 152063] EndpointMapper::HandleRequest: POST /gta5/11/gameservices/presence.asmx/GetPresenceServers [ 156110] dropped packet (1790, 1788) [ 157406] error during NUI callback chatResult: citizen:/scripting/lua/scheduler.lua:243: bad argument #1 to 'unpack' (table expected, got nil) [ 157531] queue event bank:deposit [ 161797] error during NUI callback chatResult: citizen:/scripting/lua/scheduler.lua:243: bad argument #1 to 'unpack' (table expected, got nil) [ 165625] EndpointMapper::HandleRequest: POST /gta5/11/gameservices/auth.asmx/CreateTicketScAuthToken

Everyone using this should probably force steam on their servers. If a person’s IP changes, their balance will reset.

1 Like

Yeah that would be best. This is the same with EssentialMod cash too.

BAN ALL THOSE STEAM IDs !!!

(just kidding) :stuck_out_tongue:

Seriously, I can’t figure how it is related to bank script.

I can’t either. I’m not sure if its a queue issue? Never experienced this one to be honest.

Seem not working in all atm location and bank location example :

this atm can’t withdraw : http://prnt.sc/exwy59
position : http://prnt.sc/exwygc

And this bank can’t deposit

Some other are working.

Nice job anyway

1 Like

Yeah I don’t think I got them all, thanks for pointing it out Ill add it in!