How do I get the client id to show right

Hey, I have this error from quite a time. I use txAdmin, and ZapHosting as my host. My client id, or in-game id is 1, as the dev, but on txAdmin it shows id 2 as in the pictures. When I try to make a command for the server, and export my id, id exports 2, not 1

RegisterCommand('money', function(player,args, rawCommand)
	local user_id = vRP.getUserId({source})
	local id = tonumber(args[1])
	local target = vRP.getUserSource({id})
	local amount = tonumber(args[2])
	local name = vRP.getPlayerName({target})
	if vRP.isUserOwner({user_id})then	
		if target ~= nil then
			  if(tonumber(amount) ~= nil) and (tonumber(amount) ~= "")then
				if(tonumber(amount) > 0) and (tonumber(amount) <= 10000000)then
					vRP.giveMoney({id,amount})
					local target = vRP.getUserSource({id})
					vRPclient.notify(player, {"~w~[~r~Lore~w~] I-ai dat lui ~r~"..name.." ~r~"..amount.." ~g~$ Bani"})
					vRPclient.notify(target, {"~w~[~r~Lore~w~] ~r~["..player.."]"..GetPlayerName(player).."~w~ ti-a dat ~r~"..amount.." ~g~$ Bani"})
					TriggerClientEvent('chatMessage', -1, "^1[Lore]", {255, 255, 255}, '^1' ..GetPlayerName(player) .. ' ^0i-a dat lui ^1' ..name.. ', ^2'..amount..' $ Bani!')
				else
					vRPclient.notify(player, {"~w~[~r~Lore~w~] Ai introdus o suma incorecta!(Aceasta nu poate fi mai mare de 10 milioane)"})
				end
			  else
				vRPclient.notify(player, {"~w~[~r~Lore~w~] Suma trebuie sa fie un numar!"})
			  end
		else
			vRPclient.notify(player, {"~w~[~r~Lore~w~] Player-ul nu este online!"})
		end
	else
		vRPclient.notify(player, {"~w~[~r~Lore~w~] Nu ai acces la aceasta comanda!"})
	end

end)

1
3

But, as u can see, the name is displayed right. Is shows boxes because I have a fonted name.

And if I try to write “user_id” instead of “player” it throws this error:
2

The “Ids” you’re referring to are two different things, one is a Temp ID and the other is a permanent ID which is stored in your database.

1 Like

For the other issue, use local user_id = vRP.getUserId({player})

1 Like

I will try and come back with a response, thanks

1 Like

Thanks a lot, that was the right definition and solution I was waiting for <3

All good.