Does anyone know the sound ID for m4/ak47? Like a single shot sound. I could find it at GTA SA sfx, general sound, library 137, sound 004. But the problem is, how do you get the sound ID? I've tried many apps that are out there, but they don't seem to have it.

Why don't you use an audio streamer? Find the sound fx you want, upload it somewhere and stream it into your server? I know it's a little hacky and in no way ideal, but it'd work?

What your suggesting is what I even thought of, but as you see I'm planning to make gun shot sounds each time a player hits some key, imagine the stream client message spamming the chat box each time a player hits a key, etc.Spacebar..... How bad it will look. That's why I'm looking for PlayPlayerSound, which should be better. Anyway, thanks for sharing your opinion.

Audio Plugin would be the best idea. Using default Audio Streams is very bad for this as there is a noticable delay between triggering the sound and the playback, this is especially bad for sounds that are short and played in a high frequency (like gun sounds).

The alternative would be making the sound longer and repetetive at the exact same frequency as the gunfire, so you don't play the sound on each shot, but rather for the whole duration it is shooting. This would probably not perfectly sync with the actual gun shots but it's, as far as I can see, the best approach using default Audio Streams without spamming the chat or having sounds interrupted/not played because of the delay.