Hello,
I want to run and execute a script after the loading screen. Is there any way to know if the game has already loaded?
Thanks for reading! 
MadsL
2
The scripts get loaded right after the initial loading screen is finished. So something like this would in theory print “script was loaded” when the script is executed.
CreateThread(function()
print("script was loaded")
end)
However, if you use a custom loading screen that prolongs the life of the loading screen then you would need that to execute an export/trigger an event for you to know when the loading screen is finished.
Here is some info regarding loading screens and their lifetimes: Loading screens - Cfx.re Docs.
Hello, you could listen for event playerSpawned and check if it’s the first time calling this handler
1 Like