feat(camera): disable camera mode

This commit is contained in:
Christopher committed 2021-08-02 11:58:25 +02:00
1 parent 5dcb654516
commit 96aa7107ba
2 files changed
+14 -6

No files matched your search

+2 -2
View File
@@ -76,11 +76,11 @@ RegisterNuiCB<void>(PhotoEvents.TAKE_PHOTO, async (_, cb) => {
const handleTakePicture = async () => {
// Wait a frame so we don't draw the display helper text
await Delay(0);
const resp = await takePhoto();
await Delay(200);
DestroyMobilePhone();
CellCamActivate(false, false);
openPhoneTemp();
const resp = await takePhoto();
await Delay(200);
inCameraMode = false;
ClearHelp(true);