From 38cfcb0a7101b94699da373ba9a29e17c8bfd73a Mon Sep 17 00:00:00 2001 From: Csoki Date: Thu, 24 Nov 2022 23:53:51 +0100 Subject: [PATCH] fix --- [esx]/esx_identity/server/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/[esx]/esx_identity/server/main.lua b/[esx]/esx_identity/server/main.lua index 5b0f0450..dfea3ab2 100644 --- a/[esx]/esx_identity/server/main.lua +++ b/[esx]/esx_identity/server/main.lua @@ -395,11 +395,11 @@ else xPlayer.showNotification(TranslateCap('invalid_sex_format'), "error") return cb(false) end - if checkDOBFormat(data.dateofbirth) then + if not checkDOBFormat(data.dateofbirth) then xPlayer.showNotification(TranslateCap('invalid_dob_format'), "error") return cb(false) end - if checkHeightFormat(data.height) then + if not checkHeightFormat(data.height) then xPlayer.showNotification(TranslateCap('invalid_height_format'), "error") return cb(false) end