From 587185535f4f3bc938f85914d46db64efd45bea9 Mon Sep 17 00:00:00 2001 From: Taso Date: Wed, 10 Feb 2021 17:18:15 -0500 Subject: [PATCH] fix(phone/anim): Added missing phoneClose anim to handler --- resources/client/cl_main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/client/cl_main.ts b/resources/client/cl_main.ts index 1723da1..37b9dd2 100644 --- a/resources/client/cl_main.ts +++ b/resources/client/cl_main.ts @@ -250,6 +250,7 @@ const hidePhone = async (): Promise => { data: false, }) ); + await phoneCloseAnim(); SetNuiFocus(false, false); }; @@ -363,7 +364,7 @@ on(`__cfx_nui:${events.OPEN_APP_DAILER}`, (data: any, cb: Function) => { RegisterNuiCallbackType('phone:close'); on(`__cfx_nui:phone:close`, async (data: any, cb: Function) => { - await hidePhone(); + await Phone(); cb(); }); // Called for when the phone is closed via the UI.