mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
fix check functions
This commit is contained in:
@@ -99,11 +99,14 @@ local function checkDOBFormat(dob)
|
||||
end
|
||||
|
||||
local function checkSexFormat(sex)
|
||||
if not sex then
|
||||
return false
|
||||
end
|
||||
return sex == "m" or sex == "M" or sex == "f" or sex == "F"
|
||||
end
|
||||
|
||||
local function checkHeightFormat(height)
|
||||
local numHeight = tonumber(height)
|
||||
local numHeight = tonumber(height) or 0
|
||||
return numHeight >= Config.MinHeight and numHeight <= Config.MaxHeight
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user