mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +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,
|
||||
})
|
||||
);
|
||||
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.
|
||||
|
||||
|
||||
Reference in new issue
Block a user