mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
fix(client/photos): Fixes #98
This commit is contained in:
1 parent
6f0a2ba30d
commit
17f5fb62d9
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user