Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

Commit

Permalink
tweak: (client/main.lua) height input min/max value from config
Browse files Browse the repository at this point in the history
  • Loading branch information
SUP2Ak committed Apr 15, 2023
1 parent 1f2d514 commit 81efb98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ local function OpenRegister(needReset)
{type = 'input', label = locale('lastname'), required = true, default = playerIdentity.lastname},
{type = 'input', label = locale('firstname'), required = true, default = playerIdentity.firstname},
{type = 'select', label = locale('sex'), required = true, options = {{value = 'M', label = locale('male')}, {value = 'F', label = locale('female')}}, default = playerIdentity.sex},
{type = 'slider', label = locale('height'), required = true, min = 120, max = 220, default = playerIdentity.height},
{type = 'slider', label = locale('height'), required = true, min = Config.height.min, max = Config.height.max, default = playerIdentity.height},
{type = 'date', label = locale('dob'), required = true, icon = {'far', 'calendar'}, format = Config.format_date, default = playerIdentity.dob}
}, {allowCancel = false})

Expand Down Expand Up @@ -58,4 +58,4 @@ RegisterNetEvent('supv_identity:client:setPlayerData', function(identity)
TriggerEvent('esx_skin:playerRegistered') -- event: for init skin of your player

playerIdentity = nil
end)
end)

0 comments on commit 81efb98

Please sign in to comment.