mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-02 22:17:39 +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
+5
-3
@@ -174,9 +174,11 @@ const handleCallStartNormalAnim = async (playerPed: number): Promise<void> => {
|
||||
const handleCallEndNormalAnim = async (playerPed: number): Promise<void> => {
|
||||
const DICT = 'cellphone@';
|
||||
const ANIM = 'cellphone_call_to_text';
|
||||
|
||||
await loadAnimDict(DICT);
|
||||
TaskPlayAnim(playerPed, DICT, ANIM, 2.5, 8.0, -1, 50, 0, false, false, false);
|
||||
|
||||
if (IsEntityPlayingAnim(playerPed, 'cellphone@', 'cellphone_call_listen_base', 49)) {
|
||||
await loadAnimDict(DICT);
|
||||
TaskPlayAnim(playerPed, DICT, ANIM, 2.5, 8.0, -1, 50, 0, false, false, false);
|
||||
}
|
||||
};
|
||||
|
||||
export async function phoneOpenAnim(): Promise<void> {
|
||||
|
||||
Reference in new issue
Block a user