{"slug":"audio/create_stream","category":"audio","title":"Create stream","kind":"markdown","intro":"","body":"// 0x0556C784FA056628\n```c++\nint _Create_Stream(char* streamName, char* soundSet);\n```\n\nExample:\n\n```lua\nlocal soundSet , streamName = \"1\",\"inworld_music_banjo\"\nlocal timeout = 0\nwhile not LoadStream(soundSet , streamName) do\n    Wait(1)\n    timeout = timeout + 1\n    if timeout > 200 then\n        break\n    end\nend\nlocal streamedmusic = Citizen.InvokeNative(0x0556C784FA056628,soundSet , streamName)\nPlayStreamFromPosition(GetEntityCoords(PlayerPedId()),streamedmusic)\nWait(10000)\nStopStream(streamedmusic)\n```\nYou can then use via PlayStreamFromPed etc.\n\n\n|soundSet|streamName|\n|:-|:-|\n| 1 between 10 | inworld_music_concertina |\n| 1 between 10 | inworld_music_mandolin_upbeat |\n| 1 between 14 | inworld_music_banjo |\n| 1 between 15 | inworld_music_mandolin |\n| 1 between 17 | inworld_music_guitar |\n| 1 between 2 | inworld_music_fiddle |\n| 1 between 2 | inworld_music_jawharp_downbeat |\n| 1 between 3 | inworld_music_harmonica_upbeat |\n| 1 between 3 | inworld_music_trumpet_upbeat |\n| 1 between 4 | inworld_music_concertina_upbeat |\n| 1 between 4 | inworld_music_harmonica_downbeat |\n| 1 between 4 | inworld_music_jawharp_upbeat |\n| 1 between 4 | inworld_music_wax_cylinder_swamp_boat |\n| 1 between 5 | inworld_music_fiddle_downbeat |\n| 1 between 5 | inworld_music_mandolin_downbeat |\n| 1 between 6 | inworld_music_concertina_downbeat |\n| 1 between 6 | inworld_music_jawharp |\n| 1 between 6 | inworld_music_trumpet |\n| 1 between 7 | inworld_music_banjo_downbeat |\n| 1 between 7 | inworld_music_banjo_upbeat |\n| 1 between 7 | inworld_music_fiddle_upbeat |\n| 1 between 7 | inworld_music_harmonica |\n| 1 between 8 | inworld_music_guitar_upbeat |\n| 1 between 9 | inworld_music_guitar_downbeat |\n| altered_state | MP005_MPICLS_Sounds |\n| ambience_stream | rdopn_sounds |\n| AS_ROWDY_BREAKOUT | 66003688_rowdy |\n| AS_ROWDY_DIALOGUE | 66003688_rowdy |\n| Audience | Cartoon_Direct_Current_Soundset |\n| Audience | Cartoon_Farmers_Daughter_Soundset |\n| Audience | Cartoon_Modern_Medicine_Soundset |\n| Audience | Cartoon_Sketching_For_Sweetheart_Soundset |\n| Audience | Cartoon_Strongest_Man_Soundset |\n| Audience | ML_Bear_Story_Soundset |\n| Audience | ML_Bear_Story_Soundset_Tent |\n| Audience | ML_Blackwater_Soundset |\n| Audience | ML_Blackwater_Soundset_Tent |\n| Audience | ML_Ghost_Story_Soundset |\n| Audience | ML_Ghost_Story_Soundset_Tent |\n| Audience | ML_Man_Flight_Soundset |\n| Audience | ML_Man_Flight_Soundset_Tent |\n| Audience | ML_See_The_World_Soundset |\n| Audience | ML_See_The_World_Soundset_Tent |\n| beaver_hollow | es_camp_memory_sounds |\n| Boat_Explosion | smg2_sounds |\n| button_press | Strange_Statues_Sounds |\n| CABIN_CRUMBLE | RC_ES_EVELYN_MILLER_CABIN_CRUMBLE_SOUNDSET |\n| cabin_fiddle_music | wnt1_sounds |\n| clemens_point | es_camp_memory_sounds |\n| CLOUD_BED | DEATH_FAIL_RESPAWN_SOUNDS |\n| colter | es_camp_memory_sounds |\n| CROWD_WALLA | REPH_Sounds |\n| Curtain_Open_Music | 3160317806_action |\n| Curtain_Opens_Music | 2245181467_action |\n| D_Choking_Loop | 4224921010_action |\n| danse_tzigane | inworld_music_wax_cylinder_nazar |\n| DINO_MIDSTAGE | 267765497_leadin_front |\n| EASTER_EGG_LEADUP_MUSIC | 3235391231_intro |\n| EASTER_EGG_TADA_MUSIC | 3235391231_intro |\n| Escape_Noose_Curtain_Music | 4224921010_action |\n| EVE1 | Pronghorn_CAPRO_Evenings_Sounds |\n| EVE10 | Pronghorn_CAPRO_Evenings_Sounds |\n| EVE11 | Pronghorn_CAPRO_Evenings_Sounds |\n| EVE12 | Pronghorn_CAPRO_Evenings_Sounds |\n| EVE2 | Pronghorn_CAPRO_Evenings_Sounds |\n| EVE3 | Pronghorn_CAPRO_Evenings_Sounds |\n| EVE4 | Pronghorn_CAPRO_Evenings_Sounds |\n| EVE5 | Pronghorn_CAPRO_Evenings_Sounds |\n| EVE6 | Pronghorn_CAPRO_Evenings_Sounds |\n| EVE7 | Pronghorn_CAPRO_Evenings_Sounds |\n| EVE8 | Pronghorn_CAPRO_Evenings_Sounds |\n| EVE9 | Pronghorn_CAPRO_Evenings_Sounds |\n| fortune_teller | fortune_teller_soundset |\n| gang_arrival_mar_5_2 | lar1_sounds |\n| gang_arrival_mar_5_3 | lar1_sounds |\n| Getup_Music | 1181848519_action |\n| Getup_Music | 2776371118_action |\n| GunBattle_Far | NTV3_Sounds |\n| horseshoe_overlook | es_camp_memory_sounds |\n| Interrupt1_Music | 1181848519_action |\n| Interrupt1_Music | 2150989330_action |\n| Interrupt1_Music | 2776371118_action |\n| Interrupt1_Music | 2926102026_action |\n| Interrupt2_Music | 1181848519_action |\n| Interrupt2_Music | 2776371118_action |\n| Interrupt2_Music | 2926102026_action |\n| Interrupt3_Music | 2926102026_action |\n| LIGHTNING_TOWER_STRIKE | RCKPT2_Sounds |\n| Loading | LAS_loading_sounds |\n| Panic_Fire | NTS3_Sounds |\n| PlayerChallenge_Loop_Music | FlexFight_Player_Challenge_Sounds |\n| Post_Show_Dars_Ragtime_on_de_Moon_Music | 3235391231_intro |\n| Post_Show_Dars_Ragtime_on_de_Moon_Music | wax_cylinder_show_music |\n| Post_Show_La_Bohemienne_Music | 3235391231_intro |\n| Post_Show_La_Bohemienne_Music | wax_cylinder_show_music |\n| Post_Show_Rough_Riders_March_Music | 3235391231_intro |\n| Post_Show_Rough_Riders_March_Music | wax_cylinder_show_music |\n| Post_Show_The_Harlem_Rag_Music | 3235391231_intro |\n| Post_Show_The_Harlem_Rag_Music | wax_cylinder_show_music |\n| Post_Show_The_Mississippi_Rag_Music | 3235391231_intro |\n| Post_Show_The_Mississippi_Rag_Music | wax_cylinder_show_music |\n| Pre_Show_Galop_du_Carnival_Music | 3235391231_intro |\n| Pre_Show_Galop_du_Carnival_Music | wax_cylinder_show_music |\n| Pre_Show_Ma_Ragtime_Baby_Music | 3235391231_intro |\n| Pre_Show_Ma_Ragtime_Baby_Music | wax_cylinder_show_music |\n| Pre_Show_The_Bosn_Rag_Music | 3235391231_intro |\n| Pre_Show_The_Bosn_Rag_Music | wax_cylinder_show_music |\n| Pre_Show_The_Keyhole_in_the_Door_Music | 3235391231_intro |\n| Pre_Show_The_Keyhole_in_the_Door_Music | wax_cylinder_show_music |\n| Pre_Show_Walking_for_dat_Cake_Music | 3235391231_intro |\n| Pre_Show_Walking_for_dat_Cake_Music | wax_cylinder_show_music |\n| punch_fortune_teller | fortune_teller_soundset |\n| Run_Music | 1181848519_action |\n| Run_Music | 2150989330_action |\n| Run_Music | 2776371118_action |\n| Run_Music | 2926102026_action |\n| shady_belle | es_camp_memory_sounds |\n| SMG2_Des | smg2_sounds |\n| statue_door_open | Strange_Statues_Sounds |\n| Tower_Collapse_Stream | GUA3_Sounds |\n| track | inworld_music_wax_cylinder_photostudio |\n| Walla_Drunk | BRT1_Sounds |\n| WALLA_JEERING | MUD2_Sounds |\n| WIND_DUTCH_CONFRONTATION | wnt1_sounds |\n| WIND_LEAVE_CABIN | wnt1_sounds |\n| WIND_RIDE_FROM_CAMP | wnt1_sounds |\n| WIND_RIDE_TO_CABIN | wnt1_sounds |\n| WIND_RIDE_TO_MICAH | wnt1_sounds |\n| WIND_RIDE_TO_OVERLOOK | wnt1_sounds |\n| WIND_WALK_TO_CABIN | wnt1_sounds |\n","tables":[],"sourceUrl":"https://github.com/femga/rdr3_discoveries/tree/477aaaccadb7f0c042286611d9939009636cff12/audio/create_stream","rows":[]}