From c1a52bc0c1750f55db8924c5f4ed08adb0af1717 Mon Sep 17 00:00:00 2001 From: Alsekwolf Date: Thu, 1 Aug 2019 17:51:42 -0400 Subject: [PATCH 1/2] Client event just before transition "JoinTransition:Loading" --- cloading.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cloading.lua b/cloading.lua index 947af1e..503846c 100644 --- a/cloading.lua +++ b/cloading.lua @@ -85,6 +85,9 @@ Citizen.CreateThread(function() -- Re-enable the sound in case it was muted. ToggleSound(false) + + -- Fires a Client event that other resources can use just before starting to transition + TriggerEvent("JoinTransition:Loading"); while true do ClearScreen() From 99a377c0fdca39eca538e204a8c809e725e6e5a7 Mon Sep 17 00:00:00 2001 From: Alsekwolf Date: Mon, 5 Aug 2019 01:15:22 -0400 Subject: [PATCH 2/2] Client event after transition "JoinTransition:FinishLoading" --- cloading.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloading.lua b/cloading.lua index 503846c..dd99c49 100644 --- a/cloading.lua +++ b/cloading.lua @@ -110,7 +110,7 @@ Citizen.CreateThread(function() break end end - + TriggerEvent("JoinTransition:FinishLoading"); -- Reset the draw origin, just in case (allowing HUD elements to re-appear correctly) ClearDrawOrigin() end)