updated interfaces and events

This commit is contained in:
erik-sn committed 2020-11-17 19:55:09 -05:00
1 parent b37e72d168
commit ead995eb69
9 files changed
+84 -10

No files matched your search

+7
View File
@@ -1,4 +1,5 @@
import { pool } from './db';
import { ESX } from "./server";
interface IPhoneNumber {
phone_number: string;
@@ -9,4 +10,10 @@ export async function usePhoneNumber(identifier: string): Promise<string> {
const [results] = await pool.query(query, [identifier]);
const phoneNumber = <IPhoneNumber[]>results;
return phoneNumber[0].phone_number;
}
export const getSource = () => parseInt(source);
export async function useIdentifier(): Promise<string> {
return ESX.GetPlayerFromId(getSource()).getIdentifier();
}