mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
working images in the database
This commit is contained in:
1 parent
997f550aab
commit
9e40fb8010
15 files changed
+157
-128
No files matched your search
@@ -30,7 +30,6 @@ end)
|
||||
|
||||
|
||||
RegisterNUICallback('phone:fetchTweets', function()
|
||||
print('RegisterNUICallback: phone:fetchTweets')
|
||||
TriggerEvent('phone:fetchTweets')
|
||||
end)
|
||||
|
||||
|
||||
@@ -21,11 +21,12 @@ ESX.RegisterServerCallback('phone:createTweet', function(source, cb, data)
|
||||
local xPlayer = ESX.GetPlayerFromId(_source)
|
||||
local _identifier = xPlayer.getIdentifier()
|
||||
|
||||
MySQL.Async.execute('INSERT INTO npwd_twitter_tweets (`identifier`, `realUser`, `message`) VALUES (@identifier, @realUser, @message)',
|
||||
MySQL.Async.execute('INSERT INTO npwd_twitter_tweets (`identifier`, `realUser`, `message`, `images`) VALUES (@identifier, @realUser, @message, @images)',
|
||||
{
|
||||
['identifier'] = _identifier,
|
||||
['realUser'] = data.realUser,
|
||||
['message'] = data.message
|
||||
['message'] = data.message,
|
||||
['images'] = data.images
|
||||
}, function(result)
|
||||
cb(result)
|
||||
end)
|
||||
|
||||
Reference in new issue
Block a user