Xogy / xsound

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

Play sound from Entity #17

Closed killer1l closed 2 years ago

killer1l commented 2 years ago

Right now, what's missing from this glorious audio library is the ability to link sound to an entity.

This would work by updating the sound's coords based on entity position of local client, (would include checks to see if the entity is valid or not, and handle the sound afterwards), including volume distance, etc.

This can obviously be done in a script apart from xSound, however I believe an API implementation will be better suited to such a framework for developers.