-- Player targets
if entityType == 1 and IsPedAPlayer(entity) then
CheckEntity(hit, Players, entity, distance)
local function AddPlayer(parameters)
local distance, options = parameters.distance or Config.MaxDistance, parameters.options
SetOptions(Players, distance, options)
end
exports('Player', AddPlayer)
qtarget had support for player targets, it is useful for certain things and it would be a nice addition here.
From qtarget (https://overextended.github.io/qtarget/player)