Skip to content
This repository has been archived by the owner on Mar 21, 2022. It is now read-only.

Commit

Permalink
chore(server): Update error messages and manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Oct 25, 2021
1 parent e3c7e5c commit 3fe1f43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
7 changes: 4 additions & 3 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 3fe1f43

Please sign in to comment.