Fixed some ESX functions that are used to get the closests, I forgot that the functions should've returned the player and not the entity handle :/
Also fixed the ESX.Game.GetClosestPed() function just returning your own ped.
Thanks @SSNRSS for helping me iron out the problems!
Co-Authored-By: Lucas. <ssnrss@users.noreply.github.com>
This changes arguments on the following functions:
- ESX.Game.GetClosestObject()
- ESX.Game.GetPeds(), no more arg for ignoreList
- ESX.Game.GetClosestPed(), no longer a ignore list, instead a whitelist