Skip to content

Commit

Permalink
fix: OneSync compatibility
Browse files Browse the repository at this point in the history
fixes #1
  • Loading branch information
MrGriefs committed Oct 16, 2021
1 parent 02e3dee commit 82b0152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.lua
Expand Up @@ -80,7 +80,7 @@ end)
RegisterNetEvent("AB3:ServerBeep", function(netId)
local otherPed = GetPlayerPed(GetPlayerFromServerId(netId))
local ped = PlayerPedId()
if (IsPedInAnyVehicle(ped) == IsPedInAnyVehicle(otherPed)) or not IsPedInAnyVehicle(ped) then
if DoesEntityExist(ped) and (IsPedInAnyVehicle(ped) == IsPedInAnyVehicle(otherPed)) or not IsPedInAnyVehicle(ped) then
local volume = 0.05
local radius = 10

Expand Down

0 comments on commit 82b0152

Please sign in to comment.