From bd51fc72e0d42755bc5b41589190cd9dc747f76a Mon Sep 17 00:00:00 2001 From: Dolu Date: Sun, 15 Jan 2023 23:25:17 +0100 Subject: [PATCH] fix(imports): return coords getNearbyObjects and getNearbyVehicles --- imports/getNearbyObjects/client.lua | 2 +- imports/getNearbyVehicles/client.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/imports/getNearbyObjects/client.lua b/imports/getNearbyObjects/client.lua index 329f3d34a..d7ffc4e7a 100644 --- a/imports/getNearbyObjects/client.lua +++ b/imports/getNearbyObjects/client.lua @@ -17,7 +17,7 @@ function lib.getNearbyObjects(coords, maxDistance) count += 1 nearby[count] = { object = object, - coords = coords + coords = objectCoords } end end diff --git a/imports/getNearbyVehicles/client.lua b/imports/getNearbyVehicles/client.lua index 83b9cc379..2a62be49d 100644 --- a/imports/getNearbyVehicles/client.lua +++ b/imports/getNearbyVehicles/client.lua @@ -19,7 +19,7 @@ function lib.getNearbyVehicles(coords, maxDistance, includePlayerVehicle) count += 1 nearby[count] = { vehicle = vehicle, - coords = coords + coords = vehicleCoords } end end