From 87e94c8193b471ff01b981e12ed39bbe0eeaba47 Mon Sep 17 00:00:00 2001 From: Arctos2win <116841243+Arctos2win@users.noreply.github.com> Date: Sat, 2 Sep 2023 15:48:25 +0200 Subject: [PATCH] update little thing --- [core]/esx_multicharacter/server/main.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/[core]/esx_multicharacter/server/main.lua b/[core]/esx_multicharacter/server/main.lua index 97c184214..5e83f6371 100644 --- a/[core]/esx_multicharacter/server/main.lua +++ b/[core]/esx_multicharacter/server/main.lua @@ -37,13 +37,7 @@ local function GetIdentifier(source) end local identifier = GetPlayerIdentifierByType(source, PRIMARY_IDENTIFIER) - - if not identifier then - return - end - - identifier = identifier:gsub(PRIMARY_IDENTIFIER .. ':', '') - return identifier + return identifier and identifier:gsub(PRIMARY_IDENTIFIER .. ':', '') end if next(ESX.Players) then