[HELP] This event does 2 different things depending on who uses it =/

AddEventHandler('docks:GetOwnerName', function(identity) --get name from id
TriggerEvent('es:getPlayerFromId', source, function(identity)
   local player = identity.identifier

	local executed_query = MySQL:executeQuery("SELECT * FROM users WHERE identifier = '@username'",{['@username'] = player})
	local result = MySQL:getResults(executed_query, {'prenom', 'nom'})
		if(result)then
		  for k,v in ipairs(result)do
		  fname = v.prenom
		  lname = v.nom
		  local fname = fname
		  local lname = lname
		  end
		end
	end)
	TriggerClientEvent("boatshop:notify", source, "CHAR_BOATSITE", 1, "HQ", false, "Boat registered to: ~g~".. fname .. " " .. lname .. "\n")
end)

I have another script that grabs steamID from a plate in front of a boat, this event is used when the other event gives me a steamID…

if I am checking on my own boats, the script works. But, if someone else checks on my boat it says register to: citizen citizen does anyone know whats going on here?