Log in to reply
 

[C#] [Help] How to play music?



  • Hi everyone.

    I found some sound files in Open IV:

    0_1559563203013_OpenIV_2019-06-03_14-58-21.png
    Some files contains music (for example, ht_port_survey_docks.awc) , and I want to play it. Is there any way to play it? I will glad to receive some example code.

    Thanks in advance.



  • TRIGGER_MUSIC_EVENT
    EG:
    Function.Call(Hash.TRIGGER_MUSIC_EVENT, "JH1_START"); will play a song from one of Jewel Store heist setups, to get the audio names you either look in the scripts or in the metadata nametable files

    You can play another event after previous one which can change the intensity of the song, commonly named VEHICLE_CHASE, ACTION, SUSPENSE, STOP, AIRBORNE, SILENT, every START starts the song



  • @HeySlickThatsMe Thank you, it's working!)

    Also, is there any way to send SMS (with icon, from who, etc)?
    EDIT: Found

    Solved.


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.