[Request] Calling Audio Forward via Hash

I’m pretty sure there’s some way to do this, however, in the runtime FiveM reference list, there doesn’t seem to be a section for it.

I’m hoping that the FiveM developers can create a function to call forward audio files via hash, for example:

PlaySoundFromHash(example, “0x0D329446”, veh, 0, 0, 0)

This would call forth the exact file name found in the Resident.RPF file and make things a bit simpler on developers, namely siren-system (Lt. Caine’s Luxart, MrDaGree’s ELS, EJB’s ELS) developers.

Why don’t you just remove the quotes so lua treats it as a number value so it becomes the hash? (221418566 in your case)

PlaySoundFromHash(example, 0x0D329446, veh, 0, 0, 0)

Sadly, I’ve attempted that and it hasn’t worked. I believe it would need to be implemented separately as a new function.

Oh I misunderstood what this was, I thought you couldn’t get the function to work, not that it didn’t exist.

I think this could solve my static emitters “problem” as well Adding New Static Emitters

I’d love to see something like this implemented.