mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
feat(client/debug): Phone restart command (#145)
Trigger a UI restart by entering the command `phone:restart` in the F8 console.
This commit is contained in:
3 files changed
+53
-11
No files matched your search
@@ -46,15 +46,6 @@ const hidePhone = async (): Promise<void> => {
|
||||
* Register Command and Keybinding
|
||||
*
|
||||
* * * * * * * * * * * * */
|
||||
|
||||
RegisterCommand(
|
||||
'phone:close',
|
||||
async () => {
|
||||
await hidePhone();
|
||||
},
|
||||
false,
|
||||
);
|
||||
|
||||
RegisterCommand(
|
||||
'phone',
|
||||
async () => {
|
||||
@@ -65,9 +56,16 @@ RegisterCommand(
|
||||
);
|
||||
|
||||
RegisterCommand(
|
||||
'phone:open',
|
||||
'phone:restart',
|
||||
async () => {
|
||||
await showPhone();
|
||||
await hidePhone();
|
||||
SendNuiMessage(
|
||||
JSON.stringify({
|
||||
app: 'PHONE',
|
||||
method: 'startRestart',
|
||||
data: {},
|
||||
}),
|
||||
);
|
||||
},
|
||||
false,
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user