Quantcast

Jump to content

» «
Photo

need help with native again

4 replies to this topic
mike43842
  • mike43842

    Player Hater

  • Members
  • Joined: 02 Feb 2013
  • None

#1

Posted 30 October 2013 - 11:44 AM

Hi people I have a problem with native "PLAY_FIRE_SOUND_FROM_POSITION(int sound_id, float x, float y, float z);" I can't understand why if I write to sound ID a name of song from .rpf archive radio_VLADIVOSTOK I write a name of song "KINO" and in msvc++ swhow that's is 

mistake. How can I write a name of song and then it's paly in game?

 


leftas
  • leftas

    C++ for hacks/mods, C# for everything else.

  • Members
  • Joined: 13 Jun 2013
  • Lithuania

#2

Posted 30 October 2013 - 05:16 PM

PLAY_SOUND
PLAY_SOUND_FROM_OBJECT
PLAY_SOUND_FROM_PED
PLAY_SOUND_FROM_POSITION
PLAY_SOUND_FROM_VEHICLE

I think you need to use these not "PLAY_FIRE_SOUND_FROM_POSITION"
here tutorial about playing sound http://gtaxscripting.blogspot.com/2013/03/tut-playing-native-sounds-and-external.html
Thanks @JulioNIB


mike43842
  • mike43842

    Player Hater

  • Members
  • Joined: 02 Feb 2013
  • None

#3

Posted 30 October 2013 - 08:08 PM

yeah I know I read this tutorial but I can't write a name of song only radiostantion name...


leftas
  • leftas

    C++ for hacks/mods, C# for everything else.

  • Members
  • Joined: 13 Jun 2013
  • Lithuania

#4

Posted 30 October 2013 - 09:07 PM Edited by leftas, 31 October 2013 - 11:03 AM.

You need to write filename in sound_id. I can't look how to play song from radio station, I will do it tomorrow. And write here.
Okay try GTA.Native.Function.Call ("PLAY_AUDIO_EVENT", "RADIO_VLADIVOSTOK_SHVAYNE") I didn't tried. Don't know if this works...

mike43842
  • mike43842

    Player Hater

  • Members
  • Joined: 02 Feb 2013
  • None

#5

Posted 31 October 2013 - 11:18 AM Edited by mike43842, 31 October 2013 - 11:26 AM.

nope :cry:  this is not work





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users