meta-hub / meta_target

A complete third eye solution for FiveM and RedM, aiming to proving all solutions from fivem-target, bt-target and qtarget under one resource.
21 stars 15 forks source link

Add support for player targets #3

Closed Senlar closed 2 years ago

Senlar commented 2 years ago

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)

-- 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)
meta-hub commented 2 years ago

Noted, will keep this open until I've added it.

meta-hub commented 2 years ago

Added