diff --git a/fxmanifest.lua b/fxmanifest.lua index 992b8ce..f39c234 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -1,7 +1,7 @@ fx_version 'cerulean' game 'gta5' description 'https://github.com/thelindat/esx_multicharacter' -version '1.4' +version '1.4.0' lua54 'yes' dependencies { diff --git a/server/main.lua b/server/main.lua index f413707..7c3dc1e 100644 --- a/server/main.lua +++ b/server/main.lua @@ -20,7 +20,7 @@ local function DATABASE() end if not ESX then - error('\n^1WARNING: Unable to start Multicharacter - you must be using ESX Legacy^0') + error('\n^1Unable to start Multicharacter - you must be using ESX Legacy^0') elseif ESX.GetConfig().Multichar == true then DATABASE = DATABASE() local DB_TABLES = {} @@ -114,9 +114,10 @@ elseif ESX.GetConfig().Multichar == true then MySQL.Async.transaction(queries, function(result) if result then print(('[^2INFO^7] Player [%s] %s has deleted a character (%s)'):format(GetPlayerName(source), source, identifier)) + Citizen.Wait(50) SetupCharacters(source) else - print(result) + error('\n^1Transaction failed while trying to delete '..identifier..'^0') end end) end @@ -204,4 +205,4 @@ elseif ESX.GetConfig().Multichar == true then else assert(nil, '^3WARNING: Multicharacter is disabled - please check your ESX configuration^0') -end +end \ No newline at end of file