From eff4bc93844dbf31d3fee8017e2f1c80260f9f8b Mon Sep 17 00:00:00 2001 From: ArkSeyonet <31637812+ArkSeyonet@users.noreply.github.com> Date: Sat, 16 May 2020 03:32:21 -0500 Subject: [PATCH 1/2] Fix delete character for deferral method --- server/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/main.lua b/server/main.lua index ede6b5bd..94385d09 100644 --- a/server/main.lua +++ b/server/main.lua @@ -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')) From 738c109c0d188d895856a96cf1d667ddc09c3698 Mon Sep 17 00:00:00 2001 From: ArkSeyonet <31637812+ArkSeyonet@users.noreply.github.com> Date: Sat, 16 May 2020 17:02:21 -0500 Subject: [PATCH 2/2] Update config.lua - Improve Config Documentation - Fix Config.UseDeferrals to default false --- config.lua | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/config.lua b/config.lua index 3d37568a..3d9773dd 100644 --- a/config.lua +++ b/config.lua @@ -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.EnableDebugging = false \ No newline at end of file +-- You can leave this set to false, unless you are trying to solve an issue with your identity. +Config.EnableDebugging = false