mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +00:00
chore(client): Removed unused variables
This commit is contained in:
1 parent
aa7919b988
commit
52992b7d10
2 files changed
+24
-9
No files matched your search
@@ -2,10 +2,7 @@ import config from '../utils/config';
|
||||
import events from '../utils/events';
|
||||
import { phoneCloseAnim, phoneOpenAnim, removePhoneProp } from './functions';
|
||||
|
||||
let prop = 0;
|
||||
let isPhoneOpen = false;
|
||||
let propCreated = false;
|
||||
let phoneModel = 'prop_amb_phone'; // Refered to in newphoneProp function. Requires custom phone being streamed.
|
||||
|
||||
RegisterKeyMapping('phone', 'Open Phone', 'keyboard', 'f1');
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import { Delay } from '../utils/fivem';
|
||||
|
||||
let prop = 0;
|
||||
let isPhoneOpen = false;
|
||||
let propCreated = false;
|
||||
const phoneModel = 'prop_amb_phone'
|
||||
const phoneModel = 'prop_amb_phone';
|
||||
|
||||
/* * * * * * * * * * * * *
|
||||
*
|
||||
@@ -83,7 +82,7 @@ export async function loadAnimDict(dict: any) {
|
||||
const handleOpenVehicleAnim = async (playerPed: number): Promise<void> => {
|
||||
const dict = 'anim@cellphone@in_car@ps';
|
||||
|
||||
SetCurrentPedWeapon(playerPed, 0xA2719263, true)
|
||||
SetCurrentPedWeapon(playerPed, 0xa2719263, true);
|
||||
ClearPedTasks(playerPed);
|
||||
await loadAnimDict(dict);
|
||||
TaskPlayAnim(
|
||||
@@ -107,7 +106,7 @@ const handleOpenNormalAnim = async (playerPed: number): Promise<void> => {
|
||||
//While not in a vehicle it will use this dict.
|
||||
const dict = 'cellphone@';
|
||||
|
||||
SetCurrentPedWeapon(playerPed, 0xA2719263, true)
|
||||
SetCurrentPedWeapon(playerPed, 0xa2719263, true);
|
||||
ClearPedTasks(playerPed);
|
||||
await loadAnimDict(dict);
|
||||
TaskPlayAnim(
|
||||
@@ -175,9 +174,28 @@ const handleCallEndNormalAnim = async (playerPed: number): Promise<void> => {
|
||||
const DICT = 'cellphone@';
|
||||
const ANIM = 'cellphone_call_to_text';
|
||||
|
||||
if (IsEntityPlayingAnim(playerPed, 'cellphone@', 'cellphone_call_listen_base', 49)) {
|
||||
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);
|
||||
TaskPlayAnim(
|
||||
playerPed,
|
||||
DICT,
|
||||
ANIM,
|
||||
2.5,
|
||||
8.0,
|
||||
-1,
|
||||
50,
|
||||
0,
|
||||
false,
|
||||
false,
|
||||
false
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user