mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +00:00
cleanup(phone/gen): Added NUI event enums for phone events
This commit is contained in:
1 parent
e6deff23da
commit
9610891a04
7 files changed
+29
-18
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import { PhotoEvents } from '../../typings/photo';
|
||||
import { Delay } from '../utils/fivem';
|
||||
import { sendMessage, sendCameraEvent } from '../utils/messages';
|
||||
import { PhoneEvents } from '../../typings/phone';
|
||||
const SCREENSHOT_BASIC_TOKEN = GetConvar('SCREENSHOT_BASIC_TOKEN', 'none');
|
||||
|
||||
const exp = (global as any).exports;
|
||||
@@ -9,12 +10,12 @@ let inCameraMode = false;
|
||||
|
||||
function closePhoneTemp() {
|
||||
SetNuiFocus(false, false);
|
||||
sendMessage('PHONE', 'setVisibility', false);
|
||||
sendMessage('PHONE', PhoneEvents.SET_VISIBILITY, false);
|
||||
}
|
||||
|
||||
function openPhoneTemp() {
|
||||
SetNuiFocus(true, true);
|
||||
sendMessage('PHONE', 'setVisibility', true);
|
||||
sendMessage('PHONE', PhoneEvents.SET_VISIBILITY, true);
|
||||
}
|
||||
|
||||
function CellFrontCamActivate(activate: boolean) {
|
||||
|
||||
Reference in new issue
Block a user