mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
fix(server): Use the prefix variable when deleting character
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user