esx_identity


  1. Open esx_identity/client/main.lua

  2. Search for RegisterNUICallback('register'

  3. 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?