Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cloading.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -107,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)