feat(camera): refactor to new promise event format

This commit is contained in:
Christopher authored and Taso committed 2021-07-27 17:04:28 -04:00
1 parent 1566bb0fdb
commit 4e8c57492b
15 files changed
+274 -141

No files matched your search

@@ -105,6 +105,14 @@ export class AnimationService {
this.setPhoneState(AnimationState.ON_CALL, false);
}
async openCamera() {
this.setPhoneState(AnimationState.ON_CAMERA, true);
}
async closeCamera() {
this.setPhoneState(AnimationState.ON_CAMERA, false);
}
private async loadAnimDict(dict: any) {
//-- Loads the animation dict. Used in the anim functions.
RequestAnimDict(dict);
@@ -190,5 +198,5 @@ export class AnimationService {
await this.loadAnimDict(DICT);
TaskPlayAnim(playerPed, DICT, ANIM, 2.5, 8.0, -1, 50, 0, false, false, false);
}
};
}
}