Xogy / xsound

Improved audio library for FiveM
MIT License
115 stars 82 forks source link

PlayUrlPos not working #50

Closed Bossman02 closed 1 year ago

Bossman02 commented 1 year ago

Describe the bug I am trying to play a local sound (stored in the sounds folder of xsound) by position and it does not play, however if instead of playing it by position I make it play only for a player it is heard, I have already tried to launch the playback from both client and server, and even with a youtube sound instead of a local one, with the same result in all cases.

This is the code i use in server side:

exports['xsound']:PlayUrlPos(-1, "dice", "./sounds/dice.mp3", 1, GetEntityCoords(GetPlayerPed(playerId)))
exports['xsound']:Distance(-1, "dice", 2.0)
Xogy commented 1 year ago

I have tested this code and it is working with no issue for me, make sure you have the sound there / have the newest version

https://github.com/Xogy/xsound/assets/49158267/d31cb9a9-6bd4-49a4-93c7-92c6cbd31f0a