Merge branch 'master' into master

This commit is contained in:
Jérémie N'gadi
2020-05-17 11:34:49 +02:00
committed by GitHub
2 changed files with 23 additions and 5 deletions
+21 -3
View File
@@ -1,12 +1,30 @@
Config = {}
Config.Locale = 'en'
-- [Config.EnableCommands]
-- Enables Commands Such As /char and /chardel
Config.EnableCommands = true
Config.UseSteamID = false
Config.UseDeferrals = true
-- [Config.UseSteamID]
-- Changes the identifiers from Rockstar License To Steam. In order to use this, you will have to have
-- made edits to your ESX in order to use Steam identifiers all around, because new ESX uses Rockstar
-- license. I just made it easier for people that convert to steam identifiers.
Config.UseSteamID = false
-- [Config.UseDeferrals]
-- EXPERIMENTAL Character Registration Method. This will allow players to create identities in deferrals
-- before they ever join the server. This still needs time of testing to see what issues that we have
-- in linux servers and windows servers, and which artifacts it will work on, and which artifacts it
-- will not work on. If you don't know a lot about this, I would suggest to set it false for now.
Config.UseDeferrals = false -- EXPERIMENTAL Character Registration Method.
-- These values are for the second input validation in server/main.lua
Config.MaxNameLength = 16
Config.MinHeight = 48
Config.MaxHeight = 96
Config.LowestYear = 1900
Config.HighestYear = 2020
Config.FullCharDelete = false
Config.EnableDebugging = false
Config.EnableDebugging = false
+2 -2
View File
@@ -312,12 +312,12 @@ if Config.EnableCommands then
ESX.RegisterCommand('chardel', 'user', function(xPlayer, args, showError)
if xPlayer and xPlayer.getName() then
if Config.UseDeferrals then
xPlayer.kick(_('deleted_identity'))
Citizen.Wait(1500)
deleteIdentity(xPlayer)
xPlayer.showNotification(_U('deleted_character'))
playerIdentity[xPlayer.identifier] = nil
alreadyRegistered[xPlayer.identifier] = false
Citizen.Wait(2500)
xPlayer.kick(_('deleted_identity'))
else
deleteIdentity(xPlayer)
xPlayer.showNotification(_U('deleted_character'))