From 2e559e0caf45434d0acb186b9cf0e8d5088f29c7 Mon Sep 17 00:00:00 2001 From: Taso Date: Thu, 4 Mar 2021 09:20:02 -0500 Subject: [PATCH] fix(sound/trigger): Fixed incorrect native casing An error would occur when passing a table in an export. --- main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.lua b/main.lua index 853bd20..6e743c5 100644 --- a/main.lua +++ b/main.lua @@ -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 @@ -146,4 +146,4 @@ end) RegisterNetEvent('t-notify:client:Persist') AddEventHandler('t-notify:client:Persist', function(data) Persist(data) -end) \ No newline at end of file +end)