Skip to content
FIVECRATE

FiveM Server-Side Graphics: Timecycles, Textures, Pure Mode

FiveM server-side graphics: stream a timecycle mod, set visual settings and replace textures from a resource, and use pure mode so every player sees one look.

Author: FiveCrate
Published:
Updated:
Read time: 11 min
Applies to
FiveM Legacy (FiveM source and native declarations of November 17, 2026) and FiveM for GTAV Enhanced early access, where pure mode is always on; any server, with or without a framework: PvP, racing, roleplay and others
Last verified

Direct Answer

FiveM server-side graphics are visual changes the server sends to every player as resources, so nobody installs a graphics pack by hand. A resource can mount a timecycle modifier file with data_file 'TIMECYCLEMOD_FILE' and apply it from a client script with SetTimecycleModifier, override visualsettings.dat values with SetVisualSettingFloat, and replace game textures by streaming a .ytd named like the game file. To keep players’ own graphics mods out, set sv_pureLevel: level 1 still allows known graphics mods, level 2 blocks all modified client files. FiveM for GTAV Enhanced always runs pure mode.

What “server-side graphics” means in FiveM

A graphics pack that a player installs lives on that player’s PC, and only that player sees it. A server-side pack is a resource on your server. The resource manifest docs describe what happens to its parts: files listed in it are “downloaded by clients upon loading the resource”, and a client_script is “a script to be loaded on the client”. Every player who joins gets the same files and runs the same script, with nothing to install.

That gives every player the same look, on a PvP, racing, roleplay or any other server. It also serves fairness. Cfx.re added pure mode in June 2022 because modified client files had become “a plague for a lot of servers due to players abusing them to gain unfair advantages over other players, especially in combat.” On the Cfx.re forum, one owner wrote that players had replaced skydome.ytd “so that the sky is always black”, and that he did not want them “to have that advantage in combat”.

Everything on this page works the same on every server, with or without a framework: it uses FXServer resources, data files and natives, not Qbox, ESX or QBCore code.

What a server can change, and where the sources stop

ChangeHow a server does itWhat the sources confirm
Timecycle modifiersA modifier XML mounted with data_file 'TIMECYCLEMOD_FILE', applied with SetTimecycleModifier; or built at runtime with the Cfx timecycle nativesDocumented: the Data Files page and the native declarations
visualsettings.dat valuesSetVisualSettingFloat from a client scriptDocumented as a temporary override; the data file list has no type for the file itself
Game textures (vehicles, buildings)A .ytd with the game file’s name in the resource’s stream folderFiveM’s source code replaces an already registered asset; forum posts report it working
Textures in skydome.ytd or graphics.ytdRestreaming the file did not work for forum users; AddReplaceTexture is the reported workaroundThe native is marked experimental: “please do not use in a live environment”
WeatherSetWeatherCycleEntry and ApplyWeatherCyclesDocumented natives
Blood, explosion and particle dataAMB_PROCEDURAL_BLOOD_FILE, EXPLOSIONFX_FILE, PTFXASSETINFO_FILEListed as data file types; the page names no file format for them
Players’ own graphics modssv_pureLevelDocumented

FiveCrate’s catalogue files packs of this kind under graphics.

How to stream a timecycle modifier to every player, step by step

