Sziasztok nem régen kezdtem el tanulgatni a lua nyelvet de most el akadtam és nem tudom hogyan fixáljam meg a hibát esetleg valaki tudna segiteni nekem?
function gotoPlayer (thePlayer,targetPlayer)
	local accName = getAccountName(getPlayerAccount(thePlayer))
	if isObjectInACLGroup("user."..accName,aclGetGroup("Console")) then
		if not (targetPlayer) then
			outputChatBox("[wisdomGaming]: /goto [név]",thePlayer,0,0,0,true)
		else
			local x,y,z = getElementPosition(targetPlayer)
			local veh = getPedOccupiedVehicle(thePlayer)
				if isPedInVehicle(thePlayer) then
					teleport = setElementPoition(veh,x,y+1,z)
				else
					teleport = setElementPosition(thePlayer,x,y+1,z)
				end
				if (teleport) then
					setElementInterior(thePlayer,getElementInterior(targetPlayer))
					setElementDimension(thePlayer,getElementDimension(targetPlayer))
					outputChatBox("Sikeresen elteleportáltál a játékoshoz.",thePlayer,0,0,0,true)
					outputChatBox("Egyik admin hozzád teleportált.",targetPlayer,0,0,0,true)
				else
					outputChatBox("Nem sikerült teleportálni.",thePlayer,0,0,0,true)
				end
			end
		end	
	end
end
addCommandHandler("goto", gotoPlayer, false, false)