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) force open saveable menu for illenium-appare…
Browse files Browse the repository at this point in the history
…nce [v1.3]
  • Loading branch information
SUP2Ak committed Apr 16, 2023
1 parent 55e007e commit e6e1b1a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ RegisterNetEvent('supv_identity:client:setPlayerData', function(identity)
ESX.SetPlayerData('sex', identity.sex)
ESX.SetPlayerData('height', identity.height)

TriggerEvent('esx_skin:playerRegistered') -- event: for init skin of your player
if GetResourceState('illenium-appearance') ~= 'missing' then
TriggerEvent('esx_skin:playerRegistered')
TriggerEvent('esx_skin:openSaveableMenu')
else
TriggerEvent('esx_skin:playerRegistered')
end

playerIdentity = nil
end)
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use_experimental_fxv2_oal 'yes'

author 'SUP2Ak#3755'
description 'A simple identity creator with ox_lib input dialog'
version '1.2'
version '1.3'

files {
'config/shared.lua',
Expand Down
2 changes: 1 addition & 1 deletion server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ RegisterNetEvent('supv_identity:server:validRegister', function(identity)
local year, reset = playerIdentity[xPlayer.identifier].dateofbirth:gsub('../../', ''), {}
year = tonumber(year)

if (year < shared.dob.min) or (year > shared.dob.max) then
if (year < shared.dob.min) or (year > shared.dob.max)then
reset.dateofbirth = true
end

Expand Down

0 comments on commit e6e1b1a

Please sign in to comment.