diff --git a/resources/server/functions.ts b/resources/server/functions.ts index 709f5fc..118977c 100644 --- a/resources/server/functions.ts +++ b/resources/server/functions.ts @@ -1,4 +1,5 @@ import { pool } from './db'; +import { ESX, getSource } from './server'; interface IPhoneNumber { phone_number: string; @@ -9,4 +10,9 @@ export async function usePhoneNumber(identifier: string): Promise { const [results] = await pool.query(query, [identifier]); const phoneNumber = results; return phoneNumber[0].phone_number; +} + +export async function useIdentifier(): Promise { + const identifier = await ESX.GetPlayerFromId(getSource()).getIdentifier() + return identifier; } \ No newline at end of file