mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 06:28:51 +00:00
Cleanup sv_contacts
This commit is contained in:
1 parent
dbf7e6c3e4
commit
67dac1eef0
1 file changed
-30
@@ -34,36 +34,6 @@ onNet(events.CONTACTS_GET_CONTACTS, async (callback: any) => {
|
||||
|
||||
})
|
||||
|
||||
//ESX.RegisterServerCallback(events.CONTACTS_GET_CONTACTS, (cb: any) => {
|
||||
// const _source = (global as any).source
|
||||
// const xPlayer = ESX.GetPlayerFromId(_source);
|
||||
// const _identifier = xPlayer.getIdentifier();
|
||||
//
|
||||
// const contacts = fetchAllContacts(_identifier);
|
||||
// //console.log(contacts);
|
||||
//
|
||||
// cb(contacts);
|
||||
//
|
||||
// console.log("Contacts: ")
|
||||
// console.log(contacts);
|
||||
//})
|
||||
|
||||
//ESX.RegisterServerCallback('phone:getContacts', function(source, cb)
|
||||
// local _source = source
|
||||
// local xPlayer = ESX.GetPlayerFromId(_source)
|
||||
// local _identifier = xPlayer.getIdentifier()
|
||||
// MySQL.Async.fetchAll('SELECT * FROM npwd_phone_contacts WHERE //`identifier`=@identifier',
|
||||
// {
|
||||
// ['@identifier'] = _identifier
|
||||
// }, function(contacts)
|
||||
// cb(contacts)
|
||||
// print("Contacts:")
|
||||
// for k,v in pairs(contacts) do
|
||||
// print(v.number, v.display)
|
||||
// end
|
||||
// end)
|
||||
//end)
|
||||
//
|
||||
//RegisterServerEvent('phone:addContacts')
|
||||
//AddEventHandler('phone:addContacts', function(display, number)
|
||||
// local _source = source
|
||||
|
||||
Reference in new issue
Block a user