mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
fix(phone/anim): Added missing phoneClose anim to handler
This commit is contained in:
1 parent
8f78423591
commit
587185535f
1 file changed
+2
-1
@@ -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.
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user