qbcore-framework / qb-core

FiveM RP Framework Core :muscle:
GNU General Public License v3.0
585 stars 964 forks source link

Optimized Entity Proximity Functions #1138

Closed Conviicts closed 2 months ago

Conviicts commented 3 months ago

Description

This pull request optimizes utility functions for finding the closest entities (players, objects, vehicles, and peds) to a source player or specified coordinates within the QBCore framework. The key changes include:

These changes enhance the overall performance and readability of the code, while preserving existing functionality.

Checklist