fix(server): Use the prefix variable when deleting character

This commit is contained in:
Linden
2021-05-21 23:02:54 +10:00
committed by GitHub
parent cf67e47855
commit b1dade2c47
+1 -1
View File
@@ -37,7 +37,7 @@ if ESX.GetConfig().Multichar then
end
DeleteCharacter = function(playerId, charid)
local identifier = 'char'..charid..':'..ESX.GetIdentifier(playerId)
local identifier = Config.prefix..charid..':'..ESX.GetIdentifier(playerId)
for _, itable in pairs(IdentifierTables) do
MySQL.Async.execute("DELETE FROM "..itable.table.." WHERE "..itable.column.." = @identifier", {
['@identifier'] = identifier