diff --git a/client/main.lua b/client/main.lua index f88bf093..4112023f 100644 --- a/client/main.lua +++ b/client/main.lua @@ -67,7 +67,7 @@ end) -- @TODO Change sound volume based on the distance the player is away from the playOnEntity. ------ RegisterNetEvent('InteractSound_CL:PlayWithinDistance') -AddEventHandler('InteractSound_CL::PlayWithinDistance', function(playerNetId, maxDistance, soundFile, soundVolume) +AddEventHandler('InteractSound_CL:PlayWithinDistance', function(playerNetId, maxDistance, soundFile, soundVolume) local lCoords = GetEntityCoords(GetPlayerPed(-1)) local eCoords = GetEntityCoords(GetPlayerPed(GetPlayerFromServerId(playerNetId))) local distIs = Vdist(lCoords.x, lCoords.y, lCoords.z, eCoords.x, eCoords.y, eCoords.z)