Stream .xml files?

Hey, I’m looking to see how I can stream the ‘weather.xml’ file.

My goal is to create something to allow to use the weather type ‘BLIZZARD’ simultaneously with ‘XMAS’.
This can be achieved by editing the ‘BLIZARD’ ground setting to VFX_SNOW_HEAVY_GROUND
however I have no way to stream this file on my server.

Anyone know?

1 Like

You don’t need to stream them as ymap’s or ytyp’s etc. You just put it inside the resource and call it inside the fxmanifest Resource manifest - Cfx.re Docs , Data files - Cfx.re Docs , Resource manifest - Cfx.re Docs

What type of data file is it?

Edit: its a timecycle file

looks something like this in fxmanifest.lua

fx_version 'cerulean'

games {'gta5'}

data_file 'TIMECYCLEMOD_FILE' 'timecycle_mods_4.xml'

data_file 'TIMECYCLEMOD_FILE' 'w_blizzard.xml'

data_file 'TIMECYCLEMOD_FILE' 'w_clear.xml'

data_file 'TIMECYCLEMOD_FILE' 'w_clearing.xml'

data_file 'TIMECYCLEMOD_FILE' 'w_clouds.xml'

data_file 'TIMECYCLEMOD_FILE' 'w_extrasunny.xml'

data_file 'TIMECYCLEMOD_FILE' 'w_foggy.xml'

data_file 'TIMECYCLEMOD_FILE' 'w_neutral.xml'

data_file 'TIMECYCLEMOD_FILE' 'w_overcast.xml'

data_file 'TIMECYCLEMOD_FILE' 'w_rain.xml'

data_file 'TIMECYCLEMOD_FILE' 'w_smog.xml'

data_file 'TIMECYCLEMOD_FILE' 'w_snow.xml'

data_file 'TIMECYCLEMOD_FILE' 'w_snowlight.xml'

data_file 'TIMECYCLEMOD_FILE' 'w_thunder.xml'

data_file 'TIMECYCLEMOD_FILE' 'w_xmas.xml'

files {

    'timecycle_mods_4.xml',

    'w_blizzard.xml',

    'w_clear.xml',

    'w_clearing.xml',

    'w_clouds.xml',

    'w_extrasunny.xml',

    'w_foggy.xml',

    'w_neutral.xml',

    'w_overcast.xml',

    'w_rain.xml',

    'w_smog.xml',

    'w_snow.xml',

    'w_snowlight.xml',

    'w_thunder.xml',

    'w_xmas.xml'

}

If you just want snow to show up unconditionally, there’s a special native for that here:

ForceSnowPass - Natives @ Cfx.re Docs (fivem.net)