Identification eror [ FIX VRP ]

I managed to resolve the vrp identification error
So I will tell you how I did to connect to the server
go to vrp / vrp / base.lua

delete this code:

 local function search()
      i = i+1
      if i <= #ids then
        if not config.ignore_ip_identifier or (string.find(ids[i], "ip:") == nil) then  -- ignore ip identifier
          MySQL.query("vRP/userid_byidentifier", {identifier = ids[i]}, function(rows, affected)
            if #rows > 0 then  -- found
              task({rows[1].user_id})
            else -- not found
              search()
            end
          end)
        else
          search()
        end

and add in his place this:

  local user_id = rows[1].id
            -- add identifiers
            for l,w in pairs(ids) do
              MySQL.query("vRP/add_identifier", {user_id = user_id, identifier = w})
              if not config.ignore_ip_identifier or (string.find(w, "ip:") == nil) then  -- ignore ip identifier
                MySQL.query("vRP/add_identifier", {user_id = user_id, identifier = w})
              end
            end

            task({user_id})

I hope your help was helpfull :smiley:

Hello, this is a friendly reminder because this is your first time creating a topic (or it has been a while since your last topic) in this category.

Please note that most of the support is provided by the FiveM community on a voluntary basis. We ask you to be patient; there is no guarantee we have a solution to your problem(s). To avoid unnecessary/duplicate topics, please browse the forums before creating a topic.

To improve your chances of your issue(s) being solved, please provide as much information as possible about the issue(s) you are having. Also —whenever possible— please use the template given to you when creating a topic.

Thanks for keeping these forums tidy!
:mascot:

Can you post the entirety of your vRP.getUserIDByIdentifiers as the code your provided is incomplete.

can you post it full?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.