mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
working client/server intaction
This commit is contained in:
1 parent
c19d0ee3aa
commit
2920267ef3
8 files changed
+99
-58
No files matched your search
@@ -51,16 +51,16 @@ function fetchTweetsFiltered(profileId, searchValue, cb)
|
||||
end)
|
||||
end
|
||||
|
||||
ESX.RegisterServerCallback('phone:fetchTweets', function(source, cb)
|
||||
local _source = source
|
||||
local xPlayer = ESX.GetPlayerFromId(_source)
|
||||
local _identifier = xPlayer.getIdentifier()
|
||||
-- ESX.RegisterServerCallback('phone:fetchTweets', function(source, cb)
|
||||
-- local _source = source
|
||||
-- local xPlayer = ESX.GetPlayerFromId(_source)
|
||||
-- local _identifier = xPlayer.getIdentifier()
|
||||
|
||||
getProfile(_identifier, function(result)
|
||||
local profile = result[1]
|
||||
fetchAllTweets(profile.id, cb)
|
||||
end)
|
||||
end)
|
||||
-- getProfile(_identifier, function(result)
|
||||
-- local profile = result[1]
|
||||
-- fetchAllTweets(profile.id, cb)
|
||||
-- end)
|
||||
-- end)
|
||||
|
||||
-- search value expected to be lower case
|
||||
ESX.RegisterServerCallback('phone:fetchTweetsFiltered', function(source, cb, searchValue)
|
||||
|
||||
Reference in new issue
Block a user