Rather than changing your post, you should have just replied with your solution so that others with the same issue can try your solution.
[RELEASE][ESX] KASHacters Multi Character
Badass Release. You can’t imagine how many people have been waiting for this exact thing!
Anyway, I’ve solved the above issues, however I’m running into something kind of unique. Any Drug system I use works for the most part, but it will not give money to the player. I’ve tried with multiple scripts, but they all spit out errors referencing es_extended where it tries to add money to the player, and for whatever reason cannot do it. I don’t have any DB tables that are specific to any of the drug systems so I can’t imagine that it’s a lack of an entry in the script. Any thoughts?
For a little further clarification, each script works up to the point of adding money. Drug item will be removed from inventory, the player/npc interaction happens, even pNotify is issues notifications corretly, it just simply can’t add money to the player.
I am getting this error when I am loading anyone else also recieves this?
e[91mError: (node:17405) UnhandledPromiseRejectionWarning: TypeError: Cannot convert undefined or null to object
at Function.values ()
at execute.then (mysql-async.js:5002:48)e[0m
e[91mError: (node:17405) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)e[0m
InvokeNative: execution failed: Argument at index 0 was null.
Error resuming coroutine: Execution of native 00000000406b4b20 in script host failed.
stack traceback:
[C]: in upvalue ‘_in’
citizen:/scripting/lua/natives_server.lua:194: in function ‘GetPlayerName’
(…tail calls…)
server/main.lua:65: in upvalue ‘handler’
citizen:/scripting/lua/scheduler.lua:219: in function citizen:/scripting/lua/scheduler.lua:218
InvokeNative: execution failed: Argument at index 0 was null.
Error resuming coroutine: Execution of native 00000000406b4b20 in script host failed.
stack traceback:
[C]: in upvalue ‘_in’
citizen:/scripting/lua/natives_server.lua:194: in function ‘GetPlayerName’
(…tail calls…)
server/main.lua:65: in upvalue ‘handler’
citizen:/scripting/lua/scheduler.lua:219: in function citizen:/scripting/lua/scheduler.lua:218
@KASH I wish u luck with the spam about non-resource related errors:hugs:
Tnx for credits
@JaroSound @Chip_W_Gaming it’s the ambulance script that throws this error.Well for me it was earlier today.
It makes so you can change character every time you log in to a server so you can make different characters
If you want a quick way to see what tables use ‘owner’ or ‘identifier’
SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME = 'columnNameHere'
Hey.
Can you look more into this error to?
Error running system event handling function for resource jsfour-atm: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: server.lua:133: attempt to index a nil value
stack traceback:
server.lua:133: 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’m trying to make jsfour-atm compatible but i’m not really good with coding. But i am learning. So far i got atm to work. I will post when i’m done fixing it.
I’ve fixed it. Can send you the code later if you want. Will take a long time because of my studies, but sometime later today I can fix it for you. Just send me a PM.
Looks like it has to do with the identifier in the jsfour-atm table. Looks like it can’t find anything and I guess it has to do with you having multiple users in the users table. Have you tried to add the jsfour-atm table to your database like @XxFri3ndlyxX did?
Like this:
local IdentifierTables = {
{table = "users", column = "identifier"},
{table = "owned_vehicles", column = "owner"},
{table = "addon_account_data", column = "owner"},
{table = "addon_inventory_items", column = "owner"},
{table = "billing", column = "identifier"},
{table = "datastore_data", column = "owner"},
{table = "society_moneywash", column = "identifier"},
{table = "user_accounts", column = "identifier"},
{table = "user_inventory", column = "identifier"},
{table = "characters", column = "identifier"},
{table = "jsfour_atm", column = "identifier"},
}
BTW! Looked at the code for about 30 seconds so it may not be this. But try it at least
Now i have problem with my items/guns in property. I have all the same on two characters.
{table = "addon_account_data", column = "owner"},
{table = "addon_inventory_items", column = "owner"},
{table = "billing", column = "identifier"},
{table = "characters", column = "identifier"},
{table = "datastore_data", column = "owner"},
{table = "jail", column = "identifier"},
{table = "owned_aircrafts", column = "owner"},
{table = "owned_boats", column = "owner"},
{table = "owned_properties", column = "owner"},
{table = "owned_vehicles", column = "owner"},
{table = "phone_calls", column = "owner"},
{table = "phone_messages", column = "owner"},
{table = "phone_users_contacts", column = "identifier"},
{table = "playerstattoos", column = "identifier"},
{table = "playersTattoos", column = "identifier"},
{table = "rented_aircrafts", column = "owner"},
{table = "rented_boats", column = "owner"},
{table = "rented_vehicles", column = "owner"},
{table = "society_moneywash", column = "identifier"},
{table = "truck_inventory", column = "owned"},
{table = "users", column = "identifier"},
{table = "user_accounts", column = "identifier"},
{table = "user_contacts", column = "identifier"},
{table = "user_heli", column = "identifier"},
{table = "user_inventory", column = "identifier"},
{table = "user_licenses", column = "owner"},
{table = "user_parkings", column = "identifier"},
}