From 3955c92eaa64e905bff805807e54acbc63453cff Mon Sep 17 00:00:00 2001 From: Hagen Date: Sat, 16 Oct 2021 08:17:55 +0100 Subject: [PATCH] fix: fix bad OneSync compat implementation --- client.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.lua b/client.lua index 56aafcd..b3b6c6a 100644 --- a/client.lua +++ b/client.lua @@ -80,7 +80,7 @@ end) RegisterNetEvent("AB3:ServerBeep", function(netId) local otherPed = GetPlayerPed(GetPlayerFromServerId(netId)) local ped = PlayerPedId() - if DoesEntityExist(ped) and (IsPedInAnyVehicle(ped) == IsPedInAnyVehicle(otherPed)) or not IsPedInAnyVehicle(ped) then + if DoesEntityExist(otherPed) and (IsPedInAnyVehicle(ped) == IsPedInAnyVehicle(otherPed)) or not IsPedInAnyVehicle(ped) then local volume = 0.05 local radius = 10