diff --git a/client/utils.lua b/client/utils.lua index 5202932..67eed3c 100644 --- a/client/utils.lua +++ b/client/utils.lua @@ -37,7 +37,10 @@ function InstallMod(duplicate, mod, props, level) props?.icon or 'fa-solid fa-wrench', props?.iconColor ) - SendNUIMessage({sound = true}) + qbx.playAudio({ + audioName = 'PICK_UP', + audioRef = 'HUD_FRONTEND_DEFAULT_SOUNDSET' + }) return true end diff --git a/fxmanifest.lua b/fxmanifest.lua index 9717688..c82aa85 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -16,6 +16,7 @@ shared_scripts { client_scripts { '@qbx_core/modules/playerdata.lua', + '@qbx_core/modules/lib.lua', 'client/utils.lua', 'client/menus/main.lua', 'client/zones.lua', @@ -23,11 +24,8 @@ client_scripts { server_script 'server/main.lua' -ui_page 'web/index.html' - files { 'client/**/*.lua', - 'web/**/*', 'carcols_gen9.meta', 'carmodcols_gen9.meta', } diff --git a/web/index.html b/web/index.html deleted file mode 100644 index 4ed8eb2..0000000 --- a/web/index.html +++ /dev/null @@ -1,6 +0,0 @@ - -
- - - - diff --git a/web/script.js b/web/script.js deleted file mode 100644 index cc500d2..0000000 --- a/web/script.js +++ /dev/null @@ -1,7 +0,0 @@ -const audioPlayer = new Howl({ src: ["sound.mp3"] }); - -window.addEventListener("message", (event) => { - if (event.data.sound) { - audioPlayer.play(); - } -}); diff --git a/web/sound.mp3 b/web/sound.mp3 deleted file mode 100644 index d4b88bb..0000000 Binary files a/web/sound.mp3 and /dev/null differ