Skip to content

Commit

Permalink
fix(client/main): ignore entities out of scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Manason committed Feb 8, 2024
1 parent 2e0dba9 commit b7dc4ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ end
exports('PlaySoundFromEntity', playSoundFromEntity)

RegisterNetEvent('mana_audio:client:playSoundFromEntity', function(data)
if not NetworkDoesEntityExistWithNetworkId(data.netId) then return end
playSoundFromEntity({
audioBank = data.audioBank,
audioName = data.audioName,
Expand Down

0 comments on commit b7dc4ba

Please sign in to comment.