mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
changed server to use firstname lastname from esx_identity
This commit is contained in:
1 parent
e8ea4a8951
commit
e3fb16988e
2 files changed
+2
-3
No files matched your search
@@ -23,7 +23,7 @@ Config.DestroyPhoneReCheck = 3 --MINUTES /// WIll wait the check for x MINUTES a
|
|||||||
--Twitter
|
--Twitter
|
||||||
------
|
------
|
||||||
Config.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.characterLimit = 240 -- character limit on tweet messages
|
||||||
Config.twitter.allowEdtiableProfileName = true -- whether or not players can edit their profile names
|
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
|
-- Config.twitter.enableLikes = true -- whether or not players can like other player's tweets and that they are visible
|
||||||
|
|||||||
@@ -90,14 +90,13 @@ end
|
|||||||
function getProfileName(identifier, cb)
|
function getProfileName(identifier, cb)
|
||||||
local defaultProfileName = ''
|
local defaultProfileName = ''
|
||||||
if Config.twitter.generateProfileNameFromUsers == false then
|
if Config.twitter.generateProfileNameFromUsers == false then
|
||||||
print('use default')
|
|
||||||
cb(defaultProfileName)
|
cb(defaultProfileName)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- TODO: make this query configurable
|
-- TODO: make this query configurable
|
||||||
MySQL.Async.fetchAll([[
|
MySQL.Async.fetchAll([[
|
||||||
SELECT CONCAT(first_name, '_', last_name) AS profile_name
|
SELECT CONCAT(firstname, '_', lastname) AS profile_name
|
||||||
FROM users
|
FROM users
|
||||||
WHERE identifier = @identifier LIMIT 1
|
WHERE identifier = @identifier LIMIT 1
|
||||||
]],
|
]],
|
||||||
|
|||||||
Reference in new issue
Block a user