fix(client/photos): Fixes #98

This commit is contained in:
Taso committed 2021-02-16 17:52:57 -05:00
1 parent 6f0a2ba30d
commit 17f5fb62d9
1 file changed
+1 -1
+1 -1
View File
@@ -44,6 +44,7 @@ const displayHelperText = () => {
RegisterNuiCallbackType(events.CAMERA_TAKE_PHOTO);
on(`__cfx_nui:${events.CAMERA_TAKE_PHOTO}`, async (data: any, cb: Function) => {
cb();
let frontCam = false;
// Create Phone Prop
CreateMobilePhone(1);
// Active Camera Change
@@ -57,7 +58,6 @@ on(`__cfx_nui:${events.CAMERA_TAKE_PHOTO}`, async (data: any, cb: Function) => {
while (inCameraMode) {
await Delay(0);
let frontCam = false;
displayHelperText();
if (IsControlJustPressed(1, 27)) {
frontCam = !frontCam;