mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
feat(camera): refactor to new promise event format
This commit is contained in:
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);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user