brifins
1
function QBCore.Functions.GetPlayer(source)
if type(source) == ‘number’ then
return QBCore.Players[source]
else
return QBCore.Players[QBCore.Functions.GetSource(source)]
end
end

What exactly are you trying to do? Also please format the code correctly.