I do have them in my database, must have missed them. I will try installing the resource once again, hoping that it will not damage my server. I have made backups just in case, I hope that they’re going to work. I’ll list every step I take and my exact server configuration while doing so.
- Stopped server completely
- Went through database to delete every entry that was made because I joined
- Moved/renamed Kashacters:
resources\[esx]\esx_kashacters\__resource.lua
- Commented out the following text in
essentialmode\client\main.lua:
--[[Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if NetworkIsSessionStarted() then
TriggerServerEvent('es:firstJoinProper')
TriggerEvent('es:allowedToSpawn')
return
end
end
end)]]--
Question: Should I only comment out line 5-8 in there or leave it like this?
- Imported
esx_kashacters.sql into essentialmode database, no errors, “user_lastcharacter” created.
- Edited the
esx_kashacters\server\main.lua:
local IdentifierTables = {
{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 = "society_moneywash", column = "identifier"},
{table = "users", column = "identifier"},
{table = "user_accounts", column = "identifier"},
{table = "user_inventory", column = "identifier"},
{table = "user_lastcharacter", column = "steamid"}, -- Is this needed?
{table = "user_licenses", column = "owner"},
}
My essentialmode database only consists of these tables so I think I’ve gotten all of them in there.
- Added
ensure esx_kashacters to the server.cfg.
These are my current resources:
# These resources will start by default.
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure fivem
ensure hardcap
ensure ■■■■■■■
ensure scoreboard
# CUSTOM
ensure essentialmode
ensure mysql-async
ensure esplugin_mysql
ensure es_extended
ensure async
ensure esx_menu_default
ensure esx_menu_dialog
ensure esx_menu_list
ensure new_banking
ensure bob74_ipl
ensure legacyfuel
ensure qalle_coords
ensure esx_addonaccount
ensure cron
ensure esx_license
ensure esx_datastore
ensure esx_billing
ensure esx_society
ensure skinchanger
ensure esx_skin
ensure esx_identity
ensure esx_policejob
ensure esx_kashacters
I will wait with starting the server in case I’ve done something wrong, I don’t want to risk having to redo the entire thing yet again.