A timecycle modifier is a named set of variables that a script switches on. The SetTimecycleModifier native “Loads the specified timecycle modifier. Modifiers are defined separately in another file (e.g. “timecycle_mods_1.xml”)”, and its examples are game modifiers such as V_FIB_IT3 and scanline_cam. The Data Files page lists TIMECYCLEMOD_FILE as the “Timecycle Mod” type, and its example is that same game file, timecycle_mods_1.xml. A timecycle pack that is mounted this way ships an XML file of the same kind; the catalogue’s timecycles type lists such packs.

  1. Get the modifier XML and its modifier name. The name is what your script applies. Open the XML from the pack and note the modifier name its author documents.

  2. Create the resource. Make a folder under resources, for example resources/[graphics]/my_timecycle, and put the XML in it.

  3. Write fxmanifest.lua. List the XML under files and declare it with data_file, the same way the docs example declares vehicles.meta. Add the client script that applies the modifier:

    fx_version 'cerulean'
    game 'gta5'
    
    files {
        'timecycle_mods_custom.xml',
    }
    
    data_file 'TIMECYCLEMOD_FILE' 'timecycle_mods_custom.xml'
    
    client_script 'client.lua'

    The file name timecycle_mods_custom.xml stands for your pack’s file. Every manifest line is explained in fxmanifest.lua explained.

  4. Apply the modifier in client.lua. The script calls SetTimecycleModifier with the modifier name from step 1. A pack that comes with its own script already does this; keep that script.

  5. Start the resource. Add ensure my_timecycle to server.cfg and restart the server. The general routine, including the start order, is in how to install FiveM scripts.

  6. Join and compare. Every player who joins downloads the XML and runs the script, so the look you see is the look they see.

The same route appears on the Cfx.re forum. A reply in the May 2023 Community Pulse thread says to “Save the xml in a resource folder and add following mounter in your manifest”, followed by the TIMECYCLEMOD_FILE line, and then to apply it with the native.

Build or change a modifier at runtime: the Cfx timecycle natives

The May 2023 Community Pulse announced a “full-fledged runtime timecycle editor available in FxDK mode” and “natives allowing to edit timecycles in runtime”. With those natives a client script can make a modifier without any XML file:

  • CreateTimecycleModifier makes a “clean timecycle modifier”. The name “must be unique”, and the native returns the new index, “or -1 if failed”.
  • CloneTimecycleModifier copies an existing modifier under a new name.
  • SetTimecycleModifierVar sets one variable of a modifier with two values; the docs example uses the variable postfx_noise.

This is the example from the CloneTimecycleModifier docs. It copies the game’s underwater modifier and applies the copy:

local sourceName = "underwater"
local cloneName = "my_awesome_timecycle"

local clonedIndex = CloneTimecycleModifier(sourceName, cloneName)
if clonedIndex ~= -1 then
    SetTimecycleModifier(cloneName)
end

Weather timecycles

The docs example for TIMECYCLEMOD_FILE is a modifier file. They say nothing about the per-weather timecycle files. A forum answer from December 2021 mounts the weather files, such as w_clear.xml and w_blizzard.xml, with the same type, next to timecycle_mods_4.xml; another reply in that thread points to the ForceSnowPass native for snow. Because no official page confirms the weather-file route, try it on a test server first.

The weather itself is set by script. SetWeatherCycleEntry names each weather in the cycle and its length, ApplyWeatherCycles starts the list, and once applied the list “will run sequentially, and repeat after reaching the end”. SetWeatherOwnedByNetwork decides whether the network subsystem owns the weather.

Visual settings: SetVisualSettingFloat

Values in the game’s visualsettings.dat can be changed from a resource too. The data file list has no type for visualsettings.dat, so the native SetVisualSettingFloat is the documented way to change its values from a server resource. It is a client native that “Overrides a floating point value from visualsettings.dat temporarily”. Its example value name is pedLight.color.red. As a client native it changes the game of the player whose script calls it, so a client_script in your resource is what applies it for every player.

Replace game textures with a streamed .ytd

A texture dictionary (.ytd) in a resource’s stream folder that carries the name of a game dictionary replaces the game’s own copy. FiveM’s source code shows how: when a streamed file has the name of an asset the game already registered, the client replaces the earlier entry with the streamed one and reports it only as the debug line overriding handle for. FiveCrate’s catalogue lists road, terrain and vegetation replacements as road and tree textures.

