mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
chore(resources): General Linting
This commit is contained in:
1 parent
457926263d
commit
f1012958e2
15 files changed
+25
-34
No files matched your search
@@ -71,7 +71,7 @@ export const RegisterNuiCB = <T = any>(event: string, callback: CallbackFn<T>) =
|
||||
* for the response.
|
||||
* @param event - The event name to listen for
|
||||
*/
|
||||
export const RegisterNuiProxy = <T = any>(event: string) => {
|
||||
export const RegisterNuiProxy = (event: string) => {
|
||||
RegisterNuiCallbackType(event);
|
||||
on(`__cfx_nui:${event}`, async (data: unknown, cb: Function) => {
|
||||
try {
|
||||
@@ -91,6 +91,6 @@ type WrapperNetEventCb = <T extends any[]>(...args: T) => void;
|
||||
* @param event - The event name to listen to
|
||||
* @param cb - The callback function to execute
|
||||
*/
|
||||
export const onNpwdEvent = <T = any>(event: string, cb: WrapperNetEventCb) => {
|
||||
export const onNpwdEvent = (event: string, cb: WrapperNetEventCb) => {
|
||||
onNet(event, cb);
|
||||
};
|
||||
@@ -96,7 +96,6 @@ const handleOpenNormalAnim = async (playerPed: number): Promise<void> => {
|
||||
|
||||
const handleCloseVehicleAnim = async (playerPed: number): Promise<void> => {
|
||||
const DICT = 'anim@cellphone@in_car@ps';
|
||||
const ANIM = 'cellphone_text_out';
|
||||
StopAnimTask(playerPed, DICT, 'cellphone_text_in', 1.0); // Do both incase they were on the phone.
|
||||
StopAnimTask(playerPed, DICT, 'cellphone_call_to_text', 1.0);
|
||||
removePhoneProp();
|
||||
|
||||
Reference in new issue
Block a user