From de1931911d407fb975223679834efc94e0c57ae8 Mon Sep 17 00:00:00 2001 From: Swellington Soares Date: Sat, 28 Oct 2023 03:51:39 -0300 Subject: [PATCH] refactor: update GetIdentifier to use new native --- server/functions.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/server/functions.lua b/server/functions.lua index e325d48..94d9438 100644 --- a/server/functions.lua +++ b/server/functions.lua @@ -22,13 +22,7 @@ end ---@param idtype string ---@return string? function QBCore.Functions.GetIdentifier(source, idtype) - local identifiers = GetPlayerIdentifiers(source) - for _, identifier in pairs(identifiers) do - if string.find(identifier, idtype) then - return identifier - end - end - return nil + return GetPlayerIdentifierByType(source, idtype or "license") end ---Gets a players server id (source). Returns 0 if no player is found.