Skip to content

10% off shop orders, applied at checkoutBlack Friday: 30% off until Dec 1Server templatesServer templates

RPScripts

Afterlife IV Loading Screen for FiveM

By Lena

Afterlife IV Loading Screen for FiveM
On this page

Afterlife IV Loading by AfterLifeStudio is a loading screen built with React and SCSS. It cycles through six locations (Paleto Bay, Union Depository, Legion Square, Bixby Bridge, Bakersfield and Malibu Beach), each with its own background image and quote, and plays one music track with a play/pause button. The code is published under GPL-3.0; the last commit is from 13 January 2025.

Requirements

No framework and no other resource. The repository already contains the built interface in ui/dist, so you only need Node.js if you change the React source. The manifest loads ui/dist/index.html, the built CSS and JavaScript from ui/dist/assets, PNG images from ui/images and MP3 files from ui/song.

Installation and customization

Copy the resource into resources, keep the folder structure and add an ensure line with your folder name to server.cfg. Two changes need no build: replace the PNG files in ui/images while keeping their names (paleto.png, union.png, legion.png, bixby.png, bakersfield.png, malibu.png), and replace ui/song/song.mp3. Location names and quotes live in ui/src/components/data.js, and the build bakes them into ui/dist, so rebuild after editing them:

cd ui
npm install
npm run build

The build script sets the base path to /ui/dist/, which matches the manifest. There is no config file and no volume setting; keep that in mind if you compare it with other entries in the loading screen category.

Checks before going live

The manifest sets loadscreen_manual_shutdown 'yes', and client.lua attaches a function to playerSpawned, but that function is empty. Nothing in the resource calls ShutdownLoadingScreenNui, which FiveM needs to close a manually controlled screen. If no other resource on your server, such as your spawn or character selection, closes it, add the call:

local shutdown = function ()
    ShutdownLoadingScreenNui()
end

The progress bar is a timer: it adds 0.3 percent every 100 milliseconds and fills after about 33 seconds, whatever the real loading state is. Join your server with all other loading-screen resources stopped and check the slide images, music autoplay and the handover into the game.

Sources

Original source

FiveM loading screen documentation

Related server guide

  • Advanced Loading Script for FiveM

    Advanced Loading Script for FiveM

    NC-LoadingScreenV4 by NaorNC is a standalone FiveM loading screen configured in html/js/config.js. Before launch, replace its random info-tab statistics and confirm that another resource closes the screen.

  • F1 Loading Screen V4 for FiveM

    F1 Loading Screen V4 for FiveM

    F1 Loading Screen V4 shows your server name over a muted YouTube video with a music player, all set in js/config.js. It closes on playerSpawned, and its bundled commercial songs should be replaced.

  • Informative Loading Screen for FiveM

    Informative Loading Screen for FiveM

    Informative Loading Screen is a three-tab FiveM loading screen without a config file: all text sits in index.html. Add loadscreen_cursor so players can click the tabs, and replace the placeholder text and images.