mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-02 19:28:52 +00:00
Fix error, removed unused config
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
Config = {}
|
||||
Config.Locale = 'en'
|
||||
Config.StartingAccountMoney = {bank = 50000}
|
||||
Config.MinHeight = 24 -- Minimum Height
|
||||
Config.MaxHeight = 96 -- Maximum Height
|
||||
Config.HighestYear = 2020 -- The highest year that can be used in date of birth
|
||||
|
||||
+2
-2
@@ -36,7 +36,7 @@ AddEventHandler("playerConnecting", function(name, setKickReason, deferrals)
|
||||
data = {
|
||||
firstName = result[1].firstname,
|
||||
lastName = result[1].lastname,
|
||||
dateOfBirth = result[1.].dateofbirth,
|
||||
dateOfBirth = result[1].dateofbirth,
|
||||
sex = result[1].sex,
|
||||
height = result[1].height
|
||||
}
|
||||
@@ -86,7 +86,7 @@ AddEventHandler("playerConnecting", function(name, setKickReason, deferrals)
|
||||
end
|
||||
end)
|
||||
|
||||
RegisterServerEvent('esx:playerLoaded')
|
||||
RegisterNetEvent('esx:playerLoaded')
|
||||
AddEventHandler('esx:playerLoaded', function(playerId, xPlayer)
|
||||
xPlayer.setName(('%s %s'):format(data.firstName, data.lastName))
|
||||
xPlayer.set('firstName', data.firstName)
|
||||
|
||||
Reference in New Issue
Block a user