Forum posts set the limits:

  • Vehicles and buildings work. A forum post from May 2022 describes a .ytd named like the game file, such as zentorno.ytd, working “for vehicles, buildings and so on”.
  • skydome.ytd and graphics.ytd do not. The same poster could not stream them. A reply from March 2026 believes skydome.ytd “is controlled by RAGE before FiveM is even loaded”, so restreaming it does not take effect.
  • AddReplaceTexture is the reported workaround. A reply from April 2026 says textures from graphics.ytd, skydome.ytd and vehshare.ytd can be replaced with that native instead. The same user reports that it “works most of the time” and “seems to have some problems with larger textures”. The native’s own documentation says: “Experimental natives, please do not use in a live environment.” CreateRuntimeTxd, which “Creates a runtime texture dictionary with the specified name”, is the related native for textures built at runtime.

Replacement textures are streamed files like any other, so FXServer checks their declared size when the resource starts and warns above 16 MiB. Large world textures fill players’ streaming memory: read the oversized assets guide before you ship a pack, and the texture loss guide if roads or buildings start to go missing.

Pure mode: keep players’ own graphics mods out

Server-side graphics only give everyone the same picture when players cannot add their own changes on top. That is what sv_pureLevel does. The docs call it “A console variable used to prevent users from using modified client files” and list two levels:

LevelWhat it blocks
1“all modified client files except audio files and known graphics mods”
2“all modified client files”

Mods a player installed in the FiveM folder are then ignored, and a player who changed the base game files gets an error that names the file. Add the line to server.cfg, for example sv_pureLevel 2; the June 2022 announcement wrote the lines as sets sv_pureLevel 1 and sets sv_pureLevel 2.

Choose the level by what you want to allow:

  • Level 1 lets players keep audio mods and “known graphics mods”. The docs do not list those mods; in June 2022 the announcement said that only one older mod-signing style was handled.
  • Level 2 blocks every modified client file, graphics and audio alike, so the look your resources stream is the only one on the server.
  • Players restart once. A player who joins from a server with another pure level restarts the game first, as with a different game build.

Pure mode was released as “an early prototype” in June 2022. The other server security settings, and what each can break, are in the anticheat settings guide. PvP servers combine it with the server settings in the PvP server guide.

Server-side graphics on FiveM for GTAV Enhanced

  • Players cannot bring their own graphics mods. FiveM for GTAV Enhanced always runs pure mode, and graphic mods cannot be used during early access. A look that every player shares can only come from your resources.
  • Textures need Enhanced files. Replacement textures for Enhanced go in stream_enhanced, which is loaded instead of stream when it exists. A Legacy .ytd needs converting with Alchemist, which supports YTD files; the Alchemist conversion guide covers it.
  • Timecycle XML and natives. The Enhanced changes page does not mention timecycle files or the visual setting natives. Test a timecycle pack on an Enhanced test server before you rely on it there.

Troubleshooting

The timecycle modifier does not apply

Check the manifest first: the XML must be under files and in a data_file 'TIMECYCLEMOD_FILE' line with the same file name. Then check that client.lua is listed as a client_script and calls SetTimecycleModifier with the modifier name exactly as the XML spells it. Restart the resource and reconnect.

The replaced texture does not show

The .ytd must carry the exact name of the game dictionary it replaces, and it must sit in the resource’s stream folder (stream_enhanced on Enhanced, if the resource has one). The client confirms a takeover only with the debug line overriding handle for. If the dictionary is skydome.ytd or graphics.ytd, restreaming is the case forum users could not make work.

Players still see their own graphics mod

Level 1 still allows “known graphics mods”. Set sv_pureLevel 2 to block all modified client files.

Players have to restart the game when they join

Their last server used another pure level. The restart happens once per change, as with a different game build.

Roads or buildings go missing after adding a graphics pack

The pack’s textures fill the players’ streaming memory. Read the size lines in the server console and follow the texture loss guide.

AddReplaceTexture works only some of the time

Its docs mark it experimental and “please do not use in a live environment”, and a forum user reports problems “with larger textures”. Prefer a streamed .ytd with the game file’s name where that works.

Next Steps

Graphics & visual packs from FiveCrate

Listed in the FiveCrate catalogue now.

Browse assets →

Official documentation and repository references