ClosestPed
Get the nearest ped to a player or ped
Parameters description
Parameter
Type
Description
Default
Id
integer?
player server Id or ped or nil
current player
returnClosePeds
boolean?
return the close peds or not
false
return:
{ ped: integer, distance: number }?
{ ped: integer, distance: number }[]? closePeds
Example
Last updated