function module.RemoveStat(M,O,w,h)local j=main.pd[O][w]if j then for M,j in pairs(j)do if tostring(j)==tostring(h)then table.remove(main.pd[O][w],M)main.pd[O].DataToUpdate=true main.signals.RemoveStat:FireClient(O,{w,h})break end end end end

function module:RemoveStat(player, locationName, newValue)
	local location = main.pd[player][locationName]
	if location then
		for i,v in pairs(location) do
			if tostring(v) == tostring(newValue) then
				table.remove(main.pd[player][locationName], i)
				main.pd[player].DataToUpdate = true
				main.signals.RemoveStat:FireClient(player, {locationName, newValue})
				break
			end
		end
	end
end


