update to requested changes

This commit is contained in:
Arctos2win
2023-09-02 13:42:25 +02:00
committed by GitHub
parent d755a57e8f
commit 7978485b7a
+8 -2
View File
@@ -36,8 +36,14 @@ local function GetIdentifier(source)
return "ESX-DEBUG-LICENCE"
end
local identifier = string.gsub(GetPlayerIdentifierByType(source, PRIMARY_IDENTIFIER), PRIMARY_IDENTIFIER .. ':', '')
return identifier
local identifier = GetPlayerIdentifierByType(source, PRIMARY_IDENTIFIER)
if not identifier then
return
end
identifier = identifier:gsub(PRIMARY_IDENTIFIER .. ':', '')
return identifier
end
if next(ESX.Players) then