Skip to content

Commit

Permalink
it's NUI not NAudio
Browse files Browse the repository at this point in the history
  • Loading branch information
TonybynMp4 committed Feb 4, 2024
1 parent 7c9dc10 commit b790735
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 17 deletions.
5 changes: 4 additions & 1 deletion client/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 1 addition & 3 deletions fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,16 @@ shared_scripts {

client_scripts {
'@qbx_core/modules/playerdata.lua',
'@qbx_core/modules/lib.lua',
'client/utils.lua',
'client/menus/main.lua',
'client/zones.lua',
}

server_script 'server/main.lua'

ui_page 'web/index.html'

files {
'client/**/*.lua',
'web/**/*',
'carcols_gen9.meta',
'carmodcols_gen9.meta',
}
Expand Down
6 changes: 0 additions & 6 deletions web/index.html

This file was deleted.

7 changes: 0 additions & 7 deletions web/script.js

This file was deleted.

Binary file removed web/sound.mp3
Binary file not shown.

0 comments on commit b790735

Please sign in to comment.