Entities
Accessing the Module
local ENTITIES <const> = exports.boii_utils:get("modules.entities")Client
get_nearby_objects(coords, max_distance)
Parameters
Name
Type
Description
Example
local nearby = ENTITIES.get_nearby_objects(GetEntityCoords(PlayerPedId()), 5.0)
for _, obj in pairs(nearby) do
print("Nearby Object:", obj.entity, obj.coords)
endget_nearby_peds(coords, max_distance)
Parameters
Name
Type
Description
Example
get_nearby_players(coords, max_distance, include_player)
Parameters
Name
Type
Description
Example
get_nearby_vehicles(coords, max_distance, include_player_vehicle)
Parameters
Name
Type
Description
Example
get_closest_object(coords, max_distance)
Parameters
Name
Type
Description
Example
get_closest_ped(coords, max_distance)
Parameters
Name
Type
Description
Example
get_closest_player(coords, max_distance, include_player)
Parameters
Name
Type
Description
Example
get_closest_vehicle(coords, max_distance, include_player_vehicle)
Parameters
Name
Type
Description
Example
get_entities_in_front_of_player(fov, distance)
Parameters
Name
Type
Description
Example
get_target_ped(player_ped, fov, distance)
Parameters
Name
Type
Description
Example
Last updated