Xogy / xsound

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

Sound attach to a entity #57

Closed FearlessNite345 closed 9 months ago

FearlessNite345 commented 10 months ago

Is your feature request related to a problem? Please describe. So im trying to make something like a car radio as well as boombox styled things you can pickup and walk around with but the problem with this is i cant just use the entities net id as its not the same per player so i have to use the coords currently but this makes it where i cant move the boombox/car or the sound name would then be invalid how can i solve this i was thinking if i could just attach it to the item it might be easier

Describe the solution you'd like if i could attach the sound to the entity it could allow me to use a different name possibly for the boombox/car radio

Describe alternatives you've considered Not really many tbh im stuck on how to fix this issue unless i can get help

Additional context nothing else