mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
keep input
This commit is contained in:
1 parent
b14562eb9d
commit
1c69cd5e2e
3 files changed
+39
-2
No files matched your search
@@ -58,6 +58,7 @@ const showPhone = async (): Promise<void> => {
|
||||
sendMessage('PHONE', PhoneEvents.SET_VISIBILITY, true);
|
||||
sendMessage('PHONE', PhoneEvents.SET_TIME, time);
|
||||
SetNuiFocus(true, true);
|
||||
SetNuiFocusKeepInput(true);
|
||||
};
|
||||
|
||||
const hidePhone = async (): Promise<void> => {
|
||||
@@ -65,6 +66,7 @@ const hidePhone = async (): Promise<void> => {
|
||||
sendMessage('PHONE', PhoneEvents.SET_VISIBILITY, false);
|
||||
await phoneCloseAnim();
|
||||
SetNuiFocus(false, false);
|
||||
SetNuiFocusKeepInput(false);
|
||||
};
|
||||
|
||||
/* * * * * * * * * * * * *
|
||||
@@ -104,8 +106,10 @@ async function Phone(): Promise<void> {
|
||||
}
|
||||
if (isPhoneOpen) {
|
||||
await hidePhone();
|
||||
emit('npwd:disableEnableInput');
|
||||
} else {
|
||||
await showPhone();
|
||||
emit('npwd:disableEnableInput');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user