diff --git a/server/functions.lua b/server/functions.lua index b3fe38a9..a87a5a70 100644 --- a/server/functions.lua +++ b/server/functions.lua @@ -239,6 +239,15 @@ ESX.GetPlayerFromIdentifier = function(identifier) end end +ESX.GetIdentifier = function(playerId) + for k,v in ipairs(GetPlayerIdentifiers(playerId)) do + if string.match(v, 'license') then + local identifier = string.gsub(v, 'license:', '') + return identifier + end + end +end + ESX.RegisterUsableItem = function(item, cb) ESX.UsableItemsCallbacks[item] = cb end