mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
Fix: Animation being triggered if the phone isn't open.
This commit is contained in:
1 parent
f58c30b0d9
commit
8ecb91e71f
1 file changed
+4
-2
@@ -175,8 +175,10 @@ const handleCallEndNormalAnim = async (playerPed: number): Promise<void> => {
|
|||||||
const DICT = 'cellphone@';
|
const DICT = 'cellphone@';
|
||||||
const ANIM = 'cellphone_call_to_text';
|
const ANIM = 'cellphone_call_to_text';
|
||||||
|
|
||||||
await loadAnimDict(DICT);
|
if (IsEntityPlayingAnim(playerPed, 'cellphone@', 'cellphone_call_listen_base', 49)) {
|
||||||
TaskPlayAnim(playerPed, DICT, ANIM, 2.5, 8.0, -1, 50, 0, false, false, false);
|
await loadAnimDict(DICT);
|
||||||
|
TaskPlayAnim(playerPed, DICT, ANIM, 2.5, 8.0, -1, 50, 0, false, false, false);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export async function phoneOpenAnim(): Promise<void> {
|
export async function phoneOpenAnim(): Promise<void> {
|
||||||
|
|||||||
Reference in new issue
Block a user