[RELEASE][ESX] KASHacters Multi Character

Has anybody figured out a way to switch skins when you switch characters? Also, after installing this resource, I get errors when I try to order shipments for the esx_kr_advanced_shops mod.

[ERROR] [MySQL] An error happens on MySQL for query “INSERT INTO shipments (id, label, identifier, item, price, count, time) VALUES (@id, @label, @identifier, @item, @price, @count, @time) {@time=1557867648;@item=medikit;@id=9;@price=50;@identifier=steam:1100001011cfe87;@count=1000;@label=MedKit}”:

i no longer use the advanced shops script but when i used it i never get any errors so you must be doing something wrong

did you make sure to add all identifier related columns to the table for kashacters?

Can someone help me, I have this on my server and before i installed it on my 1st character i had a property i was renting, now that i have this installed the money is been charged to my second account and its in the minus of $30k is there a way to fix this? and also cars aren’t going back to the garage since installing this.

If someone could help me would be greatly appreciated.

You sure you added all the tables you have in your database that have an owner or identifier column to the server.lua file?

Here are some quick tips to help people do this easier:

In PHPMyAdmin, run the following query:

SELECT TABLE_NAME, COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME IN (‘owner’, ‘identifier’) AND TABLE_SCHEMA = ‘name_of_database’

Highlight all the results and copy/paste them into a text editor that features regex(Regular Expressions) search and replace. I use Sublime Text. In the Find What input, enter the following regex pattern:

(.?)\n(.?)\n

In the Replace With input, enter this:

{table = “$1”, column = “$2”},\n

You should get something like this:

{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 = “jsfour_atm”, column = “identifier”},
{table = “owned_properties”, column = “owner”},
{table = “owned_shops”, column = “identifier”},
{table = “owned_vehicles”, column = “owner”},
{table = “phone_calls”, column = “owner”},
{table = “phone_messages”, column = “owner”},
{table = “phone_users_contacts”, column = “identifier”},
{table = “rented_vehicles”, column = “owner”},
{table = “shipments”, column = “identifier”},
{table = “society_moneywash”, column = “identifier”},
{table = “user_accounts”, column = “identifier”},
{table = “user_contacts”, column = “identifier”},
{table = “user_inventory”, column = “identifier”},
{table = “user_licenses”, column = “owner”},
{table = “users”, column = “identifier”},

Now just put that in your server/main.lua file and you should be good to go.

2 Likes

Can you still use this for now given the announce from steam yesterday?


After a restart yesterday, I could not get passed loading screen but maybe that was just the host?

@KASH is there any chance you can start on a version identifying trough something else then steam?
Cause steam might break the codei n the future.

still working in my server.

The script is working, but after installing, i was presented with this error

Error: (node:19) 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: 1)
Error: (node:19) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Script is working perfectly, but for some reason some players don’t have their mouse cursor visible. I see more people have the same problem. Any solutions? I am too bad at javascript to solve this myself…

Hey guys, anyone know have any idea why my server gets stuck here and cant go any further? Its like esx_kashacters wont pop up.

Im using esx_identity if that has anything to do with it. Any ideas??

How’d you fix ur problem(s)?

I also stayed there on this screen when I tried to use this script lately, I tried several ways nothing changed and I gave up hahahha

I was wondering if this script needs esx_identity to work, because I do not have it, but the creator of the post did not say anything about it so whatever

im having this same error and i cant figure out how to fix it

Any way to get back to the character Selection Screen without relogging?

2 Likes

i’am getting this error and black screen after character selecting
help me please :confused:

Error resuming coroutine: citizen:/scripting/lua/json.lua:397: bad argument #1 to 'strfind' (string expected, got nil)
stack traceback:
        [C]: in function 'string.find'
        citizen:/scripting/lua/json.lua:397: in upvalue 'scanwhite'
        citizen:/scripting/lua/json.lua:553: in function <citizen:/scripting/lua/json.lua:551>
        (...tail calls...)
        @esx_kashacters/server/main.lua:36: in upvalue 'handler'
        citizen:/scripting/lua/scheduler.lua:219: in function <citizen:/scripting/lua/scheduler.lua:218>

The character screen is loading and I can see my main character, but I don’t have a mouse to move around and the “Play” and “Delete” green and red buttons aren’t on my screen. Any ideas?

Love this script! its vital now!
Would it be possible mechanically to once there is a command that goes back to the char selection menu… that switching between char would be like camera zoom out of the player to the sky over the city then going back to the new selected char by zooming into his location… like switching between micheal and trevor with the ALT key switch. If its mechanically scriptable, i dont mind doing it myself… just not sure if it will work before i start.

1 Like

same issue :frowning:

Love this script guys, only thing i cant get to be specific to each player is the inventory, no matter what i do in the server file to try to keep them seperated by character all characters share the same inventory. Anyone else ran into the problem and found a solution?

Also having this issue. Hoping to find a solution soon. Let me know if you find anything.