@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
For those who are struggling. i made a how to install instruction few post above.
If you want a quick way to see what tables use ‘owner’ or ‘identifier’
SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME = 'columnNameHere'
Thanks
When i click on “Create Character” nothing happens, whats wrong?
You click a box then you click play
Ah, okay thanks
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’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"},
}
Same here tried to fix it yesterday with no luck. Gonna keep trying tonight
I’ve never used the jsfour-atm more than just testing. So I can’t really tell how to fix your problems unfortunately.
you use mysql-async 3.0.8?
your server is linux?
I’ve fixed all my problems, but now i want to know how to make it possible to do a maximum of three characters. (or remove two boxes with the ability to create characters)
Hey! Thanks for help!
Dafuq. I don’t even have that table in mysql, but it works tho?
Did you fix the mysql error?