Hello there!
I’ve seen a lot of people searching for this kind of resource and I was somewhat bored and was making it for a friend so I thought why not release it. It is an multi character which allows players to have multiple characters on your server
Before you start the resource and get on with it please read the README file because it is very helpfull for setting it up.
INSTALLATION
- Download the resource from GitHub (and ofcourse read the README file)
- Upload the SQL file that is included in the resource
esx_kashacters.sql
to your database (this is needed to know the last character a player was on. - Comment out the
NetworkIsSessionStarted
loop in essentialmode\client\main.lua (you can comment out the whole Citizen.Createthread() ) - Put the esx_kashacters resource in your FiveM resource folder and edit in the esx_kashacters\server\main.lua file the first table at the top of your file to all the identifier columns and tables that are used for characters
EXAMPLE:
local IdentifierTables = {
{table = "users", column = "identifier"},
{table = "owned_vehicles", column = "owner"},
{table = "user_accounts", column = "identifier"},
}
^ This is the only thing you HAVE to edit
After that it all should work fine, however some servers have different settings when it comes to loading characters, identities etc. (I’ve used the standard esx_identity as example). Also I didn’t really care for the front-end of it so… you should edit it
You’re free to do whatever you want with this resource, I just made it for shits 'n giggles.
https://github.com/KASHZIN/kashacters
Have fun with it!
- Love
PS. Don’t mind the name…
EDIT: THE NAME OF THE RESOURCE HAS TO BE THE SAME AS THE JAVASCRIPT SO IN THIS CASE NAME THE RESOURCE ‘esx_kashacters’
EDIT: A screenshot
also credits to @onno204 lil bitch