From 0d79792399e1b4c42a7dc38ad62d2ae756e854dc Mon Sep 17 00:00:00 2001 From: Douth <47131318+douth-c@users.noreply.github.com> Date: Mon, 25 Apr 2022 13:04:50 -0500 Subject: [PATCH] feat(client): load effect --- [esx]/esx_loadingscreen/client/client.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 [esx]/esx_loadingscreen/client/client.lua diff --git a/[esx]/esx_loadingscreen/client/client.lua b/[esx]/esx_loadingscreen/client/client.lua new file mode 100644 index 00000000..2aac97be --- /dev/null +++ b/[esx]/esx_loadingscreen/client/client.lua @@ -0,0 +1,13 @@ +local ClientLoadESX = false + +AddEventHandler("playerSpawned", function () + if not ClientLoadESX then + ShutDownLoadingScreenNui() + ClientLoadESX = true + if Config.Fade then + DoScreenFadeOut(0) + Wait(3000) + DoScreenFadeIn(2500) + end + end +end) \ No newline at end of file