mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
working profile and editing of profile
This commit is contained in:
1 parent
5072a31aab
commit
9fe4cf0188
27 files changed
+459
-51
No files matched your search
@@ -270,4 +270,10 @@ AddEventHandler('onResourceStop', function(resource)
|
||||
ClearPedTasks(GetPlayerPed(-1)) -- Leave here until launch as it'll fix any stuck animations.
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
|
||||
|
||||
Citizen.CreateThread(function()
|
||||
Citizen.Wait(0)
|
||||
Phone()
|
||||
end)
|
||||
@@ -41,8 +41,15 @@ RegisterNUICallback('phone:createTweet', function(data)
|
||||
end)
|
||||
|
||||
RegisterNUICallback('phone:getOrCreateTwitterProfile', function()
|
||||
print('phone:getOrCreateTwitterProfile')
|
||||
ESX.TriggerServerCallback('phone:getOrCreateTwitterProfile', function(profile)
|
||||
sendMessage('getOrCreateTwitterProfile', profile)
|
||||
end)
|
||||
end)
|
||||
|
||||
RegisterNUICallback('phone:updateTwitterProfile', function(data)
|
||||
sendMessage('updateProfileLoading', true)
|
||||
ESX.TriggerServerCallback('phone:updateTwitterProfile', function(result)
|
||||
sendMessage('updateProfileResult', result)
|
||||
TriggerEvent('phone:getOrCreateTwitterProfile')
|
||||
end, data)
|
||||
end)
|
||||
Reference in new issue
Block a user