Modcall History JobId Broken?

Hello!
I made a mod call history but got an issue with accepting that mod call (aka jobId issue)

Server Script:

function MakeModcall(plr, msg, placeId, jobId)
	local modcall = script.ModCall:Clone()
	
	for _,v in pairs(game.Players:GetPlayers()) do
		if moderators[v.UserId] or moderators[v.Name] then
			print(placeId)
			print(jobId)
			modcall.Parent = v.PlayerGui.ModcallHistory.Frame
			modcall.PlaceId.Value = placeId
			modcall.JobId.Value = jobId
			modcall.Username.Text = plr.Name
			modcall.Comments.TextLabel.Text = msg
			modcall.Ticket.Disabled = false
		end
	end
end

function AcceptModcall(plr, placeId, jobId)
	print(placeId)
	print(jobId)
	tpservice:TeleportToPlaceInstance(placeId, jobId, plr)
end

event.OnServerEvent:Connect(function(plr, cmd, text, placeId, jobId)
	if cmd == "Make" then
		MakeModcall(plr, text, placeId, jobId)
	elseif  cmd  == "Accept" then
		AcceptModcall(plr, placeId, jobId)
	end
end)

Local Script

accept.MouseButton1Down:Connect(function()
	if db then return end
	db = true
	event:FireServer("Accept", nil,  placeId, jobId) -- placeId and jobId are string values
	script.Click:Play()
	wait(3)
	db = false
end)

The issue I got:

I don’t know why script sets JobId value wrong.

1 Like

Don’t Repost the same Issue, You can get Striked for it, Just wait for a Reply on the other post.

2 Likes

Okay, I’ll delete this post. :confused:

1 Like

I have been searching for your previous post for this topic but not found it.
It would help me to help you if you could change the prints of placeid and jobid to include the function as in print(“Make=”,placeid) that will make the print list easier for me to understand.

1 Like

If you are trying to teleport to the same server you are already in, then that might be the issue.

I already fixed that, problem was in that i was getting jobId in local script

This is related to a previous thread you posted, no? I’m pretty sure it’s a borderline repost.

If you have reserved servers, you can’t teleport to them by JobId. You need the access code, otherwise attempting this is moot.