diff --git a/[esx]/esx_identity/client/main.lua b/[esx]/esx_identity/client/main.lua index 7920fc75..62c25007 100644 --- a/[esx]/esx_identity/client/main.lua +++ b/[esx]/esx_identity/client/main.lua @@ -1,12 +1,10 @@ local loadingScreenFinished = false local ready = false +local guiEnabled = false +local timecycleModifier = "hud_def_blur" -RegisterNetEvent('esx_identity:alreadyRegistered') -AddEventHandler('esx_identity:alreadyRegistered', function() - while not loadingScreenFinished do - Wait(100) - end - +RegisterNetEvent('esx_identity:alreadyRegistered', function() + while not loadingScreenFinished do Wait(100) end TriggerEvent('esx_skin:playerRegistered') end) @@ -20,32 +18,23 @@ RegisterNUICallback('ready', function(data, cb) end) if not Config.UseDeferrals then - local guiEnabled = false - function EnableGui(state) SetNuiFocus(state, state) guiEnabled = state - while not ready do - Wait(500) - end + if state then - SetTimecycleModifier("hud_def_blur") + SetTimecycleModifier(timecycleModifier) else ClearTimecycleModifier() end - SendNUIMessage({ - type = "enableui", - enable = state - }) + + SendNUIMessage({type = "enableui",enable = state}) end - RegisterNetEvent('esx_identity:showRegisterIdentity') - AddEventHandler('esx_identity:showRegisterIdentity', function() + RegisterNetEvent('esx_identity:showRegisterIdentity', function() TriggerEvent('esx_skin:resetFirstSpawn') - if not ESX.PlayerData.dead then - EnableGui(true) - end + if not ESX.PlayerData.dead then EnableGui(true) end end) RegisterNUICallback('register', function(data, cb) @@ -53,11 +42,10 @@ if not Config.UseDeferrals then if callback then ESX.ShowNotification(_U('thank_you_for_registering')) EnableGui(false) + if not ESX.GetConfig().Multichar then TriggerEvent('esx_skin:playerRegistered') end - else - ESX.ShowNotification(_U('registration_error'), "error", 5000) end end, data) end) @@ -87,7 +75,10 @@ if not Config.UseDeferrals then DisableControlAction(0, 143, true) -- disable melee DisableControlAction(0, 75, true) -- disable exit vehicle DisableControlAction(27, 75, true) -- disable exit vehicle + else + sleep = 1500 end + Wait(sleep) end end) diff --git a/[esx]/esx_identity/config.lua b/[esx]/esx_identity/config.lua index ed06ac9b..3cabbda0 100644 --- a/[esx]/esx_identity/config.lua +++ b/[esx]/esx_identity/config.lua @@ -5,8 +5,12 @@ Config.Locale = 'en' -- Enables Commands Such As /char and /chardel Config.EnableCommands = ESX.GetConfig().EnableDebug -Config.UseDeferrals = false -- EXPERIMENTAL Character Registration Method. +-- EXPERIMENTAL Character Registration Method +Config.UseDeferrals = false +-- These values are for the date format in the registration menu +-- Choices: DD/MM/YYYY | MM/DD/YYYY | YYYY/MM/DD +Config.DateFormat = 'DD/MM/YYYY' -- These values are for the second input validation in server/main.lua Config.MaxNameLength = 20 -- Max Name Length. diff --git a/[esx]/esx_identity/fxmanifest.lua b/[esx]/esx_identity/fxmanifest.lua index 82cd5fda..d321a8c5 100644 --- a/[esx]/esx_identity/fxmanifest.lua +++ b/[esx]/esx_identity/fxmanifest.lua @@ -4,7 +4,7 @@ game 'gta5' description 'ESX Identity' -version '1.7.5' +version '1.7.6' shared_script '@es_extended/imports.lua' diff --git a/[esx]/esx_identity/html/css/style.css b/[esx]/esx_identity/html/css/style.css index 0a54d1ee..5915443e 100644 --- a/[esx]/esx_identity/html/css/style.css +++ b/[esx]/esx_identity/html/css/style.css @@ -25,7 +25,7 @@ body { color: #ffffff; } -.aa { +.title { font-family: 'Oswald', sans-serif; font-size: 22px; text-align: center; diff --git a/[esx]/esx_identity/html/index.html b/[esx]/esx_identity/html/index.html index d3cd00de..bbe7eb58 100644 --- a/[esx]/esx_identity/html/index.html +++ b/[esx]/esx_identity/html/index.html @@ -8,15 +8,15 @@
-
IDENTITY
+
IDENTITY
First Name
-
+
Last Name

Date of Birth (MM/DD/YYYY)
-
+
Height

@@ -28,16 +28,11 @@
-
If the submit button doesn't work, please ensure that you've entered the fields correctly.