fix(legacy/multichar): Check if multichar is defined

This commit is contained in:
Linden
2021-05-19 20:32:18 +10:00
committed by GitHub
parent c51122b195
commit 911d17e27e
+2 -2
View File
@@ -2,10 +2,10 @@ ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
local playerIdentity = {}
local alreadyRegistered = {}
local multichar = ESX.GetConfig().Multichar or false
local multichar = ESX.GetConfig().Multichar
function getIdentifier(playerId)
if multichar then
if multichar ~= nil then
return ESX.GetIdentifier(playerId)
else
ESX.GetIdentifier = function(playerId)