mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
updated interfaces and events
This commit is contained in:
1 parent
b37e72d168
commit
ead995eb69
9 files changed
+84
-10
No files matched your search
@@ -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();
|
||||
}
|
||||
Reference in new issue
Block a user