Hey, From the FiveM API, we have a new way to handle player identification by type, so I want to use it instead of the other way because I’m only looking for the license.
But I’m getting an error that the GetPlayerIdentifierByType function doesn’t exist.
SCRIPT ERROR: @core/server.lua:178: attempt to call a nil value (global ‘GetPlayerIdentifierByType’)
i’m not sure if this is intentional or an oversight.
here is my logic how i use it :
AddEventHandler(
"playerConnecting",
function()
local source = source
local playerLicense = GetPlayerIdentifierByType(source, 'license')
exports.core:Logger("info", playerLicense) --> Error attempt to call a nil value (global 'GetPlayerIdentifierByType')
InitializeCharacterData(source)
end
)```