even with a dependency to ghmattibanking?
because that would be super odd. as I know at least 2 people who did not need it, excluding me.
even with a dependency to ghmattibanking?
because that would be super odd. as I know at least 2 people who did not need it, excluding me.
ill recheck everything and give you a report and steps to reproduce it, i am also running one of the latest server versions and it has been acting weird with allot of stuff
That would be good. Because I will start refining it soon.
Gonna probably make it compatible with some other versions of mysql. MariaDB 10.1 will be always excluded due to the limits on the index size.
Very nice release! Good job
EDIT
disregard, found error was an error on my side accidentally left a ‘;’ in place when converted to lua and failed out code
Works fine for me. I just tried it on lua in a different resource.
Guess I was too late answering. Nice you found it.
I’m still very confused. I understand I don’t need to do anything with the database, and that the export thing is already there. (I hope if would be considering the obvious) On my server the resource has no errors at all, but when you get in game it does not work. I hate to be a nuisance, but I’m missing something very crucial. I don’t know exactly what to do with the signIn code. Some Guidance on that would be nice. Once again I appreciate all the help.
You need to call the signin export once per character that joined with their character name and their source.
You cannot do that on connecting, because you need a proper source.
I wanted to push more, but due to afk-issues I have I could not test thoroughly if anything breaks. So this will have to do for now.
This should increase the overall stability. I might write a migration guide at some point from the normal essentialmode / whatever esx uses and vrp.
great thank you ! this will help a lot of people that are not common whith mysql2
TODO:
The fine export works the following way:
exports('fine', (src, amount, recipient, purpose, [callback]))
e.g.
exports.ghmattibanking:fine(src, 30000, 'LSPD', 'Traffic Ticket', function (res)
print("Fine successful: " .. res)
end)
edit: res is the outstanding money that could not be paid, e.g. if the user has no accounts and only cash.
edit: Updating the wiki so it contains the new bindings plus some better examples.
Hi,
ive added the script , and all my banks are gone only 1 i can find and if i go inside i cant do anything.?
help
You did not use the sign in. Please read the instructions to use the api-bindings.
Call it whenever someone spawns into the server or their character ( if you have characters). See the example in the original post or the wiki.
Add all information user, password, etc, and not working in my VRPEX, please help me.
Blockquote
Error loading script server.js in resource agenciabancos: TypeError: Cannot read property ‘mysqlUser’ of null
stack:
TypeError: Cannot read property ‘mysqlUser’ of null
at Object.exports.BIG5_CHINESE_CI (server.js:8:75719)
at webpack_require (server.js:1:245)
at Object.exports.EE_CANTCREATEFILE (server.js:8:136336)
at webpack_require (server.js:1:245)
at Object.exports.EE_CANTCREATEFILE (server.js:8:133125)
at webpack_require (server.js:1:245)
at server.js:1:1610
at server.js:1:1658
Failed to load script server.js.
Install MySQL or MariaDB with these version numbers (or higher)