changed server to use firstname lastname from esx_identity

This commit is contained in:
erik-sn committed 2020-10-04 10:50:41 -04:00
1 parent e8ea4a8951
commit e3fb16988e
2 files changed
+2 -3

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ Config.DestroyPhoneReCheck = 3 --MINUTES /// WIll wait the check for x MINUTES a
--Twitter
------
Config.twitter = {}
Config.twitter.generateProfileNameFromUsers = false -- if the player's profile name should be generated from the users.first_name and users.last_name table
Config.twitter.generateProfileNameFromUsers = true -- if the player's profile name should be generated from the users.first_name and users.last_name table
Config.twitter.characterLimit = 240 -- character limit on tweet messages
Config.twitter.allowEdtiableProfileName = true -- whether or not players can edit their profile names
-- Config.twitter.enableLikes = true -- whether or not players can like other player's tweets and that they are visible
+1 -2
View File
@@ -90,14 +90,13 @@ end
function getProfileName(identifier, cb)
local defaultProfileName = ''
if Config.twitter.generateProfileNameFromUsers == false then
print('use default')
cb(defaultProfileName)
return
end
-- TODO: make this query configurable
MySQL.Async.fetchAll([[
SELECT CONCAT(first_name, '_', last_name) AS profile_name
SELECT CONCAT(firstname, '_', lastname) AS profile_name
FROM users
WHERE identifier = @identifier LIMIT 1
]],