From 7a7ea516dbeb94b5d1b42bf947f25019e53a374c Mon Sep 17 00:00:00 2001 From: bitpredator <67551273+bitpredator@users.noreply.github.com> Date: Fri, 10 Jan 2025 18:50:31 +0100 Subject: [PATCH] chore: other fix --- .../resources/[bpt_addons]/bpt_ambulancejob/client/deathcam.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server-data/resources/[bpt_addons]/bpt_ambulancejob/client/deathcam.lua b/server-data/resources/[bpt_addons]/bpt_ambulancejob/client/deathcam.lua index 509d7247..01c1f297 100644 --- a/server-data/resources/[bpt_addons]/bpt_ambulancejob/client/deathcam.lua +++ b/server-data/resources/[bpt_addons]/bpt_ambulancejob/client/deathcam.lua @@ -48,6 +48,6 @@ function ProcessNewPosition(playerCoords) end local normal = vector3(math.sin(y) * math.cos(x), math.sin(y) * math.sin(x), math.cos(y)) local pos = playerCoords + normal * camera_radius - local hit, coords = GetShapeTestResultSync(StartShapeTestLosProbe(playerCoords, pos, -1, playerPed)) + local hit, coords = GetShapeTestResultSync(StartShapeTestLosProbe(playerCoords, 0, -1, playerPed, 7, playerPed, 0, 7, 0)) return (hit == 1 and playerCoords + normal * (#(playerCoords - coords) - 1)) or pos end