Skip to content

Commit

Permalink
fix(sound/trigger): Fixed incorrect native casing
Browse files Browse the repository at this point in the history
An error would occur when passing a table in an export.
  • Loading branch information
TasoOneAsia authored Mar 4, 2021
1 parent 0831d92 commit 2e559e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function SendNotification(style, duration, title, message, image, sound, custom,
position = position
})
if type(sound) == 'table' then
PlaySoundFrontEnd(-1, sound.name, sound.reference, 1)
PlaySoundFrontend(-1, sound.name, sound.reference, 1)
elseif sound == true then
PlaySoundFrontend(-1, cfg.sound.name, cfg.sound.reference, 1)
end
Expand Down Expand Up @@ -146,4 +146,4 @@ end)
RegisterNetEvent('t-notify:client:Persist')
AddEventHandler('t-notify:client:Persist', function(data)
Persist(data)
end)
end)

0 comments on commit 2e559e0

Please sign in to comment.