> For the complete documentation index, see [llms.txt](https://faze-development.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://faze-development.gitbook.io/docs/resources/fd-jobselector/functions/server/getplayer.md).

# GetPlayer

```lua
function FD.GetPlayer(source)
    local Player = false
    while Framework == nil do
        Citizen.Wait(0)
    end
    if Config.Framework == 'esx' or Config.Framework == 'oldesx' then
        Player = Framework.GetPlayerFromId(source)
    else
        Player = Framework.Functions.GetPlayer(source)
    end
    return Player
end
```
