PDA

View Full Version : PLaying Sound


Tamas
04-04-2009, 07:38 PM
Hello

How can i use the "playWaveForPlayer" function? Because i can't find any instructions on wiki.
I tried the following:

playWaveForPlayer(i,9,X,Y,Z)

Of course this piece of code is from original script file, so working. But i don't know how can i use the playwave function, i tried to rename the "9" value to "AirHornL.wav" but it seems something incorrect.

youlikethaaaat
04-25-2009, 07:59 PM
to use it do: playWaveForPlayer(PlayerID,<Wave file from gta audio folder without the .wav extension>)
so for example... playWaveForPlayer(PlayerID,"AirHornL")

sorry for bumping this thread... :p

Warr1or
04-30-2009, 02:07 AM
I'm sorry, but your example not work.

Knucis
05-03-2009, 02:55 PM
I'm sorry, but your example not work.
I think you can only load Wav files.. not MP3 ones

Warr1or
05-27-2009, 06:48 AM
ok, it works, but it works only with speech waves. Not music. Example playWaveForPlayer(PlayerID,"ass_1") would work and playWaveForPlayer(PlayerID,"miscom") would not work