Log in to reply
 

MUSIC EVENTS



  • Was looking at the GTA scripts for some music events i wanted to use in my scripts and figured i might as well post them here in case someone else wanted to use them. These are used with the TRIGGER_MUSIC_EVENT native function.

    Business battle music events:
    "BTL_IDLE_START"
    "BTL_MED_INTENSITY_START";
    "BTL_GUNFIGHT_START";
    "BTL_SUSPENSE";
    "BTL_MED_INTENSITY";
    "BTL_DELIVERING";
    "BTL_GUNFIGHT";
    "BTL_VEHICLE_ACTION";
    "BTL_DELIVERING_START";
    "BTL_MUSIC_STOP";
    "BTL_FAIL";
    "IE_COUNTDOWN_30S_KILL"
    "FM_COUNTDOWN_30S_KILL"
    "FM_COUNTDOWN_30S_FIRA"

    Survivals music events:
    "MP_SM_STOP_TRACK"
    "MP_MC_STOP"
    "SM_CS_W1_START_ALL"
    "SM_W1_START_ALL"
    "SM_CS_W{1 <= intensity <= 10}_START"
    "SM_W{1 <= intensity <= 10}_START"
    "SM_CS_W{1 <= intensity <= 10}_MED"
    "SM_W{1 <= intensity <= 10}_MED"
    "SM_CS_W{1 <= intensity <= 10}_HIGH"
    "SM_W{1 <= intensity <= 10}_HIGH"
    "SM_W{1 <= intensity <= 10}_END"
    "MP_SM_CS_STOP_TRACK"



  • @JustDancePC thanks for posting them. You can find the complete list, unfortunately without categories, here:

    https://pastebin.com/RzDFmB1W

    and

    https://pastebin.com/GnYt0R3P



  • More music events. These are used in the MC contracts

    STAND YOUR GROUND:
    "BIKER_SYG_START"
    "BIKER_SYG_ATTACKED"
    "BIKER_SYG_CALM"
    "BIKER_SYG_START_ATTACKER"
    "BIKER_MP_MUSIC_STOP"
    "BIKER_MP_MUSIC_FAIL"

    CONTRABAND DEFEND:
    ALL MODES:
    "BIKER_MP_MUSIC_STOP"
    "BIKER_MP_MUSIC_FAIL"

    POLICE RAID:
    "BIKER_DEFEND_POLICE_RAID_START"
    "BIKER_DEFEND_POLICE_RAID_FIGHT"
    "BIKER_DEFEND_POLICE_RAID_SWAT_VAN"
    "BIKER_DEFEND_POLICE_RAID_DELIVERING"
    "BIKER_DEFEND_POLICE_RAID_DELIVERING_TO_BASE"
    
    DEFEND SNITCH:
    "BIKER_DEFEND_SNITCH_START"
    "BIKER_DEFEND_SNITCH_FIGHT"
    "BIKER_DEFEND_SNITCH_DELIVERING"
    "BIKER_DEFEND_SNITCH_DELIVERING_2"
    
    GETAWAY:
    "BIKER_DEFEND_GETAWAY_START"
    "BIKER_DEFEND_GETAWAY_FIGHT"
    "BIKER_DEFEND_GETAWAY_DELIVERING"
    
    CRASH DEAL:
    "BIKER_DEFEND_CRASH_DEAL_START"
    "BIKER_DEFEND_CRASH_DEAL_FIGHT"
    "BIKER_DEFEND_CRASH_DEAL_DELIVERING"
    
    RETRIEVAL:
    "BIKER_DEFEND_RETRIEVAL_START"
    "BIKER_DEFEND_RETRIEVAL_FIGHT"
    "BIKER_DEFEND_RETRIEVAL_DELIVERING"
    
    WEED DEFEND:
    "WEED_DEFEND_SHOOTOUT_START"
    "WEED_DEFEND_SHOOTOUT_FIGHT"
    "WEED_DEFEND_SHOOTOUT_PREPARE"


  • @JustDancePC thank you very much for posting
    how did you find them? which files in openiv contain these infos?



  • @MaxLuk Someone uploaded the decompiled scripts to github, so i just look at the scripts there: https://github.com/Sainan/GTA-V-Decompiled-Scripts

    There you can open whatever script you wanna look at, and if you're looking for music events just use the browser search function (CTRL + F) and look for TRIGGER_MUSIC_EVENT.

    The ones i have posted so far i found them in fm_survival_controller.c and the bikers was a collection of all the names found between all the scripts with the name gb_biker



  • Music events from the Hunt The Beast Freemode event in GTA Online:
    "BST_START"
    "BST_STOP"

    Unlike other music events, it's always the same song or beat, whatever you wanna call it. And it's kind of a low intensity beat. You can call the music event "FIN1_SHOOTOUT_4" to increase the intensity and use "BST_START" again to decrease it.

    Edit: these were already in the old pastebin with the music events... Well, i will leave this here just for the recommendation posted above



  • The new DLC has some great music events sounding in the missions, I haven't seen anyone decompile those scripts, so in the meantime, here are the music events used in the Tuners update auto shop jobs:

    TUNER_DELIVERING_START
    TUNER_SUSPENSE_START
    TUNER_SUSPENSE
    TUNER_VEHICLE_ACTION
    TUNER_MED_INTENSITY
    TUNER_GUNFIGHT
    TUNER_DELIVERING
    TUNER_IDLE
    TUNER_FAIL
    TUNER_MUSIC_STOP

    Also, if you ever use music events in your scripts you might notice that those events get cancelled (meaning the music stops) when you get a 3 star wanted level or use any kind of aircraft. To avoid that problem, you must cancel those music events:

    AUDIO::SET_AUDIO_FLAG("DisableFlightMusic", true)
    AUDIO::SET_AUDIO_FLAG("WantedMusicDisabled", true)



  • More music events from the DLCs. This time Casino, Cayo Perico and the latest one, The Contract.

    CASINO HEIST:

    "CH_IDLE_START"
    "CH_MED_INTENSITY_START"
    "CH_GUNFIGHT_START"
    "CH_SUSPENSE"
    "CH_MED_INTENSITY"
    "CH_DELIVERING"
    "CH_GUNFIGHT"
    "CH_VEHICLE_ACTION"
    "CH_DELIVERING_START"
    "CH_IDLE"
    "CH_SILENT"
    "CH_MUSIC_STOP"
    "CH_FAIL"
    "CH_STAFF_PROBLEMS_CROUPIER_CHASE_START"

    CASINO PREP MISSIONS:

    "H3_CELEB_3_START"
    "H3_CELEB_3_DESTROY"
    "H3_CELEB_3_WANTED"
    "H3_CELEB_3_WANTED_LOST"

    CASINO YUNG ANCESTORS PREP:
    Note: These are used in the second Yung ancestors mission when you take the dead prostitute to the altruists

    "H3_CELEB_2_START"
    "H3_CELEB_2_ALTRUIST_STOP"
    "H3_CELEB_2_ALTRUIST"

    CASINO?:
    Note: These are in the scripts related to the casino, I'm not really sure where exactly they are used... Ms Baker missions maybe?.

    Note 2: These music events start a slightly different version of the music used in business battle

    "VWC_STAFF_PROBLEMS_CROUPIER_CHASE_START"
    "VWC_DELIVERING_START"
    "VWC_IDLE_START"
    "VWC_MED_INTENSITY_START"
    "VWC_GUNFIGHT_START"
    "VWC_VEHICLE_ACTION"
    "VWC_SUSPENSE"
    "VWC_IDLE"
    "VWC_MED_INTENSITY"
    "VWC_DELIVERING"
    "VWC_GUNFIGHT"
    "VWC_MUSIC_STOP"
    "VWC_FAIL"

    CAYO PERICO:

    "HEI4_IDLE_START"
    "HEI4_SUSPENSE_START"
    "HEI4_DELIVERING_START"
    "HEI4_GUNFIGHT"
    "HEI4_IDLE"
    "HEI4_SUSPENSE"
    "HEI4_VEHICLE_ACTION"
    "HEI4_MED_INTENSITY"
    "HEI4_FAIL"
    "HEI4_MUSIC_STOP"

    THE CONTRACT:

    "FIXER_IDLE_START"
    "FIXER_MED_INTENSITY_START"
    "FIXER_SUSPENSE_START"
    "FIXER_DELIVERING_START"
    "FIXER_VEHICLE_ACTION"
    "FIXER_MED_INTENSITY"
    "FIXER_DELIVERING"
    "FIXER_GUNFIGHT"
    "FIXER_IDLE"
    "FIXER_SUSPENSE"
    "FIXER_FAIL"
    "FIXER_MUSIC_STOP"



  • Does anyone know original heists trigger music events? Thanks!



  • @Zibulaatio The music events used in the story mode heists? They can be found here. Sadly, that list isn't ordered so, you can either play each music event in-game using the SHVDN console (or whatever other method you prefer), or, take a look at the decompiled scripts and search for "TRIGGER_MUSIC_EVENT" instances to see exactly which events were used in each heist.



  • If anyone is interested I have created a menu that sorts music events both alphabetically by mission name and chronologically if applicable. This should make it much easier to test music events for use in mods. It's open source so anyone can contribute with naming music events and ordering them. This is very easy to do as all music events as well as their names are stored in a JSON file and the menu will automatically create submenus based on the contents of that file. The menu also contains other tools I've made over time to make modding easier since I preferred to have everything in one menu.

    I ordered music events based on how the scripts use them, however I cannot guarantee all of them are ordered correctly because sometimes the scripts themselves do not flow chronologically as you scroll through them. Luckily most music events from story mode reference some specific event in their respective missions that occurs around the time they are triggered. This makes it pretty clear when they occur chronologically. Also, I have not figured out what content some music events originate from and as a result I have not given them names. This mostly pertains to music events from online DLC's, so if anyone is more knowledgeable about online content feel free to add them to the menu. Progress regarding music events that have not been named can be found on the discussions section of the Github repository.

    Edit: links have been added



  • @slav_exe

    The forum is not allowing me to send links or embed anything because I don't have enough reputation so all I can do is say the menu is called "Slav Menu" and its on this website...





  • @JohnFromGWN

    Thank you so much lmao



  • @slav_exe you're welcome. Thank you for providing source code.



  • @slav_exe I will download and test your mod this weekend, but your prop function reminds me of one of my first scripts.

    It was done in vb dot net

    Initialize the script with this, starting coordinates are usually in the ball park of 0.
    PedPlayer = Game.Player.Character
    Ped4 = World.CreatePed(PedHash.Vagos01GFY, PedPlayer.Position + New Vector3(-2, -2, 0))
    MyCup = World.CreateProp("apa_prop_cs_plastic_cup_01", Ped4.GetOffsetInWorldCoords(New Vector3(0, 3, 0)), True, True)
    PosX1 = 0.01 : PosY1 = 0.06 : PosZ1 = -0.03 'X, Y, Z
    PosX = 4 : PosY = 36 : PosZ = 0 'Pitch/Yaw/Roll
    MyCup.AttachTo(Ped4, 60, New Vector3(PosX1, PosY1, PosZ1), New Vector3(PosX, PosY, PosZ))

    Then attach this to key binding to increment/decrement each of the 6 coordinates. The pitch, yaw, roll will need higher values, 4 or 5 instead of .005.
    PosX1 = PosX1 + 0.005
    MyCup.AttachTo(Ped4, 60, New Vector3(PosX1, PosY1, PosZ1), New Vector3(PosX, PosY, PosZ))
    Call DisplayCoords()

    Finally, note the coords with something like this:
    UI.ShowSubtitle("Final: X = " & PX1 & " Y = " & PY1& & " Z = " & PZ1 & "~n~ ~b~ X = " & PX & " Y = " & PY& & " Z = " & PZ, 28000)

    I used 12 key bindings, would be much easier to do with LemonUI or NativeUI. Will eventually rewrite this.
    The value 60 represents the bone for the hand. What I did was save it in Menyoo and then lookedup the value 60 in the xml file. But you can find these values with google as well.



  • @JohnFromGWN

    You're welcome. I originally just wanted to create a small tool to help me test music events, but it eventually turned into countless hours making a proper menu and giving the music events names and whatnot. It was definitely worth it though and I found out some interesting things along the way. For example, I'm pretty certain Rockstar actually made a mistake when they named the music event MIC3_FRANK_DOWN because it's used in the mission Fresh Meat (michael2.c), yet its name references The Wrap Up (michael3.c)... I don't know if anyone noticed this before but I though that was pretty cool.



  • @JohnFromGWN

    Yeah I made the menu using LemonUI since it features those slider bar elements which make it easier to use. Also figuring out how to automatically generate submenus based on a JSON file's contents took a while since I don't think LemonUI was really intended for that, but I as far as I can tell there are no bugs and it actually runs smoothly which surprises me considering how many submenus must be created.



  • @slav_exe

    I did one in LemonUI and C# afterwards but it wasn't that great. But it was fun.

    There is another texture mod, called Decal

    but it is a little buggy, a little inconsistent, and no longer supported I think (last update 2020).

    So your UI/Texture menu and functionality is the one that interests me and because I prefer my own MP3s!


Log in to reply
 

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