CocaColaBear / types-ragemp-c

Rage:MP TypeScript type definition for Client-side
https://rage.mp/
MIT License
53 stars 60 forks source link

add getClosest to EntityMpPool #55

Closed nnsdev closed 4 years ago

nnsdev commented 4 years ago

1.1 features a new function for clientside entities called getClosest, it returns by default the first, closest entity, or takes a second parameter if you want to return multiple.

It returns an array of the entities present, or an empty array if none are present.