mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
Remove client phoneConfig event (#73)
* Remove client phoneConfig event * Remove unused debug * Remove unused import * Remove unused import * Remove duplicated functions | fix useEffect dependency | etc * Fix warnings * Update phone/src/apps/twitter/components/TwitterApp.tsx Co-authored-by: Taso <[email protected]> Co-authored-by: Taso <[email protected]>
This commit is contained in:
1 parent
fdfd4133e2
commit
81f5e27064
12 files changed
+61
-81
No files matched your search
@@ -210,16 +210,6 @@ function noPhone() {
|
||||
ESX.ShowNotification('Oi Mate, No El Telephono', false, false, 1);
|
||||
}
|
||||
|
||||
function sendPhoneConfig() {
|
||||
SendNuiMessage(
|
||||
JSON.stringify({
|
||||
app: 'PHONE',
|
||||
method: 'phoneConfig',
|
||||
data: config,
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
setTick(() => {
|
||||
if (IsControlJustPressed(1, config.KeyTogglePhone)) {
|
||||
Phone();
|
||||
@@ -263,7 +253,6 @@ async function Phone() {
|
||||
data: true,
|
||||
})
|
||||
);
|
||||
sendPhoneConfig();
|
||||
SetNuiFocus(true, true);
|
||||
//SetNuiFocusKeepInput(true)
|
||||
} else {
|
||||
@@ -301,7 +290,6 @@ async function Phone() {
|
||||
data: true,
|
||||
})
|
||||
);
|
||||
sendPhoneConfig();
|
||||
SetNuiFocus(true, true);
|
||||
//SetNuiFocusKeepInput(true)
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user