mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 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);
|
RegisterNuiCallbackType(events.CAMERA_TAKE_PHOTO);
|
||||||
on(`__cfx_nui:${events.CAMERA_TAKE_PHOTO}`, async (data: any, cb: Function) => {
|
on(`__cfx_nui:${events.CAMERA_TAKE_PHOTO}`, async (data: any, cb: Function) => {
|
||||||
cb();
|
cb();
|
||||||
|
let frontCam = false;
|
||||||
// Create Phone Prop
|
// Create Phone Prop
|
||||||
CreateMobilePhone(1);
|
CreateMobilePhone(1);
|
||||||
// Active Camera Change
|
// Active Camera Change
|
||||||
@@ -57,7 +58,6 @@ on(`__cfx_nui:${events.CAMERA_TAKE_PHOTO}`, async (data: any, cb: Function) => {
|
|||||||
|
|
||||||
while (inCameraMode) {
|
while (inCameraMode) {
|
||||||
await Delay(0);
|
await Delay(0);
|
||||||
let frontCam = false;
|
|
||||||
displayHelperText();
|
displayHelperText();
|
||||||
if (IsControlJustPressed(1, 27)) {
|
if (IsControlJustPressed(1, 27)) {
|
||||||
frontCam = !frontCam;
|
frontCam = !frontCam;
|
||||||
|
|||||||
Reference in new issue
Block a user