fix(phone/anim): Added missing phoneClose anim to handler

This commit is contained in:
Taso committed 2021-02-10 17:46:46 -05:00
1 parent 8f78423591
commit 587185535f
1 file changed
+2 -1
+2 -1
View File
@@ -250,6 +250,7 @@ const hidePhone = async (): Promise<void> => {
data: false, data: false,
}) })
); );
await phoneCloseAnim();
SetNuiFocus(false, false); SetNuiFocus(false, false);
}; };
@@ -363,7 +364,7 @@ on(`__cfx_nui:${events.OPEN_APP_DAILER}`, (data: any, cb: Function) => {
RegisterNuiCallbackType('phone:close'); RegisterNuiCallbackType('phone:close');
on(`__cfx_nui:phone:close`, async (data: any, cb: Function) => { on(`__cfx_nui:phone:close`, async (data: any, cb: Function) => {
await hidePhone(); await Phone();
cb(); cb();
}); // Called for when the phone is closed via the UI. }); // Called for when the phone is closed via the UI.