chore(resources): General Linting

This commit is contained in:
Taso committed 2021-06-08 12:36:10 -04:00
1 parent 457926263d
commit f1012958e2
15 files changed
+25 -34

No files matched your search

+2 -2
View File
@@ -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);
};
-1
View File
@@ -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();