Get the nearest ped to a player or ped
Last updated 1 month ago
return:
{ ped: integer, distance: number }?
{ ped: integer, distance: number }[]? closePeds
local closestPed = HRLib.ClosestPed() HRLib.Notify('The closest ped to you: '..json.encode(closestPed, { indent = true }), 'success', 2500)
Id
integer?
player server Id or ped or nil
current player
returnClosePeds
boolean?
return the close peds or not
false