From 9664c9e1bf75c8f2624b790304758db6fe0d2265 Mon Sep 17 00:00:00 2001 From: Mauro <34516696+MauroNr1@users.noreply.github.com> Date: Tue, 9 Apr 2024 20:09:42 +0200 Subject: [PATCH] Fix not being able to put in vehicle. Ox_lib doesnt include the player vehicle by default --- client/escort.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/escort.lua b/client/escort.lua index 3ec7912..55df5f1 100644 --- a/client/escort.lua +++ b/client/escort.lua @@ -32,7 +32,7 @@ local function nearbySeatVehicleCheck(ped) lastNearbySeatCheck = time local coords = GetEntityCoords(ped) - local veh = lib.getClosestVehicle(coords, 2.0) + local veh = lib.getClosestVehicle(coords, 4.0, true) nearBySeatStatus = DoesEntityExist(veh) and AreAnyVehicleSeatsFree(veh) and GetVehicleDoorLockStatus(veh) ~= 2 return nearBySeatStatus @@ -74,7 +74,7 @@ exports.ox_target:addGlobalPlayer({ end, onSelect = function(data) local coords = GetEntityCoords(cache.ped) - local veh = lib.getClosestVehicle(coords, 2.0) + local veh = lib.getClosestVehicle(coords, 4.0, true) if not DoesEntityExist(veh) or not AreAnyVehicleSeatsFree(veh) then return end local bones = {"seat_dside_r", "seat_pside_r"}