esx_identity
Take advantage of this if you only use esx_identity and do not use any multicharacter system!
Open esx_identity/client/main.lua
Search for
RegisterNUICallback('register'Replace the nui callback with this one below
RegisterNUICallback('register', function(data, cb)
    if not guiEnabled then
        return
    end
    ESX.TriggerServerCallback('esx_identity:registerIdentity', function(callback)
        if not callback then
            return
        end
        ESX.ShowNotification(TranslateCap('thank_you_for_registering'))
        setGuiState(false)
        if not ESX.GetConfig().Multichar then
            TriggerEvent('vms_charcreator:openCreator', data.sex)
        end
    end, data)
end)Last updated
Was this helpful?