Fade screen in from black on player load / spawn?

Hey guys! Just got started with scripting in FiveM, and I have a quick question on how I should approach this idea I have.

Currently, I have developed a load screen for my server, where the web page fades to black when the client is done loading. It doesn’t work perfectly, but for now it gets the job done.

Here’s it in action if anyone wants to take a peek!

Testing fade out

What I wanted to do want to make it a “seamless” experience spawning in the server, but I’m confused on where to start with scripting it.

At first, I thought to create an Event Handler that follows “onClientResourceStart”, but even then I don’t know what resource loads first in the client, along with figuring out what to do with the fade in natives.

image

If anyone has some pointers, or tips on how I could accomplish this, it would be very appreciated!

Thanks!

after your loadscreen finishes fivem has its own resource loading screen. so you wont be able to make it completely seamless bro. :frowning:

You can manually shutdown the loadingscreen so you won’t have the ‘bridge’

Damn…

leaves conversation

:sweat_smile:

1 Like

How ?

1 